Vulnerability in Linux
CVE-2026-53361
In the Linux kernel, the following vulnerability has been resolved:
af_unix: Set gc_in_progress to true in unix_gc().
Igor Ushakov reported that unix_gc() could run with gc_in_progress
being false if the work is scheduled while running:
Thread 1 Thread 2 Thread 3
-------- -------- --------
unix_schedule_gc() unix_schedule_gc()
`- if (!gc_in_progress) `- if (!gc_in_progress)
|- gc_in_progress = true |
`- queue_work() |
unix_gc() <----------------/ |
| |- gc_in_progress = true
... `- queue_work()
| |
`- gc_in_progress = false |
|
unix_gc() <---------------------------------------------'
|
... /* gc_in_progress == false */
|
`- gc_in_progress = false
unix_peek_fpl() relies on gc_in_progress not to confuse GC
by MSG_PEEK.
Let's set gc_in_progress to true in unix_gc().
Vulnerability class: Race Condition
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.1 (High). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H.
EPSS exploit prediction
EPSS 0.003, 17.6th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Linux — versions 328840c93bd6a4871dd10908d01b41eab83eb8e2, 8b90a9f819dc2a06baae4ec1a64d875e53b824ec, ceb8bd6c69c1680fd9b45e7f16d7170c9c7513a5
- Linux Kernel — versions 7.1
Weakness classification (CWE)
Public exploits and proof-of-concept code
1 public repository with exploit or proof-of-concept code for this CVE:
- sgkdev/bad_garbage (28 stars, last pushed 2026-08-11): CVE-2026-53361 AF_UNIX GC vs MSG_PEEK use-after-free container escape
References
- git.kernel.org/stable/c/0cfa78c050662784fc8e3ab26dbfd1dc632b2082 (Patch)
- git.kernel.org/stable/c/591f1ac217428a6d2b32a8ac14aac0fab44f155a (Patch)
- git.kernel.org/stable/c/82c17e13d404f686e164590483fd6c1abaa675d0 (Patch)
- git.kernel.org/stable/c/d82ba05263c69fa2437fe93e4e561cc40f4c03af (Patch)
- git.kernel.org/stable/c/20aa894d475bd8086b25c1113ec4ca70f70c7a98
This CVE has public exploit evidence. See the latest CVEs with public exploits.