PT-2025-46600 · Linux+3 · Linux Kernel+3

Published

2025-08-26

·

Updated

2026-05-07

·

CVE-2025-40125

CVSS v2.0

4.0

Medium

VectorAV:A/AC:H/Au:S/C:P/I:P/A:P
Name of the Vulnerable Software and Affected Versions Linux kernel (affected versions not specified)
Description A flaw exists in the Linux kernel related to the handling of hardware queue contexts within the block I/O management framework (blk-mq). Specifically, the code does not verify the success of sysfs creation for hardware contexts (hctx) before attempting to delete them. If sysfs registration fails, subsequent operations, such as changing the number of hardware queues or removing a disk, can trigger a kernel warning and potentially lead to instability. The issue occurs because the kobject del() function is called unconditionally, even if the sysfs creation failed. The vulnerable code is located in blk mq update nr hw queues(), where the return value of blk mq sysfs register hctxs() is not checked. This can lead to errors when attempting to remove the 'nr tags' directory.
Recommendations At the moment, there is no information about a newer version that contains a fix for this vulnerability.

Exploit

Unchecked Return Value

Weakness Enumeration

Related Identifiers

BDU:2025-15295
CVE-2025-40125
DLA-4379-1
DLA-4404-1
OESA-2025-2765
OESA-2025-2766
OESA-2025-2767
USN-8029-1
USN-8029-2
USN-8029-3
USN-8030-1
USN-8033-1
USN-8033-2
USN-8033-3
USN-8033-4
USN-8033-5
USN-8033-6
USN-8033-7
USN-8033-8
USN-8034-1
USN-8034-2
USN-8048-1
USN-8095-1
USN-8095-2
USN-8095-3
USN-8095-4
USN-8095-5
USN-8100-1
USN-8125-1
USN-8126-1
USN-8141-1
USN-8163-1
USN-8163-2
USN-8165-1
USN-8243-1
USN-8261-1

Affected Products

Debian
Linuxmint
Linux Kernel
Ubuntu