Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2022-50578

published

class: fix possible memory leak in __class_register()

Published
22 Oct 2025, 13:23:31 UTC
Updated
11 May 2026, 19:22:08 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linuxced6473e7486702f530a49f886b73195e4977734 to < 4efa5443817c1b6de22d401aeca5b2481e835f8c · ced6473e7486702f530a49f886b73195e4977734 to < 3bb9c92c27624ad076419a70f2b1a30cd1f8bbbd · ced6473e7486702f530a49f886b73195e4977734 to < 3e0efc3f3f5e5c73996782f8db69963e501bb878 · ced6473e7486702f530a49f886b73195e4977734 to < 18a7200646958cf8e1b8a933de08122fc50676cd · ced6473e7486702f530a49f886b73195e4977734 to < 417ef049e3fd3b0d2593c1d5ffa3d0d5d0a018a7 · ced6473e7486702f530a49f886b73195e4977734 to < e764ad5918a099ebeb909ccff83893a714e497e1 · ced6473e7486702f530a49f886b73195e4977734 to < abaedb68a769e6bf36836b55a2f49b531c5f3f7b · ced6473e7486702f530a49f886b73195e4977734 to < 8c3e8a6bdb5253b97ad532570f8b5db5f7a06407 · Other versions: unaffected Affected Not stated Linux
Linux — Linux4.10 (affected) · 0 to < 4.10 (unaffected · semver) · 4.14.303 through 4.14.* (unaffected · semver) · 4.19.270 through 4.19.* (unaffected · semver) · 5.4.229 through 5.4.* (unaffected · semver) · 5.10.163 through 5.10.* (unaffected · semver) · 5.15.86 through 5.15.* (unaffected · semver) · 6.0.16 through 6.0.* (unaffected · semver) · 6.1.2 through 6.1.* (unaffected · semver) · 6.2 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluationALAS2-2023-1932 Fixed Not stated Amazon Linux assessment
Amazon Linux AL2 Release evaluationALAS2KERNEL-5.10-2023-026 Fixed Not stated Amazon Linux assessment
Amazon Linux AL2 Release evaluationALAS2KERNEL-5.15-2023-012 Fixed Not stated Amazon Linux assessment
Amazon Linux AL2 Release evaluationALAS2KERNEL-5.4-2023-042 Fixed Not stated Amazon Linux assessment
Red Hat Enterprise Linux RHEL-8 bpftoolaarch64 Advisory build 4.18.0-513.5.1.el8_9 RHSA-2023:7077
Red Hat Enterprise Linux RHEL-8 bpftoolppc64le Advisory build 4.18.0-513.5.1.el8_9 RHSA-2023:7077
Show 99 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Amazon Linux AL2023 Release evaluation Not Affected Not required Amazon Linux assessment
Red Hat Enterprise Linux RHEL-8 bpftools390x Advisory build 4.18.0-513.5.1.el8_9 RHSA-2023:7077
Red Hat Enterprise Linux RHEL-8 bpftoolx86_64 Advisory build 4.18.0-513.5.1.el8_9 RHSA-2023:7077
Red Hat Enterprise Linux RHEL-8 bpftool-debuginfoaarch64 Advisory build 4.18.0-513.5.1.el8_9 RHSA-2023:7077
Red Hat Enterprise Linux RHEL-8 bpftool-debuginfoppc64le Advisory build 4.18.0-513.5.1.el8_9 RHSA-2023:7077
Red Hat Enterprise Linux RHEL-8 bpftool-debuginfos390x Advisory build 4.18.0-513.5.1.el8_9 RHSA-2023:7077
Red Hat Enterprise Linux RHEL-8 bpftool-debuginfox86_64 Advisory build 4.18.0-513.5.1.el8_9 RHSA-2023:7077
Red Hat Enterprise Linux RHEL-8 kernelaarch64 Advisory build 4.18.0-513.5.1.el8_9 RHSA-2023:7077
Red Hat Enterprise Linux RHEL-8 kernelppc64le Advisory build 4.18.0-513.5.1.el8_9 RHSA-2023:7077
Red Hat Enterprise Linux RHEL-8 kernels390x Advisory build 4.18.0-513.5.1.el8_9 RHSA-2023:7077
Red Hat Enterprise Linux RHEL-8 kernelsrc Advisory build 4.18.0-513.5.1.el8_9 RHSA-2023:7077
Red Hat Enterprise Linux RHEL-8 kernelx86_64 Advisory build 4.18.0-513.5.1.el8_9 RHSA-2023:7077
Red Hat Enterprise Linux RHEL-8 kernel-abi-stablelistsnoarch Advisory build 4.18.0-513.5.1.el8_9 RHSA-2023:7077
Red Hat Enterprise Linux RHEL-8 kernel-coreaarch64 Advisory build 4.18.0-513.5.1.el8_9 RHSA-2023:7077
Red Hat Enterprise Linux RHEL-8 kernel-coreppc64le Advisory build 4.18.0-513.5.1.el8_9 RHSA-2023:7077
Red Hat Enterprise Linux RHEL-8 kernel-cores390x Advisory build 4.18.0-513.5.1.el8_9 RHSA-2023:7077
Red Hat Enterprise Linux RHEL-8 kernel-corex86_64 Advisory build 4.18.0-513.5.1.el8_9 RHSA-2023:7077
Red Hat Enterprise Linux RHEL-8 kernel-debugaarch64 Advisory build 4.18.0-513.5.1.el8_9 RHSA-2023:7077
Red Hat Enterprise Linux RHEL-8 kernel-debugppc64le Advisory build 4.18.0-513.5.1.el8_9 RHSA-2023:7077
Red Hat Enterprise Linux RHEL-8 kernel-debugs390x Advisory build 4.18.0-513.5.1.el8_9 RHSA-2023:7077
Red Hat Enterprise Linux RHEL-8 kernel-debugx86_64 Advisory build 4.18.0-513.5.1.el8_9 RHSA-2023:7077
Red Hat Enterprise Linux RHEL-8 kernel-debug-coreaarch64 Advisory build 4.18.0-513.5.1.el8_9 RHSA-2023:7077
Red Hat Enterprise Linux RHEL-8 kernel-debug-coreppc64le Advisory build 4.18.0-513.5.1.el8_9 RHSA-2023:7077
Red Hat Enterprise Linux RHEL-8 kernel-debug-cores390x Advisory build 4.18.0-513.5.1.el8_9 RHSA-2023:7077
Red Hat Enterprise Linux RHEL-8 kernel-debug-corex86_64 Advisory build 4.18.0-513.5.1.el8_9 RHSA-2023:7077
Red Hat Enterprise Linux RHEL-8 kernel-debug-debuginfoaarch64 Advisory build 4.18.0-513.5.1.el8_9 RHSA-2023:7077
Red Hat Enterprise Linux RHEL-8 kernel-debug-debuginfoppc64le Advisory build 4.18.0-513.5.1.el8_9 RHSA-2023:7077
Red Hat Enterprise Linux RHEL-8 kernel-debug-debuginfos390x Advisory build 4.18.0-513.5.1.el8_9 RHSA-2023:7077
Red Hat Enterprise Linux RHEL-8 kernel-debug-debuginfox86_64 Advisory build 4.18.0-513.5.1.el8_9 RHSA-2023:7077
Red Hat Enterprise Linux RHEL-8 kernel-debug-develaarch64 Advisory build 4.18.0-513.5.1.el8_9 RHSA-2023:7077
Red Hat Enterprise Linux RHEL-8 kernel-debug-develppc64le Advisory build 4.18.0-513.5.1.el8_9 RHSA-2023:7077
Red Hat Enterprise Linux RHEL-8 kernel-debug-devels390x Advisory build 4.18.0-513.5.1.el8_9 RHSA-2023:7077
Red Hat Enterprise Linux RHEL-8 kernel-debug-develx86_64 Advisory build 4.18.0-513.5.1.el8_9 RHSA-2023:7077
Red Hat Enterprise Linux RHEL-8 kernel-debug-modulesaarch64 Advisory build 4.18.0-513.5.1.el8_9 RHSA-2023:7077
Red Hat Enterprise Linux RHEL-8 kernel-debug-modulesppc64le Advisory build 4.18.0-513.5.1.el8_9 RHSA-2023:7077
Red Hat Enterprise Linux RHEL-8 kernel-debug-moduless390x Advisory build 4.18.0-513.5.1.el8_9 RHSA-2023:7077
Red Hat Enterprise Linux RHEL-8 kernel-debug-modulesx86_64 Advisory build 4.18.0-513.5.1.el8_9 RHSA-2023:7077
Red Hat Enterprise Linux RHEL-8 kernel-debug-modules-extraaarch64 Advisory build 4.18.0-513.5.1.el8_9 RHSA-2023:7077
Red Hat Enterprise Linux RHEL-8 kernel-debug-modules-extrappc64le Advisory build 4.18.0-513.5.1.el8_9 RHSA-2023:7077
Red Hat Enterprise Linux RHEL-8 kernel-debug-modules-extras390x Advisory build 4.18.0-513.5.1.el8_9 RHSA-2023:7077
Red Hat Enterprise Linux RHEL-8 kernel-debug-modules-extrax86_64 Advisory build 4.18.0-513.5.1.el8_9 RHSA-2023:7077
Red Hat Enterprise Linux RHEL-8 kernel-debuginfoaarch64 Advisory build 4.18.0-513.5.1.el8_9 RHSA-2023:7077
Red Hat Enterprise Linux RHEL-8 kernel-debuginfoppc64le Advisory build 4.18.0-513.5.1.el8_9 RHSA-2023:7077
Red Hat Enterprise Linux RHEL-8 kernel-debuginfos390x Advisory build 4.18.0-513.5.1.el8_9 RHSA-2023:7077
Red Hat Enterprise Linux RHEL-8 kernel-debuginfox86_64 Advisory build 4.18.0-513.5.1.el8_9 RHSA-2023:7077
Red Hat Enterprise Linux RHEL-8 kernel-debuginfo-common-aarch64aarch64 Advisory build 4.18.0-513.5.1.el8_9 RHSA-2023:7077
Red Hat Enterprise Linux RHEL-8 kernel-debuginfo-common-ppc64leppc64le Advisory build 4.18.0-513.5.1.el8_9 RHSA-2023:7077
Red Hat Enterprise Linux RHEL-8 kernel-debuginfo-common-s390xs390x Advisory build 4.18.0-513.5.1.el8_9 RHSA-2023:7077
Red Hat Enterprise Linux RHEL-8 kernel-debuginfo-common-x86_64x86_64 Advisory build 4.18.0-513.5.1.el8_9 RHSA-2023:7077
Red Hat Enterprise Linux RHEL-8 kernel-develaarch64 Advisory build 4.18.0-513.5.1.el8_9 RHSA-2023:7077
Red Hat Enterprise Linux RHEL-8 kernel-develppc64le Advisory build 4.18.0-513.5.1.el8_9 RHSA-2023:7077
Red Hat Enterprise Linux RHEL-8 kernel-devels390x Advisory build 4.18.0-513.5.1.el8_9 RHSA-2023:7077
Red Hat Enterprise Linux RHEL-8 kernel-develx86_64 Advisory build 4.18.0-513.5.1.el8_9 RHSA-2023:7077
Red Hat Enterprise Linux RHEL-8 kernel-docnoarch Advisory build 4.18.0-513.5.1.el8_9 RHSA-2023:7077
Red Hat Enterprise Linux RHEL-8 kernel-modulesaarch64 Advisory build 4.18.0-513.5.1.el8_9 RHSA-2023:7077
Red Hat Enterprise Linux RHEL-8 kernel-modulesppc64le Advisory build 4.18.0-513.5.1.el8_9 RHSA-2023:7077
Red Hat Enterprise Linux RHEL-8 kernel-moduless390x Advisory build 4.18.0-513.5.1.el8_9 RHSA-2023:7077
Red Hat Enterprise Linux RHEL-8 kernel-modulesx86_64 Advisory build 4.18.0-513.5.1.el8_9 RHSA-2023:7077
Red Hat Enterprise Linux RHEL-8 kernel-modules-extraaarch64 Advisory build 4.18.0-513.5.1.el8_9 RHSA-2023:7077
Red Hat Enterprise Linux RHEL-8 kernel-modules-extrappc64le Advisory build 4.18.0-513.5.1.el8_9 RHSA-2023:7077
Red Hat Enterprise Linux RHEL-8 kernel-modules-extras390x Advisory build 4.18.0-513.5.1.el8_9 RHSA-2023:7077
Red Hat Enterprise Linux RHEL-8 kernel-modules-extrax86_64 Advisory build 4.18.0-513.5.1.el8_9 RHSA-2023:7077
Red Hat Enterprise Linux RHEL-8 kernel-toolsaarch64 Advisory build 4.18.0-513.5.1.el8_9 RHSA-2023:7077
Red Hat Enterprise Linux RHEL-8 kernel-toolsppc64le Advisory build 4.18.0-513.5.1.el8_9 RHSA-2023:7077
Red Hat Enterprise Linux RHEL-8 kernel-toolss390x Advisory build 4.18.0-513.5.1.el8_9 RHSA-2023:7077
Red Hat Enterprise Linux RHEL-8 kernel-toolsx86_64 Advisory build 4.18.0-513.5.1.el8_9 RHSA-2023:7077
Red Hat Enterprise Linux RHEL-8 kernel-tools-debuginfoaarch64 Advisory build 4.18.0-513.5.1.el8_9 RHSA-2023:7077
Red Hat Enterprise Linux RHEL-8 kernel-tools-debuginfoppc64le Advisory build 4.18.0-513.5.1.el8_9 RHSA-2023:7077
Red Hat Enterprise Linux RHEL-8 kernel-tools-debuginfos390x Advisory build 4.18.0-513.5.1.el8_9 RHSA-2023:7077
Red Hat Enterprise Linux RHEL-8 kernel-tools-debuginfox86_64 Advisory build 4.18.0-513.5.1.el8_9 RHSA-2023:7077
Red Hat Enterprise Linux RHEL-8 kernel-tools-libsaarch64 Advisory build 4.18.0-513.5.1.el8_9 RHSA-2023:7077
Red Hat Enterprise Linux RHEL-8 kernel-tools-libsppc64le Advisory build 4.18.0-513.5.1.el8_9 RHSA-2023:7077
Red Hat Enterprise Linux RHEL-8 kernel-tools-libsx86_64 Advisory build 4.18.0-513.5.1.el8_9 RHSA-2023:7077
Red Hat Enterprise Linux RHEL-8 kernel-zfcpdumps390x Advisory build 4.18.0-513.5.1.el8_9 RHSA-2023:7077
Red Hat Enterprise Linux RHEL-8 kernel-zfcpdump-cores390x Advisory build 4.18.0-513.5.1.el8_9 RHSA-2023:7077
Red Hat Enterprise Linux RHEL-8 kernel-zfcpdump-debuginfos390x Advisory build 4.18.0-513.5.1.el8_9 RHSA-2023:7077
Red Hat Enterprise Linux RHEL-8 kernel-zfcpdump-devels390x Advisory build 4.18.0-513.5.1.el8_9 RHSA-2023:7077
Red Hat Enterprise Linux RHEL-8 kernel-zfcpdump-moduless390x Advisory build 4.18.0-513.5.1.el8_9 RHSA-2023:7077
Red Hat Enterprise Linux RHEL-8 kernel-zfcpdump-modules-extras390x Advisory build 4.18.0-513.5.1.el8_9 RHSA-2023:7077
Red Hat Enterprise Linux RHEL-8 perfaarch64 Advisory build 4.18.0-513.5.1.el8_9 RHSA-2023:7077
Red Hat Enterprise Linux RHEL-8 perfppc64le Advisory build 4.18.0-513.5.1.el8_9 RHSA-2023:7077
Red Hat Enterprise Linux RHEL-8 perfs390x Advisory build 4.18.0-513.5.1.el8_9 RHSA-2023:7077
Red Hat Enterprise Linux RHEL-8 perfx86_64 Advisory build 4.18.0-513.5.1.el8_9 RHSA-2023:7077
Red Hat Enterprise Linux RHEL-8 perf-debuginfoaarch64 Advisory build 4.18.0-513.5.1.el8_9 RHSA-2023:7077
Red Hat Enterprise Linux RHEL-8 perf-debuginfoppc64le Advisory build 4.18.0-513.5.1.el8_9 RHSA-2023:7077
Red Hat Enterprise Linux RHEL-8 perf-debuginfos390x Advisory build 4.18.0-513.5.1.el8_9 RHSA-2023:7077
Red Hat Enterprise Linux RHEL-8 perf-debuginfox86_64 Advisory build 4.18.0-513.5.1.el8_9 RHSA-2023:7077
Red Hat Enterprise Linux RHEL-8 python3-perfaarch64 Advisory build 4.18.0-513.5.1.el8_9 RHSA-2023:7077
Red Hat Enterprise Linux RHEL-8 python3-perfppc64le Advisory build 4.18.0-513.5.1.el8_9 RHSA-2023:7077
Red Hat Enterprise Linux RHEL-8 python3-perfs390x Advisory build 4.18.0-513.5.1.el8_9 RHSA-2023:7077
Red Hat Enterprise Linux RHEL-8 python3-perfx86_64 Advisory build 4.18.0-513.5.1.el8_9 RHSA-2023:7077
Red Hat Enterprise Linux RHEL-8 python3-perf-debuginfoaarch64 Advisory build 4.18.0-513.5.1.el8_9 RHSA-2023:7077
Red Hat Enterprise Linux RHEL-8 python3-perf-debuginfoppc64le Advisory build 4.18.0-513.5.1.el8_9 RHSA-2023:7077
Red Hat Enterprise Linux RHEL-8 python3-perf-debuginfos390x Advisory build 4.18.0-513.5.1.el8_9 RHSA-2023:7077
Red Hat Enterprise Linux RHEL-8 python3-perf-debuginfox86_64 Advisory build 4.18.0-513.5.1.el8_9 RHSA-2023:7077
Red Hat Enterprise Linux RHEL-9 bpftoolaarch64 Advisory build 7.2.0-362.8.1.el9_3 RHSA-2023:6583
Red Hat Enterprise Linux RHEL-9 bpftoolppc64le Advisory build 7.2.0-362.8.1.el9_3 RHSA-2023:6583
Red Hat Enterprise Linux RHEL-9 bpftools390x Advisory build 7.2.0-362.8.1.el9_3 RHSA-2023:6583
Red Hat Enterprise Linux RHEL-9 bpftoolx86_64 Advisory build 7.2.0-362.8.1.el9_3 RHSA-2023:6583

