CVE-2025-40125
publishedblk-mq: check kobject state_in_sysfs before deleting in blk_mq_unregister_hctx
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux477e19dedc9d3e1f4443a1d4ae00572a988120ea to < a8c53553f1833cc2d14175d2d72cf37193a01898 · 477e19dedc9d3e1f4443a1d4ae00572a988120ea to < cc14ea21c4e658814d737ed4dedde6cd626a15ad · 477e19dedc9d3e1f4443a1d4ae00572a988120ea to < 4b97e99b87a773d52699521d40864f3ec888e9a6 · 477e19dedc9d3e1f4443a1d4ae00572a988120ea to < 6e7dadc5763c48eb3b9b91265a21f312599ebb2c · 477e19dedc9d3e1f4443a1d4ae00572a988120ea to < 06c4826b1d900611096e4621e93133db57e13911 · 477e19dedc9d3e1f4443a1d4ae00572a988120ea to < babc634e9fe2803962dba98a07587e835dbc0731 · 477e19dedc9d3e1f4443a1d4ae00572a988120ea to < d5ddd76ee52bdc16e9f8b1e7791291e785dab032 · 477e19dedc9d3e1f4443a1d4ae00572a988120ea to < 4c7ef92f6d4d08a27d676e4c348f4e2922cab3ed · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux4.20 (affected) · 0 to < 4.20 (unaffected · semver) · 5.4.301 through 5.4.* (unaffected · semver) · 5.10.246 through 5.10.* (unaffected · semver) · 5.15.195 through 5.15.* (unaffected · semver) · 6.1.156 through 6.1.* (unaffected · semver) · 6.6.112 through 6.6.* (unaffected · semver) · 6.12.53 through 6.12.* (unaffected · semver) · 6.17.3 through 6.17.* (unaffected · semver) · 6.18 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2KERNEL-5.10-2026-112 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2KERNEL-5.15-2025-095 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2KERNEL-5.4-2025-114 | Fixed | Not stated | Amazon Linux assessment |
| Debian | bullseye | linux | Advisory build | 5.10.247-1 | DLA-4404-1 |
| Oracle Linux | 7 | kernel-uekx86_64 | Advisory build | 0:5.4.17-2136.350.3.1.el7uek | ELSA-2025-28049 |
Show 100 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Amazon Linux | AL2023 | Release evaluationALAS2023-2025-1253 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2025-1254 | Fixed | Not stated | Amazon Linux assessment |
| Ubuntu | focal | linux-aws-5.15 | Advisory build | 5.15.0-1100.107~20.04.2 | USN-8033-4 |
| Debian | bullseye | linux-6.1 | Advisory build | 6.1.158-1~deb11u1 | DLA-4379-1 |
| Oracle Linux | 7 | kernel-uek-containerx86_64 | Advisory build | 0:5.4.17-2136.350.3.1.el7uek | ELSA-2025-28049 |
| Oracle Linux | 7 | kernel-uek-container-debugx86_64 | Advisory build | 0:5.4.17-2136.350.3.1.el7uek | ELSA-2025-28049 |
| Oracle Linux | 7 | kernel-uek-debugx86_64 | Advisory build | 0:5.4.17-2136.350.3.1.el7uek | ELSA-2025-28049 |
| Oracle Linux | 7 | kernel-uek-debug-develx86_64 | Advisory build | 0:5.4.17-2136.350.3.1.el7uek | ELSA-2025-28049 |
| Oracle Linux | 7 | kernel-uek-develx86_64 | Advisory build | 0:5.4.17-2136.350.3.1.el7uek | ELSA-2025-28049 |
| Oracle Linux | 7 | kernel-uek-docx86_64 | Advisory build | 0:5.4.17-2136.350.3.1.el7uek | ELSA-2025-28049 |
| Oracle Linux | 7 | kernel-uek-toolsx86_64 | Advisory build | 0:5.4.17-2136.350.3.1.el7uek | ELSA-2025-28049 |
| Oracle Linux | 8 | bpftoolaarch64 | Advisory build | 0:5.15.0-315.196.5.1.el8uek | ELSA-2025-28048 |
| Oracle Linux | 8 | bpftoolx86_64 | Advisory build | 0:5.15.0-315.196.5.1.el8uek | ELSA-2025-28048 |
| Oracle Linux | 8 | kernel-uekaarch64 | Advisory build | 0:5.15.0-315.196.5.1.el8uek | ELSA-2025-28048 |
| Oracle Linux | 8 | kernel-uekaarch64 | Advisory build | 0:5.4.17-2136.350.3.1.el8uek | ELSA-2025-28049 |
| Oracle Linux | 8 | kernel-uekx86_64 | Advisory build | 0:5.15.0-315.196.5.1.el8uek | ELSA-2025-28048 |
| Oracle Linux | 8 | kernel-uekx86_64 | Advisory build | 0:5.4.17-2136.350.3.1.el8uek | ELSA-2025-28049 |
| Oracle Linux | 8 | kernel-uek-containeraarch64 | Advisory build | 0:5.15.0-315.196.5.1.el8uek | ELSA-2025-28048 |
| Oracle Linux | 8 | kernel-uek-containerx86_64 | Advisory build | 0:5.15.0-315.196.5.1.el8uek | ELSA-2025-28048 |
| Oracle Linux | 8 | kernel-uek-containerx86_64 | Advisory build | 0:5.4.17-2136.350.3.1.el8uek | ELSA-2025-28049 |
| Oracle Linux | 8 | kernel-uek-container-debugaarch64 | Advisory build | 0:5.15.0-315.196.5.1.el8uek | ELSA-2025-28048 |
| Oracle Linux | 8 | kernel-uek-container-debugx86_64 | Advisory build | 0:5.15.0-315.196.5.1.el8uek | ELSA-2025-28048 |
| Oracle Linux | 8 | kernel-uek-container-debugx86_64 | Advisory build | 0:5.4.17-2136.350.3.1.el8uek | ELSA-2025-28049 |
| Oracle Linux | 8 | kernel-uek-coreaarch64 | Advisory build | 0:5.15.0-315.196.5.1.el8uek | ELSA-2025-28048 |
| Oracle Linux | 8 | kernel-uek-corex86_64 | Advisory build | 0:5.15.0-315.196.5.1.el8uek | ELSA-2025-28048 |
| Oracle Linux | 8 | kernel-uek-debugaarch64 | Advisory build | 0:5.15.0-315.196.5.1.el8uek | ELSA-2025-28048 |
| Oracle Linux | 8 | kernel-uek-debugaarch64 | Advisory build | 0:5.4.17-2136.350.3.1.el8uek | ELSA-2025-28049 |
| Oracle Linux | 8 | kernel-uek-debugx86_64 | Advisory build | 0:5.15.0-315.196.5.1.el8uek | ELSA-2025-28048 |
| Oracle Linux | 8 | kernel-uek-debugx86_64 | Advisory build | 0:5.4.17-2136.350.3.1.el8uek | ELSA-2025-28049 |
| Oracle Linux | 8 | kernel-uek-debug-coreaarch64 | Advisory build | 0:5.15.0-315.196.5.1.el8uek | ELSA-2025-28048 |
| Oracle Linux | 8 | kernel-uek-debug-corex86_64 | Advisory build | 0:5.15.0-315.196.5.1.el8uek | ELSA-2025-28048 |
| Oracle Linux | 8 | kernel-uek-debug-develaarch64 | Advisory build | 0:5.15.0-315.196.5.1.el8uek | ELSA-2025-28048 |
| Oracle Linux | 8 | kernel-uek-debug-develaarch64 | Advisory build | 0:5.4.17-2136.350.3.1.el8uek | ELSA-2025-28049 |
| Oracle Linux | 8 | kernel-uek-debug-develx86_64 | Advisory build | 0:5.15.0-315.196.5.1.el8uek | ELSA-2025-28048 |
| Oracle Linux | 8 | kernel-uek-debug-develx86_64 | Advisory build | 0:5.4.17-2136.350.3.1.el8uek | ELSA-2025-28049 |
| Oracle Linux | 8 | kernel-uek-debug-modulesaarch64 | Advisory build | 0:5.15.0-315.196.5.1.el8uek | ELSA-2025-28048 |
| Oracle Linux | 8 | kernel-uek-debug-modulesx86_64 | Advisory build | 0:5.15.0-315.196.5.1.el8uek | ELSA-2025-28048 |
| Oracle Linux | 8 | kernel-uek-debug-modules-extraaarch64 | Advisory build | 0:5.15.0-315.196.5.1.el8uek | ELSA-2025-28048 |
| Oracle Linux | 8 | kernel-uek-debug-modules-extrax86_64 | Advisory build | 0:5.15.0-315.196.5.1.el8uek | ELSA-2025-28048 |
| Oracle Linux | 8 | kernel-uek-develaarch64 | Advisory build | 0:5.15.0-315.196.5.1.el8uek | ELSA-2025-28048 |
| Oracle Linux | 8 | kernel-uek-develaarch64 | Advisory build | 0:5.4.17-2136.350.3.1.el8uek | ELSA-2025-28049 |
| Oracle Linux | 8 | kernel-uek-develx86_64 | Advisory build | 0:5.15.0-315.196.5.1.el8uek | ELSA-2025-28048 |
| Oracle Linux | 8 | kernel-uek-develx86_64 | Advisory build | 0:5.4.17-2136.350.3.1.el8uek | ELSA-2025-28049 |
| Oracle Linux | 8 | kernel-uek-docaarch64 | Advisory build | 0:5.15.0-315.196.5.1.el8uek | ELSA-2025-28048 |
| Oracle Linux | 8 | kernel-uek-docaarch64 | Advisory build | 0:5.4.17-2136.350.3.1.el8uek | ELSA-2025-28049 |
| Oracle Linux | 8 | kernel-uek-docx86_64 | Advisory build | 0:5.15.0-315.196.5.1.el8uek | ELSA-2025-28048 |
| Oracle Linux | 8 | kernel-uek-docx86_64 | Advisory build | 0:5.4.17-2136.350.3.1.el8uek | ELSA-2025-28049 |
| Oracle Linux | 8 | kernel-uek-modulesaarch64 | Advisory build | 0:5.15.0-315.196.5.1.el8uek | ELSA-2025-28048 |
| Oracle Linux | 8 | kernel-uek-modulesx86_64 | Advisory build | 0:5.15.0-315.196.5.1.el8uek | ELSA-2025-28048 |
| Oracle Linux | 8 | kernel-uek-modules-extraaarch64 | Advisory build | 0:5.15.0-315.196.5.1.el8uek | ELSA-2025-28048 |
| Oracle Linux | 8 | kernel-uek-modules-extrax86_64 | Advisory build | 0:5.15.0-315.196.5.1.el8uek | ELSA-2025-28048 |
| Oracle Linux | 9 | bpftoolaarch64 | Advisory build | 0:5.15.0-315.196.5.1.el9uek | ELSA-2025-28048 |
| Oracle Linux | 9 | bpftoolx86_64 | Advisory build | 0:5.15.0-315.196.5.1.el9uek | ELSA-2025-28048 |
| Oracle Linux | 9 | kernel-uekaarch64 | Advisory build | 0:5.15.0-315.196.5.1.el9uek | ELSA-2025-28048 |
| Oracle Linux | 9 | kernel-uekx86_64 | Advisory build | 0:5.15.0-315.196.5.1.el9uek | ELSA-2025-28048 |
| Oracle Linux | 9 | kernel-uek-containeraarch64 | Advisory build | 0:5.15.0-315.196.5.1.el9uek | ELSA-2025-28048 |
| Oracle Linux | 9 | kernel-uek-containerx86_64 | Advisory build | 0:5.15.0-315.196.5.1.el9uek | ELSA-2025-28048 |
| Oracle Linux | 9 | kernel-uek-container-debugaarch64 | Advisory build | 0:5.15.0-315.196.5.1.el9uek | ELSA-2025-28048 |
| Oracle Linux | 9 | kernel-uek-container-debugx86_64 | Advisory build | 0:5.15.0-315.196.5.1.el9uek | ELSA-2025-28048 |
| Oracle Linux | 9 | kernel-uek-coreaarch64 | Advisory build | 0:5.15.0-315.196.5.1.el9uek | ELSA-2025-28048 |
| Oracle Linux | 9 | kernel-uek-corex86_64 | Advisory build | 0:5.15.0-315.196.5.1.el9uek | ELSA-2025-28048 |
| Oracle Linux | 9 | kernel-uek-debugaarch64 | Advisory build | 0:5.15.0-315.196.5.1.el9uek | ELSA-2025-28048 |
| Oracle Linux | 9 | kernel-uek-debugx86_64 | Advisory build | 0:5.15.0-315.196.5.1.el9uek | ELSA-2025-28048 |
| Oracle Linux | 9 | kernel-uek-debug-coreaarch64 | Advisory build | 0:5.15.0-315.196.5.1.el9uek | ELSA-2025-28048 |
| Oracle Linux | 9 | kernel-uek-debug-corex86_64 | Advisory build | 0:5.15.0-315.196.5.1.el9uek | ELSA-2025-28048 |
| Oracle Linux | 9 | kernel-uek-debug-develaarch64 | Advisory build | 0:5.15.0-315.196.5.1.el9uek | ELSA-2025-28048 |
| Oracle Linux | 9 | kernel-uek-debug-develx86_64 | Advisory build | 0:5.15.0-315.196.5.1.el9uek | ELSA-2025-28048 |
| Oracle Linux | 9 | kernel-uek-debug-modulesaarch64 | Advisory build | 0:5.15.0-315.196.5.1.el9uek | ELSA-2025-28048 |
| Oracle Linux | 9 | kernel-uek-debug-modulesx86_64 | Advisory build | 0:5.15.0-315.196.5.1.el9uek | ELSA-2025-28048 |
| Oracle Linux | 9 | kernel-uek-debug-modules-extraaarch64 | Advisory build | 0:5.15.0-315.196.5.1.el9uek | ELSA-2025-28048 |
| Oracle Linux | 9 | kernel-uek-debug-modules-extrax86_64 | Advisory build | 0:5.15.0-315.196.5.1.el9uek | ELSA-2025-28048 |
| Oracle Linux | 9 | kernel-uek-develaarch64 | Advisory build | 0:5.15.0-315.196.5.1.el9uek | ELSA-2025-28048 |
| Oracle Linux | 9 | kernel-uek-develx86_64 | Advisory build | 0:5.15.0-315.196.5.1.el9uek | ELSA-2025-28048 |
| Oracle Linux | 9 | kernel-uek-docaarch64 | Advisory build | 0:5.15.0-315.196.5.1.el9uek | ELSA-2025-28048 |
| Oracle Linux | 9 | kernel-uek-docx86_64 | Advisory build | 0:5.15.0-315.196.5.1.el9uek | ELSA-2025-28048 |
| Oracle Linux | 9 | kernel-uek-modulesaarch64 | Advisory build | 0:5.15.0-315.196.5.1.el9uek | ELSA-2025-28048 |
| Oracle Linux | 9 | kernel-uek-modulesx86_64 | Advisory build | 0:5.15.0-315.196.5.1.el9uek | ELSA-2025-28048 |
| Oracle Linux | 9 | kernel-uek-modules-extraaarch64 | Advisory build | 0:5.15.0-315.196.5.1.el9uek | ELSA-2025-28048 |
| Oracle Linux | 9 | kernel-uek-modules-extrax86_64 | Advisory build | 0:5.15.0-315.196.5.1.el9uek | ELSA-2025-28048 |
| Oracle Linux | 9 | kernel-uek64kaarch64 | Advisory build | 0:5.15.0-315.196.5.1.el9uek | ELSA-2025-28048 |
| Oracle Linux | 9 | kernel-uek64k-coreaarch64 | Advisory build | 0:5.15.0-315.196.5.1.el9uek | ELSA-2025-28048 |
| Oracle Linux | 9 | kernel-uek64k-develaarch64 | Advisory build | 0:5.15.0-315.196.5.1.el9uek | ELSA-2025-28048 |
| Oracle Linux | 9 | kernel-uek64k-modulesaarch64 | Advisory build | 0:5.15.0-315.196.5.1.el9uek | ELSA-2025-28048 |
| Oracle Linux | 9 | kernel-uek64k-modules-extraaarch64 | Advisory build | 0:5.15.0-315.196.5.1.el9uek | ELSA-2025-28048 |
| Ubuntu | focal | linux-aws-5.15-cloud-tools-5.15.0-1100 | Advisory build | 5.15.0-1100.107~20.04.2 | USN-8033-4 |
| Ubuntu | focal | linux-aws-5.15-headers-5.15.0-1100 | Advisory build | 5.15.0-1100.107~20.04.2 | USN-8033-4 |
| Ubuntu | focal | linux-aws-5.15-tools-5.15.0-1100 | Advisory build | 5.15.0-1100.107~20.04.2 | USN-8033-4 |
| Ubuntu | focal | linux-azure-5.15 | Advisory build | 5.15.0-1110.119~20.04.1 | USN-8243-1 |
| Ubuntu | focal | linux-azure-5.15-cloud-tools-5.15.0-1110 | Advisory build | 5.15.0-1110.119~20.04.1 | USN-8243-1 |
| Ubuntu | focal | linux-azure-5.15-headers-5.15.0-1110 | Advisory build | 5.15.0-1110.119~20.04.1 | USN-8243-1 |
| Ubuntu | focal | linux-azure-5.15-tools-5.15.0-1110 | Advisory build | 5.15.0-1110.119~20.04.1 | USN-8243-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1052-nvidia-tegra | Advisory build | 5.15.0-1052.52~20.04.2 | USN-8034-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1052-nvidia-tegra-rt | Advisory build | 5.15.0-1052.52~20.04.2 | USN-8034-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1094-ibm | Advisory build | 5.15.0-1094.97~20.04.1 | USN-8033-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1095-intel-iotg | Advisory build | 5.15.0-1095.101~20.04.1 | USN-8033-7 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1097-oracle | Advisory build | 5.15.0-1097.103~20.04.1 | USN-8033-5 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1100-aws | Advisory build | 5.15.0-1100.107~20.04.2 | USN-8033-4 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1100-gcp | Advisory build | 5.15.0-1100.109~20.04.1 | USN-8033-5 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1110-azure | Advisory build | 5.15.0-1110.119~20.04.1 | USN-8243-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-170-generic | Advisory build | 5.15.0-170.180~20.04.3 | USN-8033-1 |
Package entries are limited to the first 100 builds and 100 linked advisories.
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 477e19dedc9d3e1f4443a1d4ae00572a988120ea to < a8c53553f1833cc2d14175d2d72cf37193a01898 (affected · git)477e19dedc9d3e1f4443a1d4ae00572a988120ea to < cc14ea21c4e658814d737ed4dedde6cd626a15ad (affected · git)477e19dedc9d3e1f4443a1d4ae00572a988120ea to < 4b97e99b87a773d52699521d40864f3ec888e9a6 (affected · git)477e19dedc9d3e1f4443a1d4ae00572a988120ea to < 6e7dadc5763c48eb3b9b91265a21f312599ebb2c (affected · git)477e19dedc9d3e1f4443a1d4ae00572a988120ea to < 06c4826b1d900611096e4621e93133db57e13911 (affected · git)477e19dedc9d3e1f4443a1d4ae00572a988120ea to < babc634e9fe2803962dba98a07587e835dbc0731 (affected · git)477e19dedc9d3e1f4443a1d4ae00572a988120ea to < d5ddd76ee52bdc16e9f8b1e7791291e785dab032 (affected · git)477e19dedc9d3e1f4443a1d4ae00572a988120ea to < 4c7ef92f6d4d08a27d676e4c348f4e2922cab3ed (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 4.20 (affected)0 to < 4.20 (unaffected · semver)5.4.301 through 5.4.* (unaffected · semver)5.10.246 through 5.10.* (unaffected · semver)5.15.195 through 5.15.* (unaffected · semver)6.1.156 through 6.1.* (unaffected · semver)6.6.112 through 6.6.* (unaffected · semver)6.12.53 through 6.12.* (unaffected · semver)6.17.3 through 6.17.* (unaffected · semver)6.18 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
8- https://git.kernel.org/stable/c/06c4826b1d900611096e4621e93133db57e13911
- https://git.kernel.org/stable/c/4b97e99b87a773d52699521d40864f3ec888e9a6
- https://git.kernel.org/stable/c/4c7ef92f6d4d08a27d676e4c348f4e2922cab3ed
- https://git.kernel.org/stable/c/6e7dadc5763c48eb3b9b91265a21f312599ebb2c
- https://git.kernel.org/stable/c/a8c53553f1833cc2d14175d2d72cf37193a01898
- https://git.kernel.org/stable/c/babc634e9fe2803962dba98a07587e835dbc0731
- https://git.kernel.org/stable/c/cc14ea21c4e658814d737ed4dedde6cd626a15ad
- https://git.kernel.org/stable/c/d5ddd76ee52bdc16e9f8b1e7791291e785dab032
Provider assertions
1Linux · cna
blk-mq: check kobject state_in_sysfs before deleting in blk_mq_unregister_hctx
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- dba323045862b212bf6aaf448b76ef65ae48ddd61e1facb7684670fd35dbf40e
- Ingested
- 23 Sep 2026, 08:48:04 UTC
- Source record
- Official CVE record