Description
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().
Published: 2026-07-04
Score: 7.1 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability is a race condition in the Linux kernel’s af_unix subsystem where the flag gc_in_progress is mistakenly left false while unix_gc() runs. This allows a concurrent MSG_PEEK request to observe data that would normally be protected during garbage‑collection cycles, potentially leaking information that should remain hidden. The weakness is identified as CWE‑366, a race condition involving improper flag handling. Based on the description, it is inferred that the attack requires a local attacker who can create or access a Unix domain socket and time a MSG_PEEK operation to coincide with an unguarded GC cycle.

Affected Systems

All Linux kernel releases that do not contain the commit which sets gc_in_progress to true at the start of unix_gc() are vulnerable. This includes every distribution or custom kernel that ships an unpatched version of the af_unix code across all supported architectures.

Risk and Exploitability

The CVSS score of 7.1 indicates a high severity, while the EPSS score of <1% shows that exploitation likelihood is currently low. The vulnerability is not listed in CISA KEV, further reducing its immediate risk profile. The likely attack vector is local, requiring the attacker to have the ability to manipulate or observe a Unix domain precise timing and the flag’s mis‑management during garbage collection. Though conditions are specific, the scope of data exposure justifies prompt remediation.

Generated by OpenCVE AI on July 22, 2026 at 13:05 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update the kernel to a version that includes the commit unix_gc()
  • If patching is not immediately possible, limit or disable MSG_PEEK on Unix or enforce application‑level controls to disallow the operation when garbage collection might be in progress
  • Implement a temporary local workaround by applying a custom patch or kernel module that ensures gc_in_progress is set to true at the start of unix_gc()

Generated by OpenCVE AI on July 22, 2026 at 13:05 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Debian DSA Debian DSA DSA-6381-1 linux security update
History

Sat, 18 Jul 2026 08:00:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7.0, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H'}

cvssV3_1

{'score': 7.1, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H'}


Mon, 06 Jul 2026 12:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-366
References
Metrics threat_severity

None

cvssV3_1

{'score': 7.0, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H'}

threat_severity

Moderate


Mon, 06 Jul 2026 00:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-362

Sun, 05 Jul 2026 04:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-362

Sat, 04 Jul 2026 12:15:00 +0000

Type Values Removed Values Added
Description 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().
Title af_unix: Set gc_in_progress to true in unix_gc().
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-07-18T07:33:30.463Z

Reserved: 2026-06-09T07:44:35.400Z

Link: CVE-2026-53361

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-07-04T00:00:00Z

Links: CVE-2026-53361 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-07-22T13:15:12Z

Weaknesses
  • CWE-366

    Race Condition within a Thread