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

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2024-50073— tty: n_gsm: Fix use-after-free in gsm_cleanup_mux

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存在安全漏洞,该漏洞源于在gsm_cleanup_mux函数中存在内存释放后重用问题,导致内存泄漏。

CVSS 7.8 · High EPSS 0.26% · P17

Possible ATT&CK Techniques 1 AI

T1068 · Exploitation for Privilege Escalation

Affected Version Matrix 16

VendorProduct Version RangeStatus
Linux Linux 0af021678d5d30c31f5a6b631f404ead3575212a< bf171b5e86e41de4c1cf32fb7aefa275c3d7de49 affected
0af021678d5d30c31f5a6b631f404ead3575212a< c29f192e0d44cc1cbaf698fa1ff198f63556691a affected
0af021678d5d30c31f5a6b631f404ead3575212a< 0eec592c6a7460ba795d7de29f3dc95cb5422e62 affected
0af021678d5d30c31f5a6b631f404ead3575212a< 9462f4ca56e7d2430fdb6dcc8498244acbfc4489 affected
5020173e7e7725110a8d4be1359bf1dfc4b1814d affected
c165698c9919b000bdbe73859d3bb7b33bdb9223 affected
7962a4b900099cf90e02859bb297f2c618d8d940 affected
5.15.209< 5.16 affected
… +8 more rows
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2024-50073

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
tty: n_gsm: Fix use-after-free in gsm_cleanup_mux
Source: CVE Program / CVE List V5
Vulnerability Description
In the Linux kernel, the following vulnerability has been resolved: tty: n_gsm: Fix use-after-free in gsm_cleanup_mux BUG: KASAN: slab-use-after-free in gsm_cleanup_mux+0x77b/0x7b0 drivers/tty/n_gsm.c:3160 [n_gsm] Read of size 8 at addr ffff88815fe99c00 by task poc/3379 CPU: 0 UID: 0 PID: 3379 Comm: poc Not tainted 6.11.0+ #56 Hardware name: VMware, Inc. VMware Virtual Platform/440BX Desktop Reference Platform, BIOS 6.00 11/12/2020 Call Trace: <TASK> gsm_cleanup_mux+0x77b/0x7b0 drivers/tty/n_gsm.c:3160 [n_gsm] __pfx_gsm_cleanup_mux+0x10/0x10 drivers/tty/n_gsm.c:3124 [n_gsm] __pfx_sched_clock_cpu+0x10/0x10 kernel/sched/clock.c:389 update_load_avg+0x1c1/0x27b0 kernel/sched/fair.c:4500 __pfx_min_vruntime_cb_rotate+0x10/0x10 kernel/sched/fair.c:846 __rb_insert_augmented+0x492/0xbf0 lib/rbtree.c:161 gsmld_ioctl+0x395/0x1450 drivers/tty/n_gsm.c:3408 [n_gsm] _raw_spin_lock_irqsave+0x92/0xf0 arch/x86/include/asm/atomic.h:107 __pfx_gsmld_ioctl+0x10/0x10 drivers/tty/n_gsm.c:3822 [n_gsm] ktime_get+0x5e/0x140 kernel/time/timekeeping.c:195 ldsem_down_read+0x94/0x4e0 arch/x86/include/asm/atomic64_64.h:79 __pfx_ldsem_down_read+0x10/0x10 drivers/tty/tty_ldsem.c:338 __pfx_do_vfs_ioctl+0x10/0x10 fs/ioctl.c:805 tty_ioctl+0x643/0x1100 drivers/tty/tty_io.c:2818 Allocated by task 65: gsm_data_alloc.constprop.0+0x27/0x190 drivers/tty/n_gsm.c:926 [n_gsm] gsm_send+0x2c/0x580 drivers/tty/n_gsm.c:819 [n_gsm] gsm1_receive+0x547/0xad0 drivers/tty/n_gsm.c:3038 [n_gsm] gsmld_receive_buf+0x176/0x280 drivers/tty/n_gsm.c:3609 [n_gsm] tty_ldisc_receive_buf+0x101/0x1e0 drivers/tty/tty_buffer.c:391 tty_port_default_receive_buf+0x61/0xa0 drivers/tty/tty_port.c:39 flush_to_ldisc+0x1b0/0x750 drivers/tty/tty_buffer.c:445 process_scheduled_works+0x2b0/0x10d0 kernel/workqueue.c:3229 worker_thread+0x3dc/0x950 kernel/workqueue.c:3391 kthread+0x2a3/0x370 kernel/kthread.c:389 ret_from_fork+0x2d/0x70 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:257 Freed by task 3367: kfree+0x126/0x420 mm/slub.c:4580 gsm_cleanup_mux+0x36c/0x7b0 drivers/tty/n_gsm.c:3160 [n_gsm] gsmld_ioctl+0x395/0x1450 drivers/tty/n_gsm.c:3408 [n_gsm] tty_ioctl+0x643/0x1100 drivers/tty/tty_io.c:2818 [Analysis] gsm_msg on the tx_ctrl_list or tx_data_list of gsm_mux can be freed by multi threads through ioctl,which leads to the occurrence of uaf. Protect it by gsm tx lock.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
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存在安全漏洞,该漏洞源于在gsm_cleanup_mux函数中存在内存释放后重用问题,导致内存泄漏。
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 0af021678d5d30c31f5a6b631f404ead3575212a ~ bf171b5e86e41de4c1cf32fb7aefa275c3d7de49 -
Linux Linux 6.0 -

