CVE
CVE-2024-50150
CNA description
In the Linux kernel, the following vulnerability has been resolved: usb: typec: altmode should keep reference to parent The altmode device release refers to its parent device, but without keeping a reference to it. When registering the altmode, get a reference to the parent and put it in the release function. Before this fix, when using CONFIG_DEBUG_KOBJECT_RELEASE, we see issues like this: [ 43.572860] kobject: 'port0.0' (ffff8880057ba008): kobject_release, parent 0000000000000000 (delayed 3000) [ 43.573532] kobject: 'port0.1' (ffff8880057bd008): kobject_release, parent 0000000000000000 (delayed 1000) [ 43.574407] kobject: 'port0' (ffff8880057b9008): kobject_release, parent 0000000000000000 (delayed 3000) [ 43.575059] kobject: 'port1.0' (ffff8880057ca008): kobject_release, parent 0000000000000000 (delayed 4000) [ 43.575908] kobject: 'port1.1' (ffff8880057c9008): kobject_release, parent 0000000000000000 (delayed 4000) [ 43.576908] kobject: 'typec' (ffff8880062dbc00): kobject_release, parent 0000000000000000 (delayed 4000) [ 43.577769] kobject: 'port1' (ffff8880057bf008): kobject_release, parent 0000000000000000 (delayed 3000) [ 46.612867] ================================================================== [ 46.613402] BUG: KASAN: slab-use-after-free in typec_altmode_release+0x38/0x129 [ 46.614003] Read of size 8 at addr ffff8880057b9118 by task kworker/2:1/48 [ 46.614538] [ 46.614668] CPU: 2 UID: 0 PID: 48 Comm: kworker/2:1 Not tainted 6.12.0-rc1-00138-gedbae730ad31 #535 [ 46.615391] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.15.0-1 04/01/2014 [ 46.616042] Workqueue: events kobject_delayed_cleanup [ 46.616446] Call Trace: [ 46.616648] <TASK> [ 46.616820] dump_stack_lvl+0x5b/0x7c [ 46.617112] ? typec_altmode_release+0x38/0x129 [ 46.617470] print_report+0x14c/0x49e [ 46.617769] ? rcu_read_unlock_sched+0x56/0x69 [ 46.618117] ? __virt_addr_valid+0x19a/0x1ab [ 46.618456] ?…
Affected versions
All Linux kernel vulnerabilities →
- 6.12-rc3This version only
- 6.12-rc2This version only
- 6.12-rc1This version only
- ≥ 6.7, < 6.11.6Fixed in 6.11.6
- ≥ 6.2, < 6.6.59Fixed in 6.6.59
- ≥ 5.16, < 6.1.115Fixed in 6.1.115
- ≥ 5.11, < 5.15.170Fixed in 5.15.170
- ≥ 5.5, < 5.10.229Fixed in 5.10.229
- ≥ 4.20, < 5.4.285Fixed in 5.4.285
- ≥ 4.19, < 4.19.323Fixed in 4.19.323
Distribution packages (Debian, Ubuntu, Red Hat…) backport fixes without changing the upstream version: check your distribution’s advisory as well.
Advisories and patches
- git.kernel.org/stable/c/1ded6b12499e6dee9b0e1ceac633be36538f6fc2 · Patch
- git.kernel.org/stable/c/2b0b33e8a58388fa9078f0fbe9af1900e6b08879 · Patch
- git.kernel.org/stable/c/2c15c4133d00f5da632fce60ed013fc31aa9aa58 · Patch
- git.kernel.org/stable/c/68a7c7fe322546be1464174c8d85874b8161deda · Patch
- git.kernel.org/stable/c/6af43ec3bf40f8b428d9134ffa7a291aecd60da8 · Patch
- git.kernel.org/stable/c/87474406056891e4fdea0794e1f632b21b3dfa27 · Patch
- git.kernel.org/stable/c/bee1b68cb8bcee4fd3a8bde3a4886e0b1375dc4d · Patch
- git.kernel.org/stable/c/befab3a278c59db0cc88c8799638064f6d3fd6f8 · Patch
Data: NVD (public domain), CISA KEV (CC0), FIRST EPSS, OSV.dev / GitHub Advisory Database (CC-BY 4.0) · This database lists affected versions and fixes only. It never hosts or links exploit code.