CVE-2023-4622

Summary

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).

Affected Software

VendorProductVersion RangeStatus
LinuxKernel4.2 < 4.14.324affected
LinuxKernel4.15 < 4.19.293affected
LinuxKernel4.20 < 5.4.255affected
LinuxKernel5.5 < 5.10.192affected
LinuxKernel5.11 < 5.15.128affected
LinuxKernel5.16 < 6.1.47affected
LinuxKernel6.2 < 6.4.12affected
LinuxKernel6.5unaffected

Weaknesses

  • CWE-416: CWE-416 Use After Free

ADP Enrichment

CVE Program Container

Additional References

References