II. Public POCs for CVE-2024-50073

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

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2024-50073

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

Patches & Fixes for CVE-2024-50073 (2)

Same Patch Batch · Linux · 2024-10-29 · 21 CVEs total

CVE-2024-50086 9.8 CRITICAL ksmbd: fix user-after-free from session log off
CVE-2024-50085 9.8 CRITICAL mptcp: pm: fix UaF read in mptcp_pm_nl_rm_addr_or_subflow
CVE-2024-50075 8.0 HIGH xhci: tegra: fix checked USB2 port number
CVE-2024-50087 7.8 HIGH btrfs: fix uninitialized pointer free on read_alloc_one_name() error
CVE-2024-50074 7.8 HIGH parport: Proper fix for array out-of-bounds access
CVE-2024-50077 7.8 HIGH Bluetooth: ISO: Fix multiple init when debugfs is disabled
CVE-2024-50078 7.8 HIGH Bluetooth: Call iso_exit() on module unload
CVE-2024-50082 7.8 HIGH blk-rq-qos: fix crash on rq_qos_wait vs. rq_qos_wake_function race
CVE-2024-50088 7.8 HIGH btrfs: fix uninitialized pointer free in add_inode_ref()
CVE-2024-50081 blk-mq: setup queue ->tag_set before initializing hctx
CVE-2024-50080 ublk: don't allow user copy for unprivileged device
CVE-2024-50079 io_uring/sqpoll: ensure task state is TASK_RUNNING when running task_work
CVE-2024-50083 tcp: fix mptcp DSS corruption due to large pmtu xmit
CVE-2024-50076 vt: prevent kernel-infoleak in con_font_get()
CVE-2024-50084 net: microchip: vcap api: Fix memory leaks in vcap_api_encode_rule_test()
CVE-2024-50072 x86/bugs: Use code segment selector for VERW operand
CVE-2024-50071 pinctrl: nuvoton: fix a double free in ma35_pinctrl_dt_node_to_map_func()
CVE-2024-50070 pinctrl: stm32: check devm_kasprintf() returned value
CVE-2024-50069 pinctrl: apple: check devm_kasprintf() returned value
CVE-2024-50068 mm/damon/tests/sysfs-kunit.h: fix memory leak in damon_sysfs_test_add_targets()

IV. Related Vulnerabilities

V. Comments for CVE-2024-50073

No comments yet


Leave a comment