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
medium
medium
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-07-05 14:55 UTC (History)
2 users (show)

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


Attachments (Terms of Use)

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


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