HID: intel-ish-hid: ipc: Fix potential use-after-free in work function
- 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.15.105, 6.1.22, 6.2.9
- 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
- Exploitation: none
- Automatable: no
- Technical impact: total
Summary
In the Linux kernel, the following vulnerability has been resolved: HID: intel-ish-hid: ipc: Fix potential use-after-free in work function When a reset notify IPC message is received, the ISR schedules a work function and passes the ISHTP device to it via a global pointer ishtp_dev. If ish_probe() fails, the devm-managed device resources including ishtp_dev are freed, but the work is not cancelled, causing a use-after-free when the work function tries to access ishtp_dev. Use devm_work_autocancel() instead, so that the work is automatically cancelled if probe fails.
Timeline
- CVE published
- CISA SSVC assessment
Exploitation: none · Automatable: no · Technical impact: total
- Record last updated
Affected versions
- Linux Linux
From ae02e5d40d5f829c589412c6253f925e35cf7a22 · fixed in 8c1d378b8c224fd50247625255f09fc01dcc5836; From ae02e5d40d5f829c589412c6253f925e35cf7a22 · fixed in 0a594cb490ca6232671fc09e2dc1a0fc7ccbb0b5; From ae02e5d40d5f829c589412c6253f925e35cf7a22 · fixed in d3ce3afd9f791dd1b7daedfcf8c396b60af5dec0; From ae02e5d40d5f829c589412c6253f925e35cf7a22 · fixed in 8ae2f2b0a28416ed2f6d8478ac8b9f7862f36785
- Linux Linux
4.9
- KernelLinux
From 4.9.0 · fixed in 5.15.105; From 5.16.0 · fixed in 6.1.22; From 6.2.0 · fixed in 6.2.9