Skip to main content

Linux Kernel EUVDEUVD-2026-53780

| CVE-2026-64593 MEDIUM
NULL Pointer Dereference (CWE-476)
2026-08-06 Linux GHSA-2hc3-vpvv-mwv3
5.5
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Mount btrfs degraded with missing device
  2. Delivery
    Re-scan device to clear MISSING flag
  3. Exploit
    Device->bdev remains NULL, not writeable
  4. Execution
    Invoke fstrim (FITRIM ioctl)
  5. Persist
    NULL deref in btrfs_trim_free_extents_throttle
  6. Impact
    Kernel oops / denial of service

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A10:2025 - Mishandling of Exceptional Conditions
ASVS 5.0
V16 - Security Logging and Error Handling Null pointer safety, defensive checks
MITRE ATT&CK

1 technique across 1 tactic: Impact

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation is NOT possible against a default, healthy btrfs filesystem. It requires a specific sequence: (1) a btrfs volume mounted in degraded mode with at least one missing device (devid reported 'is missing'); (2) that missing device being re-scanned/re-appearing so the kernel clears BTRFS_DEV_STATE_MISSING via device_list_add() without setting BTRFS_DEV_STATE_WRITEABLE or restoring device->bdev; and (3) a subsequent fstrim invoking the btrfs FITRIM ioctl, which walks devices and calls bdev_max_discard_sectors(device->bdev) on the stale NULL bdev. Limiting factors: the attack is local only (AV:L), needs the uncommon degraded-mount-plus-device-reappear window, and the FITRIM ioctl is an administrative operation - all of which sharply narrow realistic exposure. Async discard being enabled is incidental; the core prerequisite is the missing/re-appearing device de-synchronization.

Impact

This is a low-to-moderate priority availability-only issue, not an urgent threat. The CVSS 3.1 base score of 5.5 (AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H) reflects a local, low-complexity, low-privilege NULL pointer dereference (CWE-476) in btrfs that crashes the kernel with no confidentiality or integrity impact. All exploitation signals point low: EPSS is 0.16% (6th percentile), the CVE is NOT in CISA KEV, and no public exploit or PoC reference is present in the supplied data (only vendor advisories and git.kernel.org stable commits). The vuln.today decision label is 'this_month' rather than act_now/emergency, consistent with a routine stable-kernel fix. One point worth verifying: the real-world trigger is not a simple unprivileged action - per the description the crash is reached through the FITRIM ioctl (fstrim), which in practice is a privileged administrative operation, and it requires an uncommon state (a degraded btrfs mount whose missing device is re-scanned, clearing BTRFS_DEV_STATE_MISSING without restoring the writeable bdev). This makes the PR:L rating arguably generous - see confidence notes. Net: a genuine denial-of-service bug worth patching on the normal stable-update cadence, not a high-urgency remotely exploitable flaw.

Exploit ScenarioDerived

On a btrfs filesystem mounted in degraded mode with a missing device, that device is re-scanned (via a device scan ioctl) so the kernel clears its MISSING flag but never restores its block-device pointer; a subsequent fstrim (FITRIM ioctl) then calls bdev_max_discard_sectors() on the NULL device->bdev and the kernel oopses. The result is a local denial of service (kernel NULL pointer dereference / crash), with no code execution or data disclosure. No public exploit code is identified in the provided data; the issue was reproduced via the btrfs/242 fstests case.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Dec 02, 2026

Local denial of service in the Linux kernel's btrfs filesystem: a fstrim/FITRIM ioctl issued against a degraded volume whose previously missing device has been re-scanned dereferences a stale NULL device->bdev pointer and crashes the kernel, costing availability. Exposure requires the specific sequence of a degraded btrfs mount with a missing devid, that device re-appearing so device_list_add() clears BTRFS_DEV_STATE_MISSING without restoring BTRFS_DEV_STATE_WRITEABLE or device->bdev, and then a trim; healthy, default btrfs filesystems are not affected. Kernels built from the affected 4.3-and-later btrfs code are in scope, no public exploit code or CISA KEV entry is associated with the issue, and EPSS sits at 0.16% (6th percentile), making this a low-to-moderate priority availability-only bug rather than an urgent threat.

RemediationAI

Vendor-released patch: Linux 7.1.4, 6.18.39, 6.12.96, 6.6.145, 6.1.178, 5.15.212, 5.10.261 and 7.2-rc1; apply the stable update matching your branch, or the corresponding upstream stable commit (for example 9c894159c5b8adc84072e3af0e55b0473a69564e and its siblings on the other branches). Ubuntu users can consume USN-8727-1 or USN-8726-1 as listed in the references. The available sources do not document a vendor-specific workaround, and the code change is the complete fix; the practical exposure limiter described in the assessment is the prerequisite chain itself - a degraded btrfs mount with a missing devid, that device re-appearing through a rescan, and a subsequent FITRIM invocation - so operators who cannot patch immediately should treat fstrim on degraded volumes with a re-appearing device as the sensitive operation and avoid it until the kernel is updated.

