HID: intel-ish-hid: ipc: Fix potential use-after-free in work function
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.
CVE-2023-53039
Primary source · Revision 1
Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.
Security context
Source reference: cve:CVE-2023-53039
Linux
Source reference: /containers/cna/affected/0/product
- Affected versions
- Not stated in this record
- Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Linux
Source reference: /containers/cna/affected/1/product
- Affected versions
- Not stated in this record
- Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Structured affected-version data
Original package identities and version rules from this source.
[
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"product": "Linux",
"versions": [
{
"status": "affected",
"version": "ae02e5d40d5f829c589412c6253f925e35cf7a22",
"lessThan": "8c1d378b8c224fd50247625255f09fc01dcc5836",
"versionType": "git"
},
{
"status": "affected",
"version": "ae02e5d40d5f829c589412c6253f925e35cf7a22",
"lessThan": "0a594cb490ca6232671fc09e2dc1a0fc7ccbb0b5",
"versionType": "git"
},
{
"status": "affected",
"version": "ae02e5d40d5f829c589412c6253f925e35cf7a22",
"lessThan": "d3ce3afd9f791dd1b7daedfcf8c396b60af5dec0",
"versionType": "git"
},
{
"status": "affected",
"version": "ae02e5d40d5f829c589412c6253f925e35cf7a22",
"lessThan": "8ae2f2b0a28416ed2f6d8478ac8b9f7862f36785",
"versionType": "git"
}
],
"programFiles": [
"drivers/hid/intel-ish-hid/ipc/ipc.c"
],
"defaultStatus": "unaffected"
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"product": "Linux",
"versions": [
{
"status": "affected",
"version": "4.9"
},
{
"status": "unaffected",
"version": "0",
"lessThan": "4.9",
"versionType": "semver"
},
{
"status": "unaffected",
"version": "5.15.105",
"versionType": "semver",
"lessThanOrEqual": "5.15.*"
},
{
"status": "unaffected",
"version": "6.1.22",
"versionType": "semver",
"lessThanOrEqual": "6.1.*"
},
{
"status": "unaffected",
"version": "6.2.9",
"versionType": "semver",
"lessThanOrEqual": "6.2.*"
},
{
"status": "unaffected",
"version": "6.3",
"versionType": "original_commit_for_fix",
"lessThanOrEqual": "*"
}
],
"programFiles": [
"drivers/hid/intel-ish-hid/ipc/ipc.c"
],
"defaultStatus": "affected"
}
]- Related CVEs
- CVE-2023-53039
Source reference:
/cveMetadata/cveId
Publisher severity
high
Source reference: /containers/cna/metrics
- Event
- #30246 · Revision 1
- Added to Heist Feed
- Publisher date