CVE-2026-31673

af_unix: read UNIX_DIAG_VFS data under unix_state_lock

State
Published
Severity
7.8 High
Published
Apr 25, 2026
Updated
Oct 19, 2026
Reserved
Mar 9, 2026

Read the record on cve.org

Description

In the Linux kernel, the following vulnerability has been resolved:

af_unix: read UNIX_DIAG_VFS data under unix_state_lock

Exact UNIX diag lookups hold a reference to the socket, but not to u->path. Meanwhile, unix_release_sock() clears u->path under unix_state_lock() and drops the path reference after unlocking.

Read the inode and device numbers for UNIX_DIAG_VFS while holding unix_state_lock(), then emit the netlink attribute after dropping the lock.

This keeps the VFS data stable while the reply is being built.

Scores

CVSSScoreVectorSource
3.17.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux

Weaknesses

  • CWE-362 Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')

Affected Products

ProductVersions
LinuxLinux
  • 5f7b0569460b7d8d01ca776430a00505a68b7584 to before e7339db13b9ddb63417b12da55fd6191e59f7442Affected
  • 5f7b0569460b7d8d01ca776430a00505a68b7584 to before 4f6a8f10182c3a9d22e8eb183957ae7ade9e4bf7Affected
  • 5f7b0569460b7d8d01ca776430a00505a68b7584 to before c3ec44ab4526bbc4b6c9fc845af86488244f4c9bAffected
  • 5f7b0569460b7d8d01ca776430a00505a68b7584 to before b9232421a77a649c9376c99fdfc8cb7f79cad34cAffected
  • 5f7b0569460b7d8d01ca776430a00505a68b7584 to before 0c739f3785f84af695952c2bac8be2f45082c9b8Affected
  • 5f7b0569460b7d8d01ca776430a00505a68b7584 to before 900a4e0910e98b8caef117d5df00471fa438dcf9Affected
  • 5f7b0569460b7d8d01ca776430a00505a68b7584 to before bdf206e740bf2919d818f132c8c9cc7ed91d11c0Affected
  • 5f7b0569460b7d8d01ca776430a00505a68b7584 to before 39897df386376912d561d4946499379effa1e7efAffected
LinuxLinux
  • 3.3Affected
  • before 3.3Not affected
  • 5.10.258 through 5.10.*Not affected
  • 5.15.209 through 5.15.*Not affected
  • 6.1.175 through 6.1.*Not affected
  • 6.6.136 through 6.6.*Not affected
  • 6.12.83 through 6.12.*Not affected
  • 6.18.24 through 6.18.*Not affected
  • 6.19.14 through 6.19.*Not affected
  • 7.0 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.