Affected VersionsENISA

Linux patch: 7.1.4
Linux patch: 6.18.39
Linux patch: 6.12.96
Linux 499f377f49f085ee4aa214c738e948e88626f39b <9c894159c5b8adc84072e3af0e55b0473a69564e
Linux 499f377f49f085ee4aa214c738e948e88626f39b <7a64521802997257b144e6edfb4e278dbeb972dd
Linux patch: 7.2-rc1
Linux patch: 6.6.145
Linux patch: 5.10.261
Linux patch: 0
Linux 499f377f49f085ee4aa214c738e948e88626f39b <1b1937eb08f51319bf71575484cde2b8c517aedc
Linux patch: 6.1.178
Linux 499f377f49f085ee4aa214c738e948e88626f39b <3d8fa4b828a86b33c60858e58aaab6df273ede05
Linux 499f377f49f085ee4aa214c738e948e88626f39b <b4af31b898a948e29861cb0bae734058f9a49d9b
Linux 4.3
Linux 499f377f49f085ee4aa214c738e948e88626f39b <210af872eafa0cf572a84cb303c0f9d2914c1226
Linux patch: 5.15.212
Linux 499f377f49f085ee4aa214c738e948e88626f39b <02c903fc6fc7e16c5d1f22d18784f1208acf43e3
Linux 499f377f49f085ee4aa214c738e948e88626f39b <f41ae7e6664f3c4361129728f2c4d5f3ed995251

Affected Packages

microsoft azl3_kernel_0_6_6_143_1_1_azl3 no fix
euvd linux no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in microsoft, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The flaw is a CWE-476 NULL pointer dereference rooted in btrfs device-state handling. On a degraded mount, a device can carry BTRFS_DEV_STATE_MISSING while device->bdev is NULL. When that device is later re-scanned through btrfs_control_ioctl() -> btrfs_scan_one_device() -> device_list_add(), the kernel updates device->name and clears BTRFS_DEV_STATE_MISSING, but does not set BTRFS_DEV_STATE_WRITEABLE nor repopulate the bdev pointer. A subsequent FITRIM ioctl (btrfs_ioctl_fitrim() -> btrfs_trim_fs() -> btrfs_trim_free_extents() -> btrfs_trim_free_extents_throttle()) then calls bdev_max_discard_sectors(device->bdev) on that stale NULL pointer. The upstream report captured a dev_state of 0x82 (BTRFS_DEV_STATE_IN_FS_METADATA | BTRFS_DEV_STATE_ITEM_FOUND, without WRITEABLE) and a NULL dereference at btrfs_trim_fs+0x34c. The affected code has existed since Linux 4.3 per the EUVD range base commit 499f377f49f085ee4aa214c738e948e88626f39b; CPE data identifies the affected product as linux:linux. The independent assessment rates the issue CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H - local, authenticated, availability-only - consistent with a configuration-dependent trigger rather than a remotely reachable flaw.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

NVD PRIMARY 5.5 MEDIUM
AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
vuln.today AI 4.7 MEDIUM

Local-only crash via fstrim (PR:L), impact is availability-only (A:H, C/I:N); AC:H because it requires the uncommon degraded-mount plus device-reappearance race window.

3.1 AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
4.0 AV:L/AC:H/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Primary rating from NVD.

CVSS VectorNVD

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

Lifecycle Timeline

4
CVSS changed
Dec 01, 2026 - 15:07 NVD
5.5 (MEDIUM)
Patch available
Aug 06, 2026 - 08:16 EUVD
CVE Published
Aug 06, 2026 - 07:13 nvd
MEDIUM 5.5
CVE Published
Aug 06, 2026 - 07:13 cve.org
UNKNOWN (no severity yet)

DescriptionNVD

In the Linux kernel, the following vulnerability has been resolved:

btrfs: do not trim a device which is not writeable

[BUG] There is a bug report that btrfs/242 can randomly fail with the following NULL pointer dereference:

