CVE-2022-49902
published medium CVSS 3.1 · 5.5block: Fix possible memory leak for rq_wb on add_disk failure
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux83cbce9574462c6b4eed6797bdaf18fae6859ab3 to < 4e68c5da60cd79950bd56287ae80b39d6261f995 · 83cbce9574462c6b4eed6797bdaf18fae6859ab3 to < 528677d3b4af985445bd4ac667485ded1ed11220 · 83cbce9574462c6b4eed6797bdaf18fae6859ab3 to < fa81cbafbf5764ad5053512152345fab37a1fe18 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux5.15 (affected) · 0 to < 5.15 (unaffected · semver) · 5.15.78 through 5.15.* (unaffected · semver) · 6.0.8 through 6.0.* (unaffected · semver) · 6.1 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.15-2022-011 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Red Hat Enterprise Linux | RHEL-9 | bpftoolaarch64 | Advisory build | 7.0.0-284.11.1.el9_2 | RHSA-2023:2458 |
| Red Hat Enterprise Linux | RHEL-9 | bpftoolppc64le | Advisory build | 7.0.0-284.11.1.el9_2 | RHSA-2023:2458 |
| Red Hat Enterprise Linux | RHEL-9 | bpftools390x | Advisory build | 7.0.0-284.11.1.el9_2 | RHSA-2023:2458 |
Show 97 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Red Hat Enterprise Linux | RHEL-9 | bpftoolx86_64 | Advisory build | 7.0.0-284.11.1.el9_2 | RHSA-2023:2458 |
| Red Hat Enterprise Linux | RHEL-9 | bpftool-debuginfoaarch64 | Advisory build | 7.0.0-284.11.1.el9_2 | RHSA-2023:2458 |
| Red Hat Enterprise Linux | RHEL-9 | bpftool-debuginfoppc64le | Advisory build | 7.0.0-284.11.1.el9_2 | RHSA-2023:2458 |
| Red Hat Enterprise Linux | RHEL-9 | bpftool-debuginfos390x | Advisory build | 7.0.0-284.11.1.el9_2 | RHSA-2023:2458 |
| Red Hat Enterprise Linux | RHEL-9 | bpftool-debuginfox86_64 | Advisory build | 7.0.0-284.11.1.el9_2 | RHSA-2023:2458 |
| Red Hat Enterprise Linux | RHEL-9 | kernelaarch64 | Advisory build | 5.14.0-284.11.1.el9_2 | RHSA-2023:2458 |
| Red Hat Enterprise Linux | RHEL-9 | kernelppc64le | Advisory build | 5.14.0-284.11.1.el9_2 | RHSA-2023:2458 |
| Red Hat Enterprise Linux | RHEL-9 | kernels390x | Advisory build | 5.14.0-284.11.1.el9_2 | RHSA-2023:2458 |
| Red Hat Enterprise Linux | RHEL-9 | kernelsrc | Advisory build | 5.14.0-284.11.1.el9_2 | RHSA-2023:2458 |
| Red Hat Enterprise Linux | RHEL-9 | kernelx86_64 | Advisory build | 5.14.0-284.11.1.el9_2 | RHSA-2023:2458 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-64kaarch64 | Advisory build | 5.14.0-284.11.1.el9_2 | RHSA-2023:2458 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-64k-coreaarch64 | Advisory build | 5.14.0-284.11.1.el9_2 | RHSA-2023:2458 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-64k-debugaarch64 | Advisory build | 5.14.0-284.11.1.el9_2 | RHSA-2023:2458 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-64k-debug-coreaarch64 | Advisory build | 5.14.0-284.11.1.el9_2 | RHSA-2023:2458 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-64k-debug-debuginfoaarch64 | Advisory build | 5.14.0-284.11.1.el9_2 | RHSA-2023:2458 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-64k-debug-develaarch64 | Advisory build | 5.14.0-284.11.1.el9_2 | RHSA-2023:2458 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-64k-debug-devel-matchedaarch64 | Advisory build | 5.14.0-284.11.1.el9_2 | RHSA-2023:2458 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-64k-debug-modulesaarch64 | Advisory build | 5.14.0-284.11.1.el9_2 | RHSA-2023:2458 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-64k-debug-modules-coreaarch64 | Advisory build | 5.14.0-284.11.1.el9_2 | RHSA-2023:2458 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-64k-debug-modules-extraaarch64 | Advisory build | 5.14.0-284.11.1.el9_2 | RHSA-2023:2458 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-64k-debuginfoaarch64 | Advisory build | 5.14.0-284.11.1.el9_2 | RHSA-2023:2458 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-64k-develaarch64 | Advisory build | 5.14.0-284.11.1.el9_2 | RHSA-2023:2458 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-64k-devel-matchedaarch64 | Advisory build | 5.14.0-284.11.1.el9_2 | RHSA-2023:2458 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-64k-modulesaarch64 | Advisory build | 5.14.0-284.11.1.el9_2 | RHSA-2023:2458 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-64k-modules-coreaarch64 | Advisory build | 5.14.0-284.11.1.el9_2 | RHSA-2023:2458 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-64k-modules-extraaarch64 | Advisory build | 5.14.0-284.11.1.el9_2 | RHSA-2023:2458 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-abi-stablelistsnoarch | Advisory build | 5.14.0-284.11.1.el9_2 | RHSA-2023:2458 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-coreaarch64 | Advisory build | 5.14.0-284.11.1.el9_2 | RHSA-2023:2458 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-coreppc64le | Advisory build | 5.14.0-284.11.1.el9_2 | RHSA-2023:2458 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-cores390x | Advisory build | 5.14.0-284.11.1.el9_2 | RHSA-2023:2458 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-corex86_64 | Advisory build | 5.14.0-284.11.1.el9_2 | RHSA-2023:2458 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debugaarch64 | Advisory build | 5.14.0-284.11.1.el9_2 | RHSA-2023:2458 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debugppc64le | Advisory build | 5.14.0-284.11.1.el9_2 | RHSA-2023:2458 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debugs390x | Advisory build | 5.14.0-284.11.1.el9_2 | RHSA-2023:2458 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debugx86_64 | Advisory build | 5.14.0-284.11.1.el9_2 | RHSA-2023:2458 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debug-coreaarch64 | Advisory build | 5.14.0-284.11.1.el9_2 | RHSA-2023:2458 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debug-coreppc64le | Advisory build | 5.14.0-284.11.1.el9_2 | RHSA-2023:2458 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debug-cores390x | Advisory build | 5.14.0-284.11.1.el9_2 | RHSA-2023:2458 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debug-corex86_64 | Advisory build | 5.14.0-284.11.1.el9_2 | RHSA-2023:2458 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debug-debuginfoaarch64 | Advisory build | 5.14.0-284.11.1.el9_2 | RHSA-2023:2458 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debug-debuginfoppc64le | Advisory build | 5.14.0-284.11.1.el9_2 | RHSA-2023:2458 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debug-debuginfos390x | Advisory build | 5.14.0-284.11.1.el9_2 | RHSA-2023:2458 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debug-debuginfox86_64 | Advisory build | 5.14.0-284.11.1.el9_2 | RHSA-2023:2458 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debug-develaarch64 | Advisory build | 5.14.0-284.11.1.el9_2 | RHSA-2023:2458 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debug-develppc64le | Advisory build | 5.14.0-284.11.1.el9_2 | RHSA-2023:2458 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debug-devels390x | Advisory build | 5.14.0-284.11.1.el9_2 | RHSA-2023:2458 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debug-develx86_64 | Advisory build | 5.14.0-284.11.1.el9_2 | RHSA-2023:2458 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debug-devel-matchedaarch64 | Advisory build | 5.14.0-284.11.1.el9_2 | RHSA-2023:2458 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debug-devel-matchedppc64le | Advisory build | 5.14.0-284.11.1.el9_2 | RHSA-2023:2458 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debug-devel-matcheds390x | Advisory build | 5.14.0-284.11.1.el9_2 | RHSA-2023:2458 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debug-devel-matchedx86_64 | Advisory build | 5.14.0-284.11.1.el9_2 | RHSA-2023:2458 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debug-modulesaarch64 | Advisory build | 5.14.0-284.11.1.el9_2 | RHSA-2023:2458 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debug-modulesppc64le | Advisory build | 5.14.0-284.11.1.el9_2 | RHSA-2023:2458 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debug-moduless390x | Advisory build | 5.14.0-284.11.1.el9_2 | RHSA-2023:2458 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debug-modulesx86_64 | Advisory build | 5.14.0-284.11.1.el9_2 | RHSA-2023:2458 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debug-modules-coreaarch64 | Advisory build | 5.14.0-284.11.1.el9_2 | RHSA-2023:2458 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debug-modules-coreppc64le | Advisory build | 5.14.0-284.11.1.el9_2 | RHSA-2023:2458 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debug-modules-cores390x | Advisory build | 5.14.0-284.11.1.el9_2 | RHSA-2023:2458 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debug-modules-corex86_64 | Advisory build | 5.14.0-284.11.1.el9_2 | RHSA-2023:2458 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debug-modules-extraaarch64 | Advisory build | 5.14.0-284.11.1.el9_2 | RHSA-2023:2458 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debug-modules-extrappc64le | Advisory build | 5.14.0-284.11.1.el9_2 | RHSA-2023:2458 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debug-modules-extras390x | Advisory build | 5.14.0-284.11.1.el9_2 | RHSA-2023:2458 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debug-modules-extrax86_64 | Advisory build | 5.14.0-284.11.1.el9_2 | RHSA-2023:2458 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debug-uki-virtx86_64 | Advisory build | 5.14.0-284.11.1.el9_2 | RHSA-2023:2458 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debuginfoaarch64 | Advisory build | 5.14.0-284.11.1.el9_2 | RHSA-2023:2458 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debuginfoppc64le | Advisory build | 5.14.0-284.11.1.el9_2 | RHSA-2023:2458 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debuginfos390x | Advisory build | 5.14.0-284.11.1.el9_2 | RHSA-2023:2458 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debuginfox86_64 | Advisory build | 5.14.0-284.11.1.el9_2 | RHSA-2023:2458 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debuginfo-common-aarch64aarch64 | Advisory build | 5.14.0-284.11.1.el9_2 | RHSA-2023:2458 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debuginfo-common-ppc64leppc64le | Advisory build | 5.14.0-284.11.1.el9_2 | RHSA-2023:2458 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debuginfo-common-s390xs390x | Advisory build | 5.14.0-284.11.1.el9_2 | RHSA-2023:2458 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debuginfo-common-x86_64x86_64 | Advisory build | 5.14.0-284.11.1.el9_2 | RHSA-2023:2458 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-develaarch64 | Advisory build | 5.14.0-284.11.1.el9_2 | RHSA-2023:2458 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-develppc64le | Advisory build | 5.14.0-284.11.1.el9_2 | RHSA-2023:2458 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-devels390x | Advisory build | 5.14.0-284.11.1.el9_2 | RHSA-2023:2458 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-develx86_64 | Advisory build | 5.14.0-284.11.1.el9_2 | RHSA-2023:2458 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-devel-matchedaarch64 | Advisory build | 5.14.0-284.11.1.el9_2 | RHSA-2023:2458 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-devel-matchedppc64le | Advisory build | 5.14.0-284.11.1.el9_2 | RHSA-2023:2458 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-devel-matcheds390x | Advisory build | 5.14.0-284.11.1.el9_2 | RHSA-2023:2458 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-devel-matchedx86_64 | Advisory build | 5.14.0-284.11.1.el9_2 | RHSA-2023:2458 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-docnoarch | Advisory build | 5.14.0-284.11.1.el9_2 | RHSA-2023:2458 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-modulesaarch64 | Advisory build | 5.14.0-284.11.1.el9_2 | RHSA-2023:2458 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-modulesppc64le | Advisory build | 5.14.0-284.11.1.el9_2 | RHSA-2023:2458 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-moduless390x | Advisory build | 5.14.0-284.11.1.el9_2 | RHSA-2023:2458 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-modulesx86_64 | Advisory build | 5.14.0-284.11.1.el9_2 | RHSA-2023:2458 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-modules-coreaarch64 | Advisory build | 5.14.0-284.11.1.el9_2 | RHSA-2023:2458 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-modules-coreppc64le | Advisory build | 5.14.0-284.11.1.el9_2 | RHSA-2023:2458 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-modules-cores390x | Advisory build | 5.14.0-284.11.1.el9_2 | RHSA-2023:2458 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-modules-corex86_64 | Advisory build | 5.14.0-284.11.1.el9_2 | RHSA-2023:2458 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-modules-extraaarch64 | Advisory build | 5.14.0-284.11.1.el9_2 | RHSA-2023:2458 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-modules-extrappc64le | Advisory build | 5.14.0-284.11.1.el9_2 | RHSA-2023:2458 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-modules-extras390x | Advisory build | 5.14.0-284.11.1.el9_2 | RHSA-2023:2458 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-modules-extrax86_64 | Advisory build | 5.14.0-284.11.1.el9_2 | RHSA-2023:2458 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-toolsaarch64 | Advisory build | 5.14.0-284.11.1.el9_2 | RHSA-2023:2458 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-toolsppc64le | Advisory build | 5.14.0-284.11.1.el9_2 | RHSA-2023:2458 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-toolss390x | Advisory build | 5.14.0-284.11.1.el9_2 | RHSA-2023:2458 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-toolsx86_64 | Advisory build | 5.14.0-284.11.1.el9_2 | RHSA-2023:2458 |
Package entries are limited to the first 100 builds and 100 linked advisories.
Description
In the Linux kernel, the following vulnerability has been resolved: block: Fix possible memory leak for rq_wb on add_disk failure kmemleak reported memory leaks in device_add_disk(): kmemleak: 3 new suspected memory leaks unreferenced object 0xffff88800f420800 (size 512): comm "modprobe", pid 4275, jiffies 4295639067 (age 223.512s) hex dump (first 32 bytes): 04 00 00 00 08 00 00 00 01 00 00 00 00 00 00 00 ................ 00 e1 f5 05 00 00 00 00 00 00 00 00 00 00 00 00 ................ backtrace: [<00000000d3662699>] kmalloc_trace+0x26/0x60 [<00000000edc7aadc>] wbt_init+0x50/0x6f0 [<0000000069601d16>] wbt_enable_default+0x157/0x1c0 [<0000000028fc393f>] blk_register_queue+0x2a4/0x420 [<000000007345a042>] device_add_disk+0x6fd/0xe40 [<0000000060e6aab0>] nbd_dev_add+0x828/0xbf0 [nbd] ... It is because the memory allocated in wbt_enable_default() is not released in device_add_disk() error path. Normally, these memory are freed in: del_gendisk() rq_qos_exit() rqos->ops->exit(rqos); wbt_exit() So rq_qos_exit() is called to free the rq_wb memory for wbt_init(). However in the error path of device_add_disk(), only blk_unregister_queue() is called and make rq_wb memory leaked. Add rq_qos_exit() to the error path to fix it.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 5.5 / 10
- Severity
- medium
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 83cbce9574462c6b4eed6797bdaf18fae6859ab3 to < 4e68c5da60cd79950bd56287ae80b39d6261f995 (affected · git)83cbce9574462c6b4eed6797bdaf18fae6859ab3 to < 528677d3b4af985445bd4ac667485ded1ed11220 (affected · git)83cbce9574462c6b4eed6797bdaf18fae6859ab3 to < fa81cbafbf5764ad5053512152345fab37a1fe18 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 5.15 (affected)0 to < 5.15 (unaffected · semver)5.15.78 through 5.15.* (unaffected · semver)6.0.8 through 6.0.* (unaffected · semver)6.1 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
1- CWE-401 CWE-401 Missing Release of Memory after Effective Lifetime
References
3Provider assertions
2Linux · cna
block: Fix possible memory leak for rq_wb on add_disk failure
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- c6867e7da53b23934b7fa666f580e200be92b334e761b63b5494e43a4c15f3f0
- Ingested
- 23 Sep 2026, 08:04:21 UTC
- Source record
- Official CVE record