Package entries are limited to the first 100 builds and 100 linked advisories.

Description

In the Linux kernel, the following vulnerability has been resolved: class: fix possible memory leak in __class_register() If class_add_groups() returns error, the 'cp->subsys' need be unregister, and the 'cp' need be freed. We can not call kset_unregister() here, because the 'cls' will be freed in callback function class_release() and it's also freed in caller's error path, it will cause double free. So fix this by calling kobject_del() and kfree_const(name) to cleanup kobject. Besides, call kfree() to free the 'cp'. Fault injection test can trigger this: unreferenced object 0xffff888102fa8190 (size 8): comm "modprobe", pid 502, jiffies 4294906074 (age 49.296s) hex dump (first 8 bytes): 70 6b 74 63 64 76 64 00 pktcdvd. backtrace: [<00000000e7c7703d>] __kmalloc_track_caller+0x1ae/0x320 [<000000005e4d70bc>] kstrdup+0x3a/0x70 [<00000000c2e5e85a>] kstrdup_const+0x68/0x80 [<000000000049a8c7>] kvasprintf_const+0x10b/0x190 [<0000000029123163>] kobject_set_name_vargs+0x56/0x150 [<00000000747219c9>] kobject_set_name+0xab/0xe0 [<0000000005f1ea4e>] __class_register+0x15c/0x49a unreferenced object 0xffff888037274000 (size 1024): comm "modprobe", pid 502, jiffies 4294906074 (age 49.296s) hex dump (first 32 bytes): 00 40 27 37 80 88 ff ff 00 40 27 37 80 88 ff ff .@'7.....@'7.... 00 00 00 00 ad 4e ad de ff ff ff ff 00 00 00 00 .....N.......... backtrace: [<00000000151f9600>] kmem_cache_alloc_trace+0x17c/0x2f0 [<00000000ecf3dd95>] __class_register+0x86/0x49a

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

