Local privilege escalation via iSCSI socket lifetime race
Published Oct 1, 2025 · Updated Oct 1, 2025
Use-after-free in the Linux kernel iSCSI TCP module allows local users to execute kernel code by racing sysfs reads with socket teardown. The parameter getters retain struct sock rather than struct socket, so concurrent release clears sock->ops before kernel_getpeername() dereferences it. Reachability requires an active iscsi_tcp session and a local user able to read its world-readable connection or host attributes during teardown.
Summary
What happened
Use-after-free in the Linux kernel iSCSI TCP module allows local users to execute kernel code by racing sysfs reads with socket teardown. The parameter getters retain struct sock rather than struct socket, so concurrent release clears sock->ops before kernel_getpeername() dereferences it. Reachability requires an active iscsi_tcp session and a local user able to read its world-readable connection or host attributes during teardown.
The record
- CVE
- CVE-2022-50459
- Published
- Oct 1, 2025
- Updated
- Oct 1, 2025
- Vendor
- The Linux Kernel Organization
- Product
- Linux
- Classifications
- CWE-476, T1068
- Attack vector
- local
- Privileges
- authenticated
Timeline
How it unfolded
- Oct 1, 2025CVE publishedPublication date reported by the CVE source.
- Oct 1, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=5.9
- Affected versionversion=7d29e950766327f658cb92722b9445ac3b3ae023
- Affected versionversion=bcf3a2953d36bbfb9bd44ccb3db0897d935cc485 <0a0b861fce2657ba08ec356a74346b37ca4b2008
- Affected versionversion=bcf3a2953d36bbfb9bd44ccb3db0897d935cc485 <57569c37f0add1b6489e1a1563c71519daf732cf
- Affected versionversion=bcf3a2953d36bbfb9bd44ccb3db0897d935cc485 <884a788f065578bb640382279a83d1df433b13e6
- Affected versionversion=bcf3a2953d36bbfb9bd44ccb3db0897d935cc485 <897dbbc57d71e8a34ec1af8e573a142de457da38
- Affected versionversion=bcf3a2953d36bbfb9bd44ccb3db0897d935cc485 <a26b0658751bb0a3b28386fca715333b104d32a2
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo