CVE Database›Document archive›CVE-2023-54006

CVE-2023-54006

kernel: af_unix: Fix data-race around unix_tot_inflight

Loading…

Severity

Low

Red Hat Product Security

5.5

CVSS 3.1

Review impact separately from score.

Published · December 24, 2025

Updated · June 30, 2026

Description

A data race condition was found in the Linux kernel's AF_UNIX socket implementation. The unix_tot_inflight variable is modified under spin_lock(unix_gc_lock) but read without synchronization in unix_release_sock(). This was detected by KCSAN (Kernel Concurrency Sanitizer). The fix adds READ_ONCE() to ensure proper atomic reading of the shared variable.

Statement

This is a theoretical data race found by KCSAN that affects the unix_tot_inflight counter in AF_UNIX socket garbage collection. The race involves a concurrent read during socket release while another thread modifies the counter. While technically a data race, the practical impact is minimal since the counter is used for heuristic checks, not critical decisions. The fix adds proper memory ordering annotations.

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

No mitigation is specified in collected source.

CVSS / CWE

CVSS 3.1 · 5.5
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

CWE-366 · Race Condition within a Thread