ALSA: usb-audio: avoid kobject path lookup in DualSense match
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 5.10.261, 5.15.212, 6.1.178, 6.6.145, 6.12.96, and 2 more
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
Summary
In the Linux kernel, the following vulnerability has been resolved: ALSA: usb-audio: avoid kobject path lookup in DualSense match The DualSense jack-detection input handler verifies that a matching input device belongs to the same physical controller by building kobject path strings for both the input device and the USB audio device, then comparing the path prefix. This was observed when a weak physical connection caused the controller to rapidly disconnect and reconnect. During that repeated hotplug, snd_dualsense_ih_match() can run while the controller's USB device is being disconnected. kobject_get_path() walks ancestor kobjects and dereferences their names; if the USB device kobject name is no longer valid, this can fault in strlen(): RIP: 0010:strlen+0x10/0x30 Call Trace: kobject_get_path+0x34/0x150 snd_dualsense_ih_match+0x49/0xd0 [snd_usb_audio] input_register_device+0x566/0x6a0 ps_probe+0xb89/0x1590 [hid_playstation] The same ownership check can be done without building kobject path strings. The input device is parented below the HID device, USB interface and USB device, so walking the input device parent chain and comparing against the mixer USB device preserves the check without dereferencing kobject names during disconnect.
Timeline
- CVE published
- Record last updated
Affected versions
- Linux Linux
From 5.10.245 · fixed in 5.10.261; From 5.15.194 · fixed in 5.15.212; From 6.1.155 · fixed in 6.1.178; From 6.6.109 · fixed in 6.6.145; From 6.12.50 · fixed in 6.12.96; From 5.4.300 · fixed in 5.5; From 6.16.10 · fixed in 6.17
- Linux Linux
6.17
References 8
git.kernel.org
- stable/c/e4c66a149c408e44e60bfec3fabf08b6b7abbc60
- stable/c/4566bf8ae9dbfe81bdc2ff1702d59db8a233b06e
- stable/c/662a1d7b5affc424ea4f4bc20dd99be29e687886
- stable/c/a47ecd904c51ae6a42957feb3cf2f4266adee2e5
- stable/c/c1da6d3f45036fa63672ee04ad97cb526b40b987
- stable/c/a263eb12cbe2e208e6e637df0f9b0be9a484158e
- stable/c/4246dd043b7a4f8e3bc1d2896e81d11220610eda
- stable/c/7693c0cc415f3a16a7a3355f245474a5e661be4e