CVE-2022-50566 json
mtd: Fix device name leak when register device failed in add_mtd_device()
published 2025-10-22 12 mo ago modified 2026-06-17 4 mo ago also EUVD-2022-55662
- cvss
- —
- not scored
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.2%
- EPSS 0.2% chance of exploitation in 30 days, percentile 16%
- public exploits
- 0
- none known
Summary
In the Linux kernel, the following vulnerability has been resolved:
mtd: Fix device name leak when register device failed in add_mtd_device()
There is a kmemleak when register device failed: unreferenced object 0xffff888101aab550 (size 8): comm "insmod", pid 3922, jiffies 4295277753 (age 925.408s) hex dump (first 8 bytes): 6d 74 64 30 00 88 ff ff mtd0.... backtrace: [<00000000bde26724>] __kmalloc_node_track_caller+0x4e/0x150 [<000000003c32b416>] kvasprintf+0xb0/0x130 [<000000001f7a8f15>] kobject_set_name_vargs+0x2f/0xb0 [<000000006e781163>] dev_set_name+0xab/0xe0 [<00000000e30d0c78>] add_mtd_device+0x4bb/0x700 [<00000000f3d34de7>] mtd_device_parse_register+0x2ac/0x3f0 [<00000000c0d88488>] 0xffffffffa0238457 [<00000000b40d0922>] 0xffffffffa02a008f [<0000000023d17b9d>] do_one_initcall+0x87/0x2a0 [<00000000770f6ca6>] do_init_module+0xdf/0x320 [<000000007b6768fe>] load_module+0x2f98/0x3330 [<00000000346bed5a>] __do_sys_finit_module+0x113/0x1b0 [<00000000674c2290>] do_syscall_64+0x35/0x80 [<000000004c6a8d97>] entry_SYSCALL_64_after_hwframe+0x46/0xb0
If register device failed, should call put_device() to give up the reference.
Patch / fix
- Linux Linux 4.9.337, 4.14.303, 4.19.270, 5.4.229, 5.10.163, 5.15.86, 6.0.16, 6.1.2, 6.2
- linux Debian 14, Debian 13, Debian 12 6.1.4-1
debian advisories DEBIAN-CVE-2022-50566
- linux Ubuntu 18.04 LTS 4.15.0-208.220
- linux Ubuntu 20.04 LTS 5.4.0-144.161
- linux Ubuntu 22.04 LTS 5.15.0-69.76
- linux-aws Ubuntu 18.04 LTS 4.15.0-1153.166
- linux-aws Ubuntu 20.04 LTS 5.4.0-1097.105
- linux-aws Ubuntu 22.04 LTS 5.15.0-1033.37
- linux-gcp Ubuntu 20.04 LTS 5.4.0-1101.110
- linux-gcp Ubuntu 22.04 LTS 5.15.0-1031.38
ubuntu advisories UBUNTU-CVE-2022-50566
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- kernel-64kb SLES 15 SP5-LTSS, SLE High Performance Computing 15 SP5-LTSS, SLE High Performance Computing 15 SP5-ESPOS 5.14.21-150500.55.127.1
- kernel-syms SLES for SAP 15 SP5, SLES 15 SP5-LTSS, SLE High Performance Computing 15 SP5-LTSS +1 more 5.14.21-150500.55.127.1
- kernel-source SLES for SAP 15 SP5, SLES 15 SP5-LTSS, SLE Micro 5.5 +2 more 5.14.21-150500.55.127.1
- kernel-default SLES for SAP 15 SP5, SLES 15 SP5-LTSS, SLE Micro 5.5 +3 more 5.14.21-150500.55.127.1
- kernel-obs-build SLES for SAP 15 SP5, SLES 15 SP5-LTSS, SLE High Performance Computing 15 SP5-LTSS +1 more 5.14.21-150500.55.127.1
- kernel-default-base SLES for SAP 15 SP5, SLES 15 SP5-LTSS, SLE Micro 5.5 +2 more 5.14.21-150500.55.127.1.150500.6.61.1
- kernel-rt SLE Micro 5.5 5.14.21-150500.13.112.1
- kernel-source-rt SLE Micro 5.5 5.14.21-150500.13.112.1
suse advisories SUSE-SU-2025:4320-1SUSE-SU-2025:4149-1SUSE-SU-2025:4139-1SUSE-SU-2025:4111-1
- git.kernel.org/stable/c/a75f45afa932bfb24a2603ebcea5efd2e7cdcfd6 commit
- git.kernel.org/stable/c/2302e2dc42b1f84f951c725ce742fc21c5a1e151 commit
- git.kernel.org/stable/c/db07fe76df01f40cb897d6e9066b84e46957beb3 commit
- git.kernel.org/stable/c/fa0d32ab8407d7481450c664fd0de64f2dae9489 commit
- git.kernel.org/stable/c/330bc5533e8a8ed69cb951d5a8edce9bddb9db21 commit
- git.kernel.org/stable/c/71212d73184845c944ef1b43f092e643e5bde003 commit
- git.kernel.org/stable/c/1b172fb05d6315ecec082fd7544a3390e96f0d7e commit
- git.kernel.org/stable/c/bcabe1dc2a344adbb3382930a23e273ba9382277 commit
- git.kernel.org/stable/c/895d68a39481a75c680aa421546931fb11942fa6 commit
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2022-50566 updated cvss 5.5
kernel: Kernel: Denial of Service due to memory leak during device registration
-
Red Hat Enterprise Linux 6 perf, kernel, python-perf, kernel-kdump, kernel-firmware, kernel-bootwrapper, +1 moreaffected: no fix planned “Out of support scope”
-
Red Hat Enterprise Linux 7 perf, kernel, bpftool, kernel-rt, python-perf, kernel-kdump, +8 more Red Hat Enterprise Linux 8 perf, kernel, bpftool, kernel-rt, kernel-core, kernel-tools, +29 more Red Hat Enterprise Linux 9 rv, perf, rtla, kernel, bpftool, libperf, +83 moreaffected: no fix available “Fix deferred”
-
Red Hat Enterprise Linux 10 kernelnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
0.25% chance of exploitation in the next 30 days, higher than 16% of all scored CVEs (FIRST EPSS, 2026-11-08).
Affected products
- Linux Linux
Classification
- Technology feeds
References
- git.kernel.org /stable/c/a75f45afa932bfb24a2603ebcea5efd2e7cdcfd6
- git.kernel.org /stable/c/2302e2dc42b1f84f951c725ce742fc21c5a1e151
- git.kernel.org /stable/c/db07fe76df01f40cb897d6e9066b84e46957beb3
- git.kernel.org /stable/c/fa0d32ab8407d7481450c664fd0de64f2dae9489
- git.kernel.org /stable/c/330bc5533e8a8ed69cb951d5a8edce9bddb9db21
- git.kernel.org /stable/c/71212d73184845c944ef1b43f092e643e5bde003
- git.kernel.org /stable/c/1b172fb05d6315ecec082fd7544a3390e96f0d7e
- git.kernel.org /stable/c/bcabe1dc2a344adbb3382930a23e273ba9382277
- git.kernel.org /stable/c/895d68a39481a75c680aa421546931fb11942fa6
Sources
- CVE List CVE-2022-50566
- NVD CVE-2022-50566
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.