CVEBrief

Home / Linux / Linux / CVE-2025-40235

CVE-2025-40235: is it exploited, and which versions of Linux are affected and fixed?

CVE-2025-40235 is a vulnerability in Linux. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 14:38 UTC). Affected: Linux from 6.8 until the fixed versions (CVE record by Linux). Fixed in 6.12.56, 6.17.6 and 6.18 (CVE record by Linux).

Data checked December 3, 2026: last read CISA KEV December 3, 2026, 14:38 UTC, CVE record November 28, 2026, 17:37 UTC and NVD November 19, 2026, 07:15 UTC.

Exploited in the wild
Not in CISA KEV
KEV read December 3, 2026, 14:38 UTC
Affected
Linux from 6.8 until the fixed versions
CVE record by Linux
Fixed in
6.12.56, 6.17.6 and 6.18
CVE record by Linux
Exploit odds (EPSS)
0.21% in 30 days
higher than 12% of CVEs; FIRST, December 2, 2026
Free for up to 3 items: a weekly email, and an alert the day CISA lists one as exploited. We email you once to confirm. More about the watch

What is CVE-2025-40235?

In the Linux kernel, the following vulnerability has been resolved: btrfs: directly free partially initialized fs_info in btrfs_check_leaked_roots() If fs_info->super_copy or fs_info->super_for_commit allocated failed in btrfs_get_tree_subvol(), then no need to call btrfs_free_fs_info(). Otherwise btrfs_check_leaked_roots() would access NULL pointer because fs_info->allocated_roots had not been initialised. syzkaller reported the following information: ------------[ cut here ]------------ BUG: unable to handle page fault for address: fffffffffffffbb0 #PF: supervisor read access in kernel mode #PF: error_code(0x0000) - not-present page PGD 64c9067 P4D 64c9067 PUD 64cb067 PMD 0 Oops: Oops: 0000 [#1] SMP KASAN PTI CPU: 0 UID: 0 PID: 1402 Comm: syz.1.35 Not tainted 6.15.8 #4 PREEMPT(lazy) Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), (...) RIP: 0010:arch_atomic_read arch/x86/include/asm/atomic.h:23 [inline] RIP: 0010:raw_atomic_read include/linux/atomic/atomic-arch-fallback.h:457 [inline] RIP: 0010:atomic_read include/linux/atomic/atomic-instrumented.h:33 [inline] RIP: 0010:refcount_read include/linux/refcount.h:170 [inline] RIP: 0010:btrfs_check_leaked_roots+0x18f/0x2c0 fs/btrfs/disk-io.c:1230 [...] Call Trace: <TASK> btrfs_free_fs_info+0x310/0x410 fs/btrfs/disk-io.c:1280 btrfs_get_tree_subvol+0x592/0x6b0 fs/btrfs/super.c:2029 btrfs_get_tree+0x63/0x80 fs/btrfs/super.c:2097 vfs_get_tree+0x98/0x320 fs/super.c:1759 do_new_mount+0x357/0x660 fs/namespace.c:3899 path_mount+0x716/0x19c0 fs/namespace.c:4226 do_mount fs/namespace.c:4239 [inline] __do_sys_mount fs/namespace.c:4450 [inline] __se_sys_mount fs/namespace.c:4427 [inline] __x64_sys_mount+0x28c/0x310 fs/namespace.c:4427 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x92/0x180 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x76/0x7e RIP: 0033:0x7f032eaffa8d [...]

From the CVE record by Linux, last updated May 11, 2026, 21:45 UTC.

Which versions are affected, and which fix it?

VendorProductAffectedFixed or not affected from
LinuxLinuxnot stated
LinuxLinuxfrom 6.8 until the fixed versions6.12.56, 6.17.6, 6.18

As the CVE record by Linux states it, last updated May 11, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.

Is CVE-2025-40235 exploited in the wild?

CISA KEV
Not listed (catalog 2026.11.30)
EPSS
0.21% probability of exploitation activity in the next 30 days, percentile 12.1 (FIRST EPSS, scores of December 2, 2026)

Where are the vendor advisories and references?

When was it published, and where is the official record?

Reserved
April 16, 2025
Published
December 4, 2025, 15:31 UTC
CVE record updated
May 11, 2026, 21:45 UTC by Linux
NVD
Deferred, last modified October 19, 2026, 21:10 UTC
Last checked
CVE list November 28, 2026, 17:37 UTC; NVD November 19, 2026, 07:15 UTC; KEV December 3, 2026, 14:38 UTC; EPSS December 2, 2026
Official record
cve.org · NVD

What other CVEs affect Linux?

Every CVE in Linux

Questions about CVE-2025-40235

Is CVE-2025-40235 exploited in the wild?

Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 14:38 UTC. FIRST's EPSS gives it a 0.21% chance of exploitation activity in the next 30 days (scores of December 2, 2026).

Which versions of Linux are affected by CVE-2025-40235?

Linux from 6.8 until the fixed versions, per the CVE record by Linux. The tables above give every range the sources list.

Which version fixes CVE-2025-40235?

6.12.56, 6.17.6 and 6.18, per the CVE record by Linux. Check the vendor's advisory before you rely on it.

Where is the official record of CVE-2025-40235?

The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.