# CVE-2026-31673

> Vulnerability · severity: **HIGH** (CVSS 7.8).

## 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.

## Key facts

- **CVE ID:** CVE-2026-31673
- **Published:** 2026-04-25
- **CVSS severity:** HIGH
- **CVSS base score:** 7.8
- **CWE codes:** NVD-CWE-noinfo

## Affected products

- `linux:linux_kernel`

## Primary sources

- NIST NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-31673

## Citation

> AI Analytics. CVE-2026-31673. Retrieved 2026-07-25 from https://api.ai-analytics.org/cve/CVE-2026-31673. Derived from NIST NVD. Licensed CC0.

---

*[Dataset catalog](https://api.ai-analytics.org/datasets/) · [AI Analytics](https://api.ai-analytics.org/) · CC0 1.0*