{"id":"CVE-2023-53204","aliases":["CVE-2023-53204"],"related":[],"kind":"vulnerability","state":"published","title":"af_unix: Fix data-races around user->unix_inflight.","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\naf_unix: Fix data-races around user->unix_inflight.\n\nuser->unix_inflight is changed under spin_lock(unix_gc_lock),\nbut too_many_unix_fds() reads it locklessly.\n\nLet's annotate the write/read accesses to user->unix_inflight.\n\nBUG: KCSAN: data-race in unix_attach_fds / unix_inflight\n\nwrite to 0xffffffff8546f2d0 of 8 bytes by task 44798 on cpu 1:\n unix_inflight+0x157/0x180 net/unix/scm.c:66\n unix_attach_fds+0x147/0x1e0 net/unix/scm.c:123\n unix_scm_to_skb net/unix/af_unix.c:1827 [inline]\n unix_dgram_sendmsg+0x46a/0x14f0 net/unix/af_unix.c:1950\n unix_seqpacket_sendmsg net/unix/af_unix.c:2308 [inline]\n unix_seqpacket_sendmsg+0xba/0x130 net/unix/af_unix.c:2292\n sock_sendmsg_nosec net/socket.c:725 [inline]\n sock_sendmsg+0x148/0x160 net/socket.c:748\n ____sys_sendmsg+0x4e4/0x610 net/socket.c:2494\n ___sys_sendmsg+0xc6/0x140 net/socket.c:2548\n __sys_sendmsg+0x94/0x140 net/socket.c:2577\n __do_sys_sendmsg net/socket.c:2586 [inline]\n __se_sys_sendmsg net/socket.c:2584 [inline]\n __x64_sys_sendmsg+0x45/0x50 net/socket.c:2584\n do_syscall_x64 arch/x86/entry/common.c:50 [inline]\n do_syscall_64+0x3b/0x90 arch/x86/entry/common.c:80\n entry_SYSCALL_64_after_hwframe+0x6e/0xd8\n\nread to 0xffffffff8546f2d0 of 8 bytes by task 44814 on cpu 0:\n too_many_unix_fds net/unix/scm.c:101 [inline]\n unix_attach_fds+0x54/0x1e0 net/unix/scm.c:110\n unix_scm_to_skb net/unix/af_unix.c:1827 [inline]\n unix_dgram_sendmsg+0x46a/0x14f0 net/unix/af_unix.c:1950\n unix_seqpacket_sendmsg net/unix/af_unix.c:2308 [inline]\n unix_seqpacket_sendmsg+0xba/0x130 net/unix/af_unix.c:2292\n sock_sendmsg_nosec net/socket.c:725 [inline]\n sock_sendmsg+0x148/0x160 net/socket.c:748\n ____sys_sendmsg+0x4e4/0x610 net/socket.c:2494\n ___sys_sendmsg+0xc6/0x140 net/socket.c:2548\n __sys_sendmsg+0x94/0x140 net/socket.c:2577\n __do_sys_sendmsg net/socket.c:2586 [inline]\n __se_sys_sendmsg net/socket.c:2584 [inline]\n __x64_sys_sendmsg+0x45/0x50 net/socket.c:2584\n do_syscall_x64 arch/x86/entry/common.c:50 [inline]\n do_syscall_64+0x3b/0x90 arch/x86/entry/common.c:80\n entry_SYSCALL_64_after_hwframe+0x6e/0xd8\n\nvalue changed: 0x000000000000000c -> 0x000000000000000d\n\nReported by Kernel Concurrency Sanitizer on:\nCPU: 0 PID: 44814 Comm: systemd-coredum Not tainted 6.4.0-11989-g6843306689af #6\nHardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.0-0-gd239552ce722-prebuilt.qemu.org 04/01/2014","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\naf_unix: Fix data-races around user->unix_inflight.\n\nuser->unix_inflight is changed under spin_lock(unix_gc_lock),\nbut too_many_unix_fds() reads it locklessly.\n\nLet's annotate the write/read accesses to user->unix_inflight.\n\nBUG: KCSAN: data-race in unix_attach_fds / unix_inflight\n\nwrite to 0xffffffff8546f2d0 of 8 bytes by task 44798 on cpu 1:\n unix_inflight+0x157/0x180 net/unix/scm.c:66\n unix_attach_fds+0x147/0x1e0 net/unix/scm.c:123\n unix_scm_to_skb net/unix/af_unix.c:1827 [inline]\n unix_dgram_sendmsg+0x46a/0x14f0 net/unix/af_unix.c:1950\n unix_seqpacket_sendmsg net/unix/af_unix.c:2308 [inline]\n unix_seqpacket_sendmsg+0xba/0x130 net/unix/af_unix.c:2292\n sock_sendmsg_nosec net/socket.c:725 [inline]\n sock_sendmsg+0x148/0x160 net/socket.c:748\n ____sys_sendmsg+0x4e4/0x610 net/socket.c:2494\n ___sys_sendmsg+0xc6/0x140 net/socket.c:2548\n __sys_sendmsg+0x94/0x140 net/socket.c:2577\n __do_sys_sendmsg net/socket.c:2586 [inline]\n __se_sys_sendmsg net/socket.c:2584 [inline]\n __x64_sys_sendmsg+0x45/0x50 net/socket.c:2584\n do_syscall_x64 arch/x86/entry/common.c:50 [inline]\n do_syscall_64+0x3b/0x90 arch/x86/entry/common.c:80\n entry_SYSCALL_64_after_hwframe+0x6e/0xd8\n\nread to 0xffffffff8546f2d0 of 8 bytes by task 44814 on cpu 0:\n too_many_unix_fds net/unix/scm.c:101 [inline]\n unix_attach_fds+0x54/0x1e0 net/unix/scm.c:110\n unix_scm_to_skb net/unix/af_unix.c:1827 [inline]\n unix_dgram_sendmsg+0x46a/0x14f0 net/unix/af_unix.c:1950\n unix_seqpacket_sendmsg net/unix/af_unix.c:2308 [inline]\n unix_seqpacket_sendmsg+0xba/0x130 net/unix/af_unix.c:2292\n sock_sendmsg_nosec net/socket.c:725 [inline]\n sock_sendmsg+0x148/0x160 net/socket.c:748\n ____sys_sendmsg+0x4e4/0x610 net/socket.c:2494\n ___sys_sendmsg+0xc6/0x140 net/socket.c:2548\n __sys_sendmsg+0x94/0x140 net/socket.c:2577\n __do_sys_sendmsg net/socket.c:2586 [inline]\n __se_sys_sendmsg net/socket.c:2584 [inline]\n __x64_sys_sendmsg+0x45/0x50 net/socket.c:2584\n do_syscall_x64 arch/x86/entry/common.c:50 [inline]\n do_syscall_64+0x3b/0x90 arch/x86/entry/common.c:80\n entry_SYSCALL_64_after_hwframe+0x6e/0xd8\n\nvalue changed: 0x000000000000000c -> 0x000000000000000d\n\nReported by Kernel Concurrency Sanitizer on:\nCPU: 0 PID: 44814 Comm: systemd-coredum Not tainted 6.4.0-11989-g6843306689af #6\nHardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.0-0-gd239552ce722-prebuilt.qemu.org 04/01/2014","source":"cvelist"}],"published":"2025-09-15T14:21:32.696Z","modified":"2026-11-05T21:17:19.387Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H","score":4.7,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H","score":4.7,"rating":"MEDIUM"}],"cwes":["CWE-362"],"affected":[{"ranges":[{"type":"git","introduced":"712f4aad406bb1ed67f3f98d04c044191f0ff593","fixed":"df97b5ea9f3ac9308c3a633524dab382cd59d9e5","status":"affected"},{"type":"git","introduced":"712f4aad406bb1ed67f3f98d04c044191f0ff593","fixed":"03d133dfbcec9d439729cc64706c7eb6d1663a24","status":"affected"},{"type":"git","introduced":"712f4aad406bb1ed67f3f98d04c044191f0ff593","fixed":"adcf4e069358cdee8593663650ea447215a1c49e","status":"affected"},{"type":"git","introduced":"712f4aad406bb1ed67f3f98d04c044191f0ff593","fixed":"b401d7e485b0a234cf8fe9a6ae99dbcd20863138","status":"affected"},{"type":"git","introduced":"712f4aad406bb1ed67f3f98d04c044191f0ff593","fixed":"9151ed4b006125cba7c06c79df504340ea4e9386","status":"affected"},{"type":"git","introduced":"712f4aad406bb1ed67f3f98d04c044191f0ff593","fixed":"b9cdbb38e030fc2fe97fe27b54cbb6b4fbff250f","status":"affected"},{"type":"git","introduced":"712f4aad406bb1ed67f3f98d04c044191f0ff593","fixed":"ac92f239a079678a035c0faad9089354a874aede","status":"affected"},{"type":"git","introduced":"712f4aad406bb1ed67f3f98d04c044191f0ff593","fixed":"0bc36c0650b21df36fbec8136add83936eaf0607","status":"affected"},{"type":"git","version":"a5a6cf8c405e826ff7ed1308dde72560c0ed4854","status":"affected"},{"type":"git","version":"df87da0783c4492b944badfea9d5c3c56b834697","status":"affected"},{"type":"git","version":"3d024dcef2548028e9f9b7876a544e6e0af00175","status":"affected"},{"type":"git","version":"aa51d1c24ec3b6605f7cc7ef500c96cd71d7ef90","status":"affected"},{"type":"git","version":"a5b9e44af8d3edaf49d14a91cc519a9fba439e67","status":"affected"},{"type":"git","version":"dc6b0ec667f67d4768e72c1b7f1bbc14ea52379c","status":"affected"},{"type":"git","version":"9b8b611fe0f86f07a4ff4a5f3bcb0ea7ceb7da3b","status":"affected"},{"type":"git","version":"5e226f9689d90ad8ab21b4a969ae3058777f0aff","status":"affected"},{"type":"semver","introduced":"3.2.78","fixed":"3.3","status":"affected"},{"type":"semver","introduced":"3.10.96","fixed":"3.11","status":"affected"},{"type":"semver","introduced":"3.12.57","fixed":"3.13","status":"affected"},{"type":"semver","introduced":"3.14.60","fixed":"3.15","status":"affected"},{"type":"semver","introduced":"3.18.27","fixed":"3.19","status":"affected"},{"type":"semver","introduced":"4.1.17","fixed":"4.2","status":"affected"},{"type":"semver","introduced":"4.3.5","fixed":"4.4","status":"affected"},{"type":"semver","introduced":"4.4.1","fixed":"4.5","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.5","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.5","status":"unaffected"},{"type":"semver","introduced":"4.14.326","lastAffected":"4.14.*","status":"unaffected"},{"type":"semver","introduced":"4.19.295","lastAffected":"4.19.*","status":"unaffected"},{"type":"semver","introduced":"5.4.257","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.195","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.132","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.54","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.5.4","lastAffected":"6.5.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.6","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"3.2.78","fixed":"3.3"},{"status":"affected","introduced":"3.10.96","fixed":"3.11"},{"status":"affected","introduced":"3.12.57","fixed":"3.13"},{"status":"affected","introduced":"3.14.60","fixed":"3.15"},{"status":"affected","introduced":"3.18.27","fixed":"3.19"},{"status":"affected","introduced":"4.1.17","fixed":"4.2"},{"status":"affected","introduced":"4.3.5","fixed":"4.4"},{"status":"affected","introduced":"4.4.1","fixed":"4.14.326"},{"status":"affected","introduced":"4.15","fixed":"4.19.295"},{"status":"affected","introduced":"4.20","fixed":"5.4.257"},{"status":"affected","introduced":"5.5","fixed":"5.10.195"},{"status":"affected","introduced":"5.11","fixed":"5.15.132"},{"status":"affected","introduced":"5.16","fixed":"6.1.54"},{"status":"affected","introduced":"6.2","fixed":"6.5.4"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/df97b5ea9f3ac9308c3a633524dab382cd59d9e5","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/03d133dfbcec9d439729cc64706c7eb6d1663a24","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/adcf4e069358cdee8593663650ea447215a1c49e","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b401d7e485b0a234cf8fe9a6ae99dbcd20863138","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9151ed4b006125cba7c06c79df504340ea4e9386","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b9cdbb38e030fc2fe97fe27b54cbb6b4fbff250f","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ac92f239a079678a035c0faad9089354a874aede","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0bc36c0650b21df36fbec8136add83936eaf0607","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-11-05T20:20:30.750Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-53204","url":"https://www.cve.org/CVERecord?id=CVE-2023-53204","licence":"CVE Terms of Use","modified":"2026-11-05T20:21:07.602Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-53204","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-53204","licence":"Public domain","modified":"2026-11-05T21:17:19.387Z"}],"updatedAt":"2026-11-25T22:58:34.773Z","epss":{"score":0.00126,"percentile":0.02424,"date":"2026-12-01T12:00:22.000Z"}}