14

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.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux ced6473e7486702f530a49f886b73195e4977734 to < 4efa5443817c1b6de22d401aeca5b2481e835f8c (affected · git)ced6473e7486702f530a49f886b73195e4977734 to < 3bb9c92c27624ad076419a70f2b1a30cd1f8bbbd (affected · git)ced6473e7486702f530a49f886b73195e4977734 to < 3e0efc3f3f5e5c73996782f8db69963e501bb878 (affected · git)ced6473e7486702f530a49f886b73195e4977734 to < 18a7200646958cf8e1b8a933de08122fc50676cd (affected · git)ced6473e7486702f530a49f886b73195e4977734 to < 417ef049e3fd3b0d2593c1d5ffa3d0d5d0a018a7 (affected · git)ced6473e7486702f530a49f886b73195e4977734 to < e764ad5918a099ebeb909ccff83893a714e497e1 (affected · git)ced6473e7486702f530a49f886b73195e4977734 to < abaedb68a769e6bf36836b55a2f49b531c5f3f7b (affected · git)ced6473e7486702f530a49f886b73195e4977734 to < 8c3e8a6bdb5253b97ad532570f8b5db5f7a06407 (affected · git)Default: unaffected Linux · cna
Linux Linux 4.10 (affected)0 to < 4.10 (unaffected · semver)4.14.303 through 4.14.* (unaffected · semver)4.19.270 through 4.19.* (unaffected · semver)5.4.229 through 5.4.* (unaffected · semver)5.10.163 through 5.10.* (unaffected · semver)5.15.86 through 5.15.* (unaffected · semver)6.0.16 through 6.0.* (unaffected · semver)6.1.2 through 6.1.* (unaffected · semver)6.2 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

8

Provider assertions

1

Linux · cna

class: fix possible memory leak in __class_register()

Provenance

Schema
5.2
Searchable
yes
Content hash
a386f524bded1cde3c8c06f3796bbc27aea0aad8b2e5378edf35cb51d77c4b52
Ingested
23 Sep 2026, 08:04:48 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected