Bug 2497035 (CVE-2026-53361) - CVE-2026-53361 kernel: af_unix: Set gc_in_progress to true in unix_gc()
Summary: CVE-2026-53361 kernel: af_unix: Set gc_in_progress to true in unix_gc()
Keywords:
Status: NEW
Alias: CVE-2026-53361
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-07-04 13:01 UTC by OSIDB Bzimport
Modified: 2026-10-06 17:31 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2026:62609 0 None None None 2026-09-02 12:29:38 UTC
Red Hat Product Errata RHSA-2026:67471 0 None None None 2026-09-15 06:14:29 UTC

Description OSIDB Bzimport 2026-07-04 13:01:48 UTC
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().

Comment 1 Mauro Matteo Cascella 2026-07-05 14:51:05 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2026070436-CVE-2026-53361-f969@gregkh/T

Comment 3 Akiyoshi Kurita 2026-08-12 06:33:57 UTC
FYI:

A public container escape exploit for CVE-2026-53361 ("bad_garbage") was released on Aug 11. It explicitly targets RHEL/AlmaLinux 10.2 (kernel-6.12.0-211.43.1.el10_2) and CentOS Stream 10, including RHEL-specific offsets and SELinux bypasses.

Given that AlmaLinux published kernel-6.12.0-211.43.1.el10_2 just yesterday—the exact kernel targeted by the exploit—could someone confirm if the current release is affected and if a backport fix is planned?

Patch: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=82c17e13d404f686e164590483fd6c1abaa675d0
Public exploit: https://github.com/sgkdev/bad_garbage
Writeup: https://www.linkedin.com/pulse/badgarbagec-afunix-container-escape-resurrected-twice-oldani-sicvf/

Comment 4 Akiyoshi Kurita 2026-08-12 07:01:57 UTC
Correction:

The patch link in my previous comment was for the Linux 6.6.y stable branch.

For the Linux 6.12.y stable branch, the corresponding fix is:

https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=591f1ac217428a6d2b32a8ac14aac0fab44f155a

This fix was included in Linux 6.12.95.

Sorry for the confusion.

Comment 5 errata-xmlrpc 2026-09-02 12:29:37 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 10.0 Extended Update Support

Via RHSA-2026:62609 https://access.redhat.com/errata/RHSA-2026:62609

Comment 6 Jon Orris 2026-09-15 06:14:28 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 10

Via RHSA-2026:67471 https://access.redhat.com/errata/RHSA-2026:67471


Note You need to log in before you can comment on or make changes to this bug.