CVEBrief

Home / Linux / Linux / CVE-2025-40125

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

CVE-2025-40125 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, 15:39 UTC). Affected: Linux from 4.20 until the fixed versions (CVE record by Linux). Fixed in 5.4.301, 5.10.246, 5.15.195, 6.1.156 and 2 more (CVE record by Linux).

Data checked December 3, 2026: last read CISA KEV December 3, 2026, 15:39 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, 15:39 UTC
Affected
Linux from 4.20 until the fixed versions
CVE record by Linux
Fixed in
5.4.301, 5.10.246, 5.15.195, 6.1.156 and 2 more
CVE record by Linux
Exploit odds (EPSS)
0.23% in 30 days
higher than 14% of CVEs; FIRST, December 3, 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-40125?

In the Linux kernel, the following vulnerability has been resolved: blk-mq: check kobject state_in_sysfs before deleting in blk_mq_unregister_hctx In __blk_mq_update_nr_hw_queues() the return value of blk_mq_sysfs_register_hctxs() is not checked. If sysfs creation for hctx fails, later changing the number of hw_queues or removing disk will trigger the following warning: kernfs: can not remove 'nr_tags', no directory WARNING: CPU: 2 PID: 637 at fs/kernfs/dir.c:1707 kernfs_remove_by_name_ns+0x13f/0x160 Call Trace: remove_files.isra.1+0x38/0xb0 sysfs_remove_group+0x4d/0x100 sysfs_remove_groups+0x31/0x60 __kobject_del+0x23/0xf0 kobject_del+0x17/0x40 blk_mq_unregister_hctx+0x5d/0x80 blk_mq_sysfs_unregister_hctxs+0x94/0xd0 blk_mq_update_nr_hw_queues+0x124/0x760 nullb_update_nr_hw_queues+0x71/0xf0 [null_blk] nullb_device_submit_queues_store+0x92/0x120 [null_blk] kobjct_del() was called unconditionally even if sysfs creation failed. Fix it by checkig the kobject creation statusbefore deleting it.

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

Which versions are affected, and which fix it?

VendorProductAffectedFixed or not affected from
LinuxLinuxnot stated
LinuxLinuxfrom 4.20 until the fixed versions5.4.301, 5.10.246, 5.15.195, 6.1.156, 6.6.112, 6.12.53, 6.17.3, 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-40125 exploited in the wild?

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

Where are the vendor advisories and references?

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

Reserved
April 16, 2025
Published
November 12, 2025, 10:23 UTC
CVE record updated
May 11, 2026, 21:43 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, 15:39 UTC; EPSS December 3, 2026
Official record
cve.org · NVD

What other CVEs affect Linux?

Every CVE in Linux

Questions about CVE-2025-40125

Is CVE-2025-40125 exploited in the wild?

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

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

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

Which version fixes CVE-2025-40125?

5.4.301, 5.10.246, 5.15.195, 6.1.156, 6.6.112 and 6.12.53, per the CVE record by Linux. Check the vendor's advisory before you rely on it.

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

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.