{
  "threat_severity" : "Low",
  "public_date" : "2025-12-24T00:00:00Z",
  "bugzilla" : {
    "description" : "kernel: af_unix: Fix data-race around unix_tot_inflight",
    "id" : "2425000",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=2425000"
  },
  "cvss3" : {
    "cvss3_base_score" : "5.5",
    "cvss3_scoring_vector" : "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H",
    "status" : "verified"
  },
  "cwe" : "CWE-366",
  "details" : [ "In the Linux kernel, the following vulnerability has been resolved:\naf_unix: Fix data-race around unix_tot_inflight.\nunix_tot_inflight is changed under spin_lock(unix_gc_lock), but\nunix_release_sock() reads it locklessly.\nLet's use READ_ONCE() for unix_tot_inflight.\nNote that the writer side was marked by commit 9d6d7f1cb67c (\"af_unix:\nannote lockless accesses to unix_tot_inflight & gc_in_progress\")\nBUG: KCSAN: data-race in unix_inflight / unix_release_sock\nwrite (marked) to 0xffffffff871852b8 of 4 bytes by task 123 on cpu 1:\nunix_inflight+0x130/0x180 net/unix/scm.c:64\nunix_attach_fds+0x137/0x1b0 net/unix/scm.c:123\nunix_scm_to_skb net/unix/af_unix.c:1832 [inline]\nunix_dgram_sendmsg+0x46a/0x14f0 net/unix/af_unix.c:1955\nsock_sendmsg_nosec net/socket.c:724 [inline]\nsock_sendmsg+0x148/0x160 net/socket.c:747\n____sys_sendmsg+0x4e4/0x610 net/socket.c:2493\n___sys_sendmsg+0xc6/0x140 net/socket.c:2547\n__sys_sendmsg+0x94/0x140 net/socket.c:2576\n__do_sys_sendmsg net/socket.c:2585 [inline]\n__se_sys_sendmsg net/socket.c:2583 [inline]\n__x64_sys_sendmsg+0x45/0x50 net/socket.c:2583\ndo_syscall_x64 arch/x86/entry/common.c:50 [inline]\ndo_syscall_64+0x3b/0x90 arch/x86/entry/common.c:80\nentry_SYSCALL_64_after_hwframe+0x72/0xdc\nread to 0xffffffff871852b8 of 4 bytes by task 4891 on cpu 0:\nunix_release_sock+0x608/0x910 net/unix/af_unix.c:671\nunix_release+0x59/0x80 net/unix/af_unix.c:1058\n__sock_release+0x7d/0x170 net/socket.c:653\nsock_close+0x19/0x30 net/socket.c:1385\n__fput+0x179/0x5e0 fs/file_table.c:321\n____fput+0x15/0x20 fs/file_table.c:349\ntask_work_run+0x116/0x1a0 kernel/task_work.c:179\nresume_user_mode_work include/linux/resume_user_mode.h:49 [inline]\nexit_to_user_mode_loop kernel/entry/common.c:171 [inline]\nexit_to_user_mode_prepare+0x174/0x180 kernel/entry/common.c:204\n__syscall_exit_to_user_mode_work kernel/entry/common.c:286 [inline]\nsyscall_exit_to_user_mode+0x1a/0x30 kernel/entry/common.c:297\ndo_syscall_64+0x4b/0x90 arch/x86/entry/common.c:86\nentry_SYSCALL_64_after_hwframe+0x72/0xdc\nvalue changed: 0x00000000 -> 0x00000001\nReported by Kernel Concurrency Sanitizer on:\nCPU: 0 PID: 4891 Comm: systemd-coredum Not tainted 6.4.0-rc5-01219-gfa0e21fa4443 #5\nHardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.0-0-gd239552ce722-prebuilt.qemu.org 04/01/2014", "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.",
  "affected_release" : [ {
    "product_name" : "Red Hat Enterprise Linux 9",
    "release_date" : "2024-04-30T00:00:00Z",
    "advisory" : "RHSA-2024:2394",
    "cpe" : "cpe:/a:redhat:enterprise_linux:9",
    "package" : "kernel-0:5.14.0-427.13.1.el9_4"
  }, {
    "product_name" : "Red Hat Enterprise Linux 9",
    "release_date" : "2024-04-30T00:00:00Z",
    "advisory" : "RHSA-2024:2394",
    "cpe" : "cpe:/o:redhat:enterprise_linux:9",
    "package" : "kernel-0:5.14.0-427.13.1.el9_4"
  } ],
  "package_state" : [ {
    "product_name" : "Red Hat Enterprise Linux 10",
    "fix_state" : "Not affected",
    "package_name" : "kernel",
    "cpe" : "cpe:/o:redhat:enterprise_linux:10"
  }, {
    "product_name" : "Red Hat Enterprise Linux 6",
    "fix_state" : "Out of support scope",
    "package_name" : "kernel",
    "cpe" : "cpe:/o:redhat:enterprise_linux:6"
  }, {
    "product_name" : "Red Hat Enterprise Linux 7",
    "fix_state" : "Fix deferred",
    "package_name" : "kernel",
    "cpe" : "cpe:/o:redhat:enterprise_linux:7"
  }, {
    "product_name" : "Red Hat Enterprise Linux 7",
    "fix_state" : "Fix deferred",
    "package_name" : "kernel-rt",
    "cpe" : "cpe:/o:redhat:enterprise_linux:7"
  }, {
    "product_name" : "Red Hat Enterprise Linux 8",
    "fix_state" : "Fix deferred",
    "package_name" : "kernel",
    "cpe" : "cpe:/o:redhat:enterprise_linux:8"
  }, {
    "product_name" : "Red Hat Enterprise Linux 8",
    "fix_state" : "Fix deferred",
    "package_name" : "kernel-rt",
    "cpe" : "cpe:/o:redhat:enterprise_linux:8"
  }, {
    "product_name" : "Red Hat Enterprise Linux 9",
    "fix_state" : "Fix deferred",
    "package_name" : "kernel-rt",
    "cpe" : "cpe:/o:redhat:enterprise_linux:9"
  } ],
  "references" : [ "https://www.cve.org/CVERecord?id=CVE-2023-54006\nhttps://nvd.nist.gov/vuln/detail/CVE-2023-54006\nhttps://lore.kernel.org/linux-cve-announce/2025122428-CVE-2023-54006-d646@gregkh/T" ],
  "name" : "CVE-2023-54006",
  "csaw" : false
}