Linux Kernel up to 6.1.1 __class_register double free

CVSS Meta Temp Score
CVSS is a standardized scoring system to determine possibilities of attacks. The Temp Score considers temporal factors like disclosure, exploit and countermeasures. The unique Meta Score calculates the average score of different sources to provide a normalized scoring system.
Current Exploit Price (≈)
Our analysts are monitoring exploit markets and are in contact with vulnerability brokers. The range indicates the observed or calculated exploit price to be seen on exploit markets. A good indicator to understand the monetary effort required for and the popularity of an attack.
CTI Interest Score
Our Cyber Threat Intelligence team is monitoring different web sites, mailing lists, exploit markets and social media networks. The CTI Interest Score identifies the interest of attackers and the security community for this specific vulnerability in real-time. A high score indicates an elevated risk to be targeted for this vulnerability.
4.6$0-$5k0.00

Summaryinfo

A vulnerability marked as critical has been reported in Linux Kernel up to 6.1.1. This issue affects the function __class_register. The manipulation leads to double free. This vulnerability is listed as CVE-2022-50578. There is no available exploit. It is suggested to upgrade the affected component.

Detailsinfo

A vulnerability was found in Linux Kernel up to 6.1.1 and classified as critical. This issue affects the function __class_register. The manipulation with an unknown input leads to a double free vulnerability. Using CWE to declare the problem leads to CWE-415. The product calls free() twice on the same memory address, potentially leading to modification of unexpected memory locations. Impacted is availability. The summary by CVE is:

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: [] __kmalloc_track_caller+0x1ae/0x320 [] kstrdup+0x3a/0x70 [] kstrdup_const+0x68/0x80 [] kvasprintf_const+0x10b/0x190 [] kobject_set_name_vargs+0x56/0x150 [] kobject_set_name+0xab/0xe0 [] __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: [] kmem_cache_alloc_trace+0x17c/0x2f0 [] __class_register+0x86/0x49a

The advisory is shared at git.kernel.org. The identification of this vulnerability is CVE-2022-50578 since 10/22/2025. The exploitation is known to be difficult. Technical details are known, but no exploit is available. The price for an exploit might be around USD $0-$5k at the moment (estimation calculated on 02/28/2026).

The vulnerability scanner Nessus provides a plugin with the ID 279908 (SUSE SLES12 Security Update : kernel (SUSE-SU-2025:4515-1)), which helps to determine the existence of the flaw in a target environment.

Upgrading to version 4.14.303, 4.19.270, 5.4.229, 5.10.163, 5.15.86, 6.0.16 or 6.1.2 eliminates this vulnerability. Applying the patch 4efa5443817c1b6de22d401aeca5b2481e835f8c/3bb9c92c27624ad076419a70f2b1a30cd1f8bbbd/3e0efc3f3f5e5c73996782f8db69963e501bb878/18a7200646958cf8e1b8a933de08122fc50676cd/417ef049e3fd3b0d2593c1d5ffa3d0d5d0a018a7/e764ad5918a099ebeb909ccff83893a714e497e1/abaedb68a769e6bf36836b55a2f49b531c5f3f7b/8c3e8a6bdb5253b97ad532570f8b5db5f7a06407 is able to eliminate this problem. The bugfix is ready for download at git.kernel.org. The best possible mitigation is suggested to be upgrading to the latest version.

The vulnerability is also documented in the databases at Tenable (279908) and CERT Bund (WID-SEC-2025-2394). If you want to get the best quality for vulnerability data then you always have to consider VulDB.

Affected

  • Red Hat Enterprise Linux
  • SUSE Linux
  • Oracle Linux
  • Open Source Linux Kernel
  • Dell NetWorker

Productinfo

Type

Vendor

Name

Version

License

Website

CPE 2.3info

CPE 2.2info

CVSSv4info

VulDB Vector: 🔒
VulDB Reliability: 🔍

CVSSv3info

VulDB Meta Base Score: 4.8
VulDB Meta Temp Score: 4.6

VulDB Base Score: 4.8
VulDB Temp Score: 4.6
VulDB Vector: 🔒
VulDB Reliability: 🔍

CVSSv2info

AVACAuCIA
💳💳💳💳💳💳
💳💳💳💳💳💳
💳💳💳💳💳💳
VectorComplexityAuthenticationConfidentialityIntegrityAvailability
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock

VulDB Base Score: 🔒
VulDB Temp Score: 🔒
VulDB Reliability: 🔍

Exploitinginfo

Class: Double free
CWE: CWE-415 / CWE-119
CAPEC: 🔒
ATT&CK: 🔒

Physical: No
Local: No
Remote: Partially

Availability: 🔒
Status: Not defined

EPSS Score: 🔒
EPSS Percentile: 🔒

Price Prediction: 🔍
Current Price Estimation: 🔒

0-DayUnlockUnlockUnlockUnlock
TodayUnlockUnlockUnlockUnlock

Nessus ID: 279908
Nessus Name: SUSE SLES12 Security Update : kernel (SUSE-SU-2025:4515-1)

Threat Intelligenceinfo

Interest: 🔍
Active Actors: 🔍
Active APT Groups: 🔍

Countermeasuresinfo

Recommended: Upgrade
Status: 🔍

0-Day Time: 🔒

Upgrade: Kernel 4.14.303/4.19.270/5.4.229/5.10.163/5.15.86/6.0.16/6.1.2
Patch: 4efa5443817c1b6de22d401aeca5b2481e835f8c/3bb9c92c27624ad076419a70f2b1a30cd1f8bbbd/3e0efc3f3f5e5c73996782f8db69963e501bb878/18a7200646958cf8e1b8a933de08122fc50676cd/417ef049e3fd3b0d2593c1d5ffa3d0d5d0a018a7/e764ad5918a099ebeb909ccff83893a714e497e1/abaedb68a769e6bf36836b55a2f49b531c5f3f7b/8c3e8a6bdb5253b97ad532570f8b5db5f7a06407

Timelineinfo

10/22/2025 Advisory disclosed
10/22/2025 +0 days CVE reserved
10/22/2025 +0 days VulDB entry created
02/28/2026 +129 days VulDB entry last update

Sourcesinfo

Vendor: kernel.org

Advisory: git.kernel.org
Status: Confirmed

CVE: CVE-2022-50578 (🔒)
GCVE (CVE): GCVE-0-2022-50578
GCVE (VulDB): GCVE-100-329333
CERT Bund: WID-SEC-2025-2394 - Linux Kernel: Mehrere Schwachstellen

Entryinfo

Created: 10/22/2025 16:30
Updated: 02/28/2026 08:30
Changes: 10/22/2025 16:30 (58), 10/24/2025 05:38 (7), 12/26/2025 15:28 (2), 01/02/2026 05:01 (1), 02/28/2026 08:30 (1)
Complete: 🔍
Cache ID: 216::103

If you want to get the best quality for vulnerability data then you always have to consider VulDB.

Discussion

No comments yet. Languages: en.

Please log in to comment.

Interested in the pricing of exploits?

See the underground prices here!