Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2023-52468— class: fix use-after-free in class_register()

Quick assessment

Affected
Linux Linux
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Linux kernel是美国Linux基金会的开源操作系统Linux所使用的内核。 Linux kernel存在安全漏洞,该漏洞源于class_register()存在释放后重用漏洞。

AI Predicted 6.8 Difficulty: Moderate EPSS 0.27% · P18

Possible ATT&CK Techniques 1 AI

T1059 · Command and Scripting Interpreter

Affected Version Matrix 8

VendorProduct Version RangeStatus
Linux Linux dcfbb67e48a2becfce7990386e985b9c45098ee5< b57196a5ec5e4c0ffecde8348b085b778c7dce04 affected
dcfbb67e48a2becfce7990386e985b9c45098ee5< 0f1486dafca3398c4c46b9f6e6452fa27e73b559 affected
dcfbb67e48a2becfce7990386e985b9c45098ee5< 93ec4a3b76404bce01bd5c9032bef5df6feb1d62 affected
6.4 affected
< 6.4 unaffected
6.6.14≤ 6.6.* unaffected
6.7.2≤ 6.7.* unaffected
6.8≤ * unaffected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2023-52468

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
class: fix use-after-free in class_register()
Source: CVE Program / CVE List V5
Vulnerability Description
In the Linux kernel, the following vulnerability has been resolved: class: fix use-after-free in class_register() The lock_class_key is still registered and can be found in lock_keys_hash hlist after subsys_private is freed in error handler path.A task who iterate over the lock_keys_hash later may cause use-after-free.So fix that up and unregister the lock_class_key before kfree(cp). On our platform, a driver fails to kset_register because of creating duplicate filename '/class/xxx'.With Kasan enabled, it prints a invalid-access bug report. KASAN bug report: BUG: KASAN: invalid-access in lockdep_register_key+0x19c/0x1bc Write of size 8 at addr 15ffff808b8c0368 by task modprobe/252 Pointer tag: [15], memory tag: [fe] CPU: 7 PID: 252 Comm: modprobe Tainted: G W 6.6.0-mainline-maybe-dirty #1 Call trace: dump_backtrace+0x1b0/0x1e4 show_stack+0x2c/0x40 dump_stack_lvl+0xac/0xe0 print_report+0x18c/0x4d8 kasan_report+0xe8/0x148 __hwasan_store8_noabort+0x88/0x98 lockdep_register_key+0x19c/0x1bc class_register+0x94/0x1ec init_module+0xbc/0xf48 [rfkill] do_one_initcall+0x17c/0x72c do_init_module+0x19c/0x3f8 ... Memory state around the buggy address: ffffff808b8c0100: 8a 8a 8a 8a 8a 8a 8a 8a 8a 8a 8a 8a 8a 8a 8a 8a ffffff808b8c0200: 8a 8a 8a 8a 8a 8a 8a 8a fe fe fe fe fe fe fe fe >ffffff808b8c0300: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe ^ ffffff808b8c0400: 03 03 03 03 03 03 03 03 03 03 03 03 03 03 03 03 As CONFIG_KASAN_GENERIC is not set, Kasan reports invalid-access not use-after-free here.In this case, modprobe is manipulating the corrupted lock_keys_hash hlish where lock_class_key is already freed before. It's worth noting that this only can happen if lockdep is enabled, which is not true for normal system.
Source: CVE Program / CVE List V5
CVSS Information
N/A
Source: CVE Program / CVE List V5
Vulnerability Type
N/A
Source: CVE Program / CVE List V5
Vulnerability Title
Linux kernel 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Linux kernel是美国Linux基金会的开源操作系统Linux所使用的内核。 Linux kernel存在安全漏洞,该漏洞源于class_register()存在释放后重用漏洞。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
Linux Linux dcfbb67e48a2becfce7990386e985b9c45098ee5 ~ b57196a5ec5e4c0ffecde8348b085b778c7dce04 -
Linux Linux 6.4 -

II. Public POCs for CVE-2023-52468

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2023-52468

请登录查看更多情报信息。

Other References for CVE-2023-52468 (2)

Same Patch Batch · Linux · 2024-02-25 · 11 CVEs total

CVE-2023-52469 7.8 HIGH drivers/amd/pm: fix a use-after-free in kv_parse_power_table
CVE-2023-52465 power: supply: Fix null pointer dereference in smb2_probe
CVE-2023-52467 mfd: syscon: Fix null pointer dereference in of_syscon_register()
CVE-2023-52470 drm/radeon: check the alloc_workqueue return value in radeon_crtc_init()
CVE-2023-52471 ice: Fix some null pointer dereference issues in ice_ptp.c
CVE-2023-52472 crypto: rsa - add a check for allocation failure
CVE-2023-52473 thermal: core: Fix NULL pointer dereference in zone registration error path
CVE-2021-46904 net: hso: fix null-ptr-deref during tty device unregistration
CVE-2021-46905 net: hso: fix NULL-deref on disconnect regression
CVE-2022-48626 moxart: fix potential use-after-free on remove path

IV. Related Vulnerabilities

V. Comments for CVE-2023-52468

No comments yet


Leave a comment