Skip to main content
Mallory
HighPublic exploitVulnerability

CVE-2026-53361: Use-after-free in Linux kernel AF_UNIX garbage collection

Published Jul 4, 2026 · Updated today
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 days3 mentions · peak 1 in a dayToday
CVSS7.1High · v3.1
EPSS0.16%3rd percentile
CISA KEVNoNot listed
In the wildNonePublic exploit, no exploitation reported
Vendor
Linux
IdentifiersCVE-2026-53361CWE-362 · Concurrent Execution using Shared…

CVE-2026-53361 is a race condition leading to use-after-free in the Linux kernel AF_UNIX garbage collector. Concurrent unix_schedule_gc() calls can queue a subsequent unix_gc() execution that runs with gc_in_progress incorrectly set to false after the preceding execution clears it. Because unix_peek_fpl() relies on this flag to coordinate MSG_PEEK with garbage collection, a concurrent peek can obtain a reference to an in-flight file descriptor that the collector does not account for. The collector can consequently free a still-live socket, leaving a dangling sk_buff and enabling kernel memory corruption.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

An unprivileged local attacker can corrupt kernel memory, potentially causing a kernel crash, escalating privileges, or escaping a container to compromise the host. Shared and multi-tenant systems are particularly exposed because containers share the host kernel. A public exploit named bad_garbage demonstrates container escape on targeted kernel builds; confirmed in-the-wild exploitation is not established.

Mitigation

If you can’t patch tonight, do this now.

No supported runtime workaround is identified. Until patched, restrict untrusted local access and execution of untrusted workloads, particularly on shared hosts and container platforms. Enforce least privilege for services that pass file descriptors over Unix-domain sockets. Container isolation alone does not mitigate this host-kernel vulnerability.

Remediation

Patch, then assume compromise.

Install a vendor-supported kernel update containing the fix that sets gc_in_progress to true inside unix_gc(), then reboot into the patched kernel. Linux stable 6.12.95 includes the fix; distribution kernels may receive it through backports without adopting that upstream version. Applicable Red Hat updates include RHSA-2026:62609 for RHEL 10.0 Extended Update Support and RHSA-2026:67471 for RHEL 10. Supported RHEL systems can alternatively apply the applicable kernel live patch supplied through RHSA-2026:99722.

Public exploits

Exploits

2 exploits validated by Mallory's analysis.

View more in app →
bad_garbageThis repository is a full local Linux kernel privilege-escalation exploit for CVE-2026-53361, an AF_UNIX garbage-collector use-after-free reachable by an unprivileged user and described as container-escapable. It is not a framework module; it is a standalone C exploit with multiple support libraries and a Makefile that builds a static `exploit` binary. Repository structure: the codebase is split into focused components. `race.c/.h` implements the AF_UNIX socket graph, MSG_PEEK race, oracle logic, and timing calibration hooks. `lib_slubfw.c/.h` provides a reusable SLUB/skbuff grooming framework using loopback UDP sockets to shape allocator state and reclaim freed slab pages. `xattr.c/.h` manages tmpfs-backed `simple_xattr` sprays/resprays for kmalloc-cg-4k reclaim and leak phases. `lib_fault.c/.h` builds fault-controlled recvmsg/iovec mappings used to stall and synchronize the race. `dirtypt.c/.h` implements the post-UAF Dirty-Pagetable primitive: reclaiming a freed pipe-backed page as a leaf page table, then using partial pipe reads/writes to capture and forge PTEs for physical memory read/write. `pagemap*.c/.h` walk 4-level or 5-level page tables and bootstrap kernel address translation. `offset.c/.h` resolves kernel structure offsets from `/sys/kernel/btf/vmlinux` or fallback tables. `kallsysms.c/.h` parses in-kernel kallsyms from a physical dump to resolve symbols like `core_pattern`, `commit_creds`, and `avc_denied`. `shell.c/.h` contains the post-exploitation payload that plants a core_pattern handler and relays a root shell over AF_UNIX. `sstd.c/.h` is a stochastic optimizer used to search timing windows for the race. Main exploit capability: the exploit races AF_UNIX garbage collection against `MSG_PEEK` to free a still-referenced socket/sk_buff, then uses heap grooming and reclaim techniques to turn the UAF into controlled kernel object overlap. From there it constructs a fake pipe/file/sk_buff state, frees and reclaims a pipe page, and converts that into a page-table corruption primitive. With the resulting physical read/write, it self-maps the reclaimed leaf page table, discovers kernel base and symbols, overwrites `core_pattern`, and optionally disables SELinux by patching `avc_denied`. Finally it crashes a child process so the kernel executes the planted core handler as root in init namespaces, which connects back to a per-run UNIX socket and spawns `/bin/bash -i` or `/bin/sh -i`. Notable targeting details: README explicitly targets Linux 6.12-based kernels up to 6.12.94, Ubuntu 24.04 HWE 6.17 up to 6.17.0-41, RHEL 10 6.12-based kernels, and Debian trixie 6.12 builds. It states Ubuntu 24.04 GA 6.8 is vulnerable but not covered by this single-vector MSG_PEEK exploit. The exploit is intended for low CPU-count systems and relies on BTF availability by default. Overall, this is a real, advanced, operational local kernel exploit with a built-in root-shell payload, not merely a detector or proof-of-concept stub.sgkdev · Disclosed Aug 10, 2026 · c · makefile · local · containerOperationalCVE-2026-53361The supplied repository describes a device-specific local privilege-escalation chain centered on CVE-2026-53361, an AF_UNIX garbage-collection race that leaves an OOB sk_buff pointer dangling. Its intended exploitation path combines heap reclamation, kernel-address discovery, a SELinux-enforcing decrement, paired credential capability writes, privileged exec, and KernelSU-compatible module installation. AF_UNIX sockets are local IPC here, not evidence of remote network exploitation. The inventory contains 58 files: 16 Rust sources, nine Android shell scripts, one Python ELF-module helper, 15 kernel profiles, and 17 documentation/build/license files. Cargo declares a single dependency-free Rust binary, cve53361. src/main.rs dispatches research and exploitation modes; race1.rs, official.rs, ring.rs, stage2.rs, and faultmap.rs implement race topologies, fault pacing, and experimental pipe-based kernel-memory primitives. trace.rs and traceleak.rs expose raw trace-based pointer discovery and credential-child support. hid.rs, leak.rs, hidleak.rs, evdev.rs, and uhid.rs implement virtual-HID and input-event machinery. profile.rs manages build-specific constants, while kopatch.rs modifies a narrowly checked AArch64 module-init branch. The primary orchestration is harness/ksu_chain.sh, with stage_and_run.sh supplying assets and cve53361-post.sh handling root-management setup. The current documented flow replaces older securebits writes with a paired capability write and file-capability exec path. Historical race probes and broad ownership/label repair scripts remain in the tree; those repair scripts can modify substantial device data and should not be confused with passive detection. mod/patch_ko.py is a historical module transformation helper, not the external ko_patch relocation executable. Two important qualifications limit confidence. First, src/main.rs declares mod chain and calls chain::chain2, but the supplied file inventory contains no corresponding module; the listed tree appears incomplete and would not compile unchanged. Second, despite documentation emphasizing a standalone 53361 chain, the included information-leak implementation explicitly identifies its Wacom OOB read as CVE-2026-98499. Other CVE references describe borrowed techniques or external-tool provenance and are not, by themselves, additional exploited targets. Only HONOR MLY-AN00 with kernel 6.12.58-android16-6-g142ddad31e60 is claimed to have completed the full chain. Other profiles represent adaptations rather than independently demonstrated support. The payload is operational in intent, but successful execution was not validated from this truncated source snapshot. Crashes, reboots, and incomplete SELinux recovery remain material risks: the post script has restoration logic, but wrapper failures before the post starts can leave the permissive window open. No runtime HTTP/DNS destination, external IP, reverse shell, or exfiltration endpoint is evident; repository and license URLs are references rather than exploit callbacks. Repository URL and main branch are inferred from supplied metadata; the exact analyzed commit, archive location, and archive byte size were not supplied, so size_bytes is an unknown-value placeholder of 0.Aoki-Shinshi · Disclosed Nov 24, 2026 · rust · shell · localOperational
Exposure surface

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
LinuxLinux Kerneloperating_system
FAQ