run fstests btrfs/242 at 2026-06-01 10:25:08 BTRFS: device fsid d4d7f234-487c-4787-88e4-47a8b68c9874 devid 1 transid 9 /dev/sdc (8:32) scanned by mount (122609) BTRFS info (device sdc): first mount of filesystem d4d7f234-487c-4787-88e4-47a8b68c9874 BTRFS info (device sdc): using crc32c checksum algorithm BTRFS warning (device sdc): devid 2 uuid fbe72d72-3272-482d-80fb-ab88ed398192 is missing BTRFS warning (device sdc): devid 2 uuid fbe72d72-3272-482d-80fb-ab88ed398192 is missing BTRFS info (device sdc): allowing degraded mounts BTRFS info (device sdc): turning on async discard BTRFS info (device sdc): enabling free space tree Unable to handle kernel NULL pointer dereference at virtual address 0000000000000018 user pgtable: 4k pages, 48-bit VAs, pgdp=000000013fd6b000 CPU: 4 UID: 0 PID: 122625 Comm: fstrim Not tainted 7.0.10-2-default #1 PREEMPT(full) openSUSE Tumbleweed e9a5f6b24978fba3bf015a992f865837fdfff3dd Hardware name: QEMU KVM Virtual Machine, BIOS edk2-20250812-19.fc42 08/12/2025 pstate: 01400005 (nzcv daif +PAN -UAO -TCO +DIT -SSBS BTYPE=--) pc : btrfs_trim_fs+0x34c/0xa00 [btrfs] lr : btrfs_trim_fs+0x1f0/0xa00 [btrfs] Call trace: btrfs_trim_fs+0x34c/0xa00 [btrfs f02c1d570ceea621c69d302ba75dd61868083840] (P) btrfs_ioctl_fitrim+0xe8/0x178 [btrfs f02c1d570ceea621c69d302ba75dd61868083840] btrfs_ioctl+0xdd4/0x2bd8 [btrfs f02c1d570ceea621c69d302ba75dd61868083840] __arm64_sys_ioctl+0xac/0x108 invoke_syscall.constprop.0+0x5c/0xd0 el0_svc_common.constprop.0+0x40/0xf0 do_el0_svc+0x24/0x40 el0_svc+0x40/0x1d0 el0t_64_sync_handler+0xa0/0xe8 el0t_64_sync+0x1b0/0x1b8 Code: 17ffff83 f94017e0 f9002be0 f9402ea0 (f9400c00) ---[ end trace 0000000000000000 ]---

Also the reporter is very kind to test the following ASSERT() added to btrfs_trim_free_extents_throttle():

ASSERT(device->bdev, "devid=%llu path=%s dev_state=0x%lx\n", device->devid, btrfs_dev_name(device), device->dev_state);

And it shows the following output:

assertion failed: device->bdev, in extent-tree.c:6630 (devid=2 path=/dev/sdd dev_state=0x82)

Which means the device->bdev is NULL, and the dev_state is BTRFS_DEV_STATE_IN_FS_METADATA | BTRFS_DEV_STATE_ITEM_FOUND, without BTRFS_DEV_STATE_WRITEABLE flag set.

[CAUSE] The pc points to the following call chain:

btrfs_trim_fs()

|- btrfs_trim_free_extents() |- btrfs_trim_free_extents_throttle() |- bdev_max_discard_sectors(device->bdev) So the NULL pointer dereference is caused by device->bdev being NULL.

This looks impossible by a quick glance, as just before calling btrfs_trim_free_extents_throttle(), we have skipped any device that has BTRFS_DEV_STATE_MISSING flag set.

However in this particular case, there is a window where the missing device is later re-scanned, causing btrfs to remove the BTRFS_DEV_STATE_MISSING flag:

btrfs_control_ioctl()

|- btrfs_scan_one_device() |- device_list_add() |- rcu_assign_pointer(device->name, name); | This updates the missing device's path to the new good path. | |- clear_bit(BTRFS_DEV_STATE_MISSING, &device->dev_state) This removes the BTRFS_DEV_STATE_MISSING flag.

This allows the missing device to re-appear and clear the BTRFS_DEV_STATE_MISSING flag. However the device still does not have the BTRFS_DEV_STATE_WRITEABLE flag set, nor is its bdev pointer updated.

The bdev pointer remains NULL, triggering the crash later.

[FIX] This is a big de-synchronization between BTRFS_DEV_STATE_MISSING and device->bdev pointer, and shows a gap in btrfs's re-appearing-device handling.

The proper handling of re-appearing device will need quite some extra work, which is out of the context of this small ---truncated---

Threat Intelligence Overview

EPSS Score
0.2%
Top 94% exploitable
Prevalence
Ubiquitous
Linux kernel; btrfs is shipped in essentially all modern Linux distributions
Vendor Action
See Below
Required. The vulnerability documented by this CVE requires customer action to resolve.
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

28
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +28
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

A null pointer dereference occurs when a program attempts to access memory through a pointer that has been set to NULL (address 0x0).

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy