Use-after-free in Linux kernel's af_unix component
Linux Kernel
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Kernel |
|
|
Linux Kernel
| Product | Affected | Fixed in |
|---|---|---|
| Linux Kernel |
|
|
A use-after-free vulnerability in the Linux kernel's af_unix component can be exploited to achieve local privilege escalation.
The unix_stream_sendpage() function tries to add data to the last skb in the peer's recv queue without locking the queue. Thus there is a race where unix_stream_sendpage() could access an skb locklessly that is being released by garbage collection, resulting in use-after-free.
We recommend upgrading past commit 790c2f9d15b594350ae9bca7b236f2b1859de02c (or backported equivalents).
From the CVE record · Google
A use-after-free vulnerability affects the Linux kernel's af_unix component. A local attacker can exploit a race between unix_stream_sendpage() and garbage collection to escalate privileges.
Anyone running a Linux kernel without commit 790c2f9d15b594350ae9bca7b236f2b1859de02c or an equivalent backport should check their installation.