Frequently asked questions

Is CVE-2026-53361 exploited in the wild?
As of Nov 28, 2026, Mallory has no reports of CVE-2026-53361 being exploited in the wild. It is not listed in CISA KEV.
Is there a public exploit for CVE-2026-53361?
Yes. Mallory tracks 2 public exploits or proofs of concept for CVE-2026-53361, the earliest disclosed Aug 10, 2026.
Is there a patch for CVE-2026-53361?
Install a vendor-supported kernel update containing the fix that sets gc_in_progress to true inside unix_gc(), then reboot into the patched kernel. Linux stable 6.12.95 includes the fix; distribution kernels may receive it through backports without adopting that upstream version.
What products are affected by CVE-2026-53361?
Linux Kernel.
How severe is CVE-2026-53361?
CVE-2026-53361 has a CVSS v3.1 score of 7.1 (High) and an EPSS score of 0.16% (3rd percentile) as of Nov 28, 2026.
Activity feed

Recent activity

36 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
tenable nessus pluginsNews · Nov 12, 2026RHEL 10 : kpatch-patch-6_12_0-211_16_1 and kpatch-patch-6_12_0... | Tenable®A Linux kernel AF_UNIX vulnerability addressed by setting gc_in_progress to true in unix_gc(). The content does not describe its specific exploitation prerequisites or impact. A kernel live patch is available through RHSA-2026:99722.Read more ↗tenable nessus pluginsNews · Nov 2, 2026Photon OS 5.0: Linux PHSA-2026-5.0-90-0976 | Tenable®A vulnerability affecting the Linux package in Photon OS 5.0, addressed by the referenced security update. The content does not describe its mechanism or individual impact.Read more ↗tenable cloud security pluginsNews · Oct 2, 2026Google: sys-kernel/csql-kernel-6_6, sys-kernel/lakitu-kernel-6... | Tenable®A race condition in Linux kernel AF_UNIX garbage collection can allow unix_gc() to run while gc_in_progress is false, undermining the coordination relied upon by unix_peek_fpl() during MSG_PEEK operations. The fix sets gc_in_progress to true within unix_gc(). The advisory assigns a CVSS v3 base score of 7.1, indicating local exploitation requiring low privileges, with potential high integrity and availability impacts. Affected Google COS kernel packages should be updated to version 18613.675.2 or later.Read more ↗tenable nessus pluginsNews · Sep 22, 2026Ubuntu 24.04 LTS / 26.04 LTS / Pro Realtime 24.04 LTS : Linux ... | Tenable®A vulnerability addressed by Ubuntu Security Notice USN-8801-1; the provided content does not specify its vulnerability type or impact.Read more ↗
+8 more in the timeline. Sign up to see them
Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity19Community discussion across Reddit, Mastodon, and other social sources.