{"id":"CVE-2026-23372","state":"PUBLISHED","title":"nfc: rawsock: cancel tx_work before socket teardown","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nnfc: rawsock: cancel tx_work before socket teardown\n\nIn rawsock_release(), cancel any pending tx_work and purge the write\nqueue before orphaning the socket.  rawsock_tx_work runs on the system\nworkqueue and calls nfc_data_exchange which dereferences the NCI\ndevice.  Without synchronization, tx_work can race with socket and\ndevice teardown when a process is killed (e.g. by SIGKILL), leading\nto use-after-free or leaked references.\n\nSet SEND_SHUTDOWN first so that if tx_work is already running it will\nsee the flag and skip transmitting, then use cancel_work_sync to wait\nfor any in-progress execution to finish, and finally purge any\nremaining queued skbs.","publishedAt":"2026-03-25T10:27:53.308Z","updatedAt":"2026-10-15T01:14:30.909Z","severity":{"score":7.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"23b7869c0fd08d73c9f83a2db88a13312d6198bb","status":"affected","lessThan":"9b2d23cd09e1cb56bdf0e4d5614703094159f16c","versionType":"git"},{"version":"23b7869c0fd08d73c9f83a2db88a13312d6198bb","status":"affected","lessThan":"cdeed45ce8c92defd057f7d67ee9a69374d8fa16","versionType":"git"},{"version":"23b7869c0fd08d73c9f83a2db88a13312d6198bb","status":"affected","lessThan":"3ae592ed91bb4b6b51df256b51045c13d2656049","versionType":"git"},{"version":"23b7869c0fd08d73c9f83a2db88a13312d6198bb","status":"affected","lessThan":"722a28b635ec281bb08a23885223526d8e7d6526","versionType":"git"},{"version":"23b7869c0fd08d73c9f83a2db88a13312d6198bb","status":"affected","lessThan":"78141b8832e16d80d09cbefb4258612db0777a24","versionType":"git"},{"version":"23b7869c0fd08d73c9f83a2db88a13312d6198bb","status":"affected","lessThan":"edc988613def90c5b558e025b1b423f48007be06","versionType":"git"},{"version":"23b7869c0fd08d73c9f83a2db88a13312d6198bb","status":"affected","lessThan":"da4515fc8263c5933ed605e396af91079806dc45","versionType":"git"},{"version":"23b7869c0fd08d73c9f83a2db88a13312d6198bb","status":"affected","lessThan":"d793458c45df2aed498d7f74145eab7ee22d25aa","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/nfc/rawsock.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"3.1","status":"affected"},{"version":"0","status":"unaffected","lessThan":"3.1","versionType":"semver"},{"version":"5.10.253","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.203","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.167","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.130","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.77","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.17","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"6.19.7","status":"unaffected","lessThanOrEqual":"6.19.*","versionType":"semver"},{"version":"7.0","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/nfc/rawsock.c"]}],"references":["https://git.kernel.org/stable/c/9b2d23cd09e1cb56bdf0e4d5614703094159f16c","https://git.kernel.org/stable/c/cdeed45ce8c92defd057f7d67ee9a69374d8fa16","https://git.kernel.org/stable/c/3ae592ed91bb4b6b51df256b51045c13d2656049","https://git.kernel.org/stable/c/722a28b635ec281bb08a23885223526d8e7d6526","https://git.kernel.org/stable/c/78141b8832e16d80d09cbefb4258612db0777a24","https://git.kernel.org/stable/c/edc988613def90c5b558e025b1b423f48007be06","https://git.kernel.org/stable/c/da4515fc8263c5933ed605e396af91079806dc45","https://git.kernel.org/stable/c/d793458c45df2aed498d7f74145eab7ee22d25aa","https://cert-portal.siemens.com/productcert/html/ssa-784472.html"],"weaknesses":[],"ingestedAt":"2026-10-29T20:11:21.040Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/23xxx/CVE-2026-23372.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-23372","state":"PUBLISHED","datePublished":"2026-03-25T10:27:53.308Z","dateUpdated":"2026-10-15T01:14:30.909Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-01-13T15:37:46.003Z"},"containers":{"cna":{"title":"nfc: rawsock: cancel tx_work before socket teardown","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nnfc: rawsock: cancel tx_work before socket teardown\n\nIn rawsock_release(), cancel any pending tx_work and purge the write\nqueue before orphaning the socket.  rawsock_tx_work runs on the system\nworkqueue and calls nfc_data_exchange which dereferences the NCI\ndevice.  Without synchronization, tx_work can race with socket and\ndevice teardown when a process is killed (e.g. by SIGKILL), leading\nto use-after-free or leaked references.\n\nSet SEND_SHUTDOWN first so that if tx_work is already running it will\nsee the flag and skip transmitting, then use cancel_work_sync to wait\nfor any in-progress execution to finish, and finally purge any\nremaining queued skbs."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"23b7869c0fd08d73c9f83a2db88a13312d6198bb","status":"affected","lessThan":"9b2d23cd09e1cb56bdf0e4d5614703094159f16c","versionType":"git"},{"version":"23b7869c0fd08d73c9f83a2db88a13312d6198bb","status":"affected","lessThan":"cdeed45ce8c92defd057f7d67ee9a69374d8fa16","versionType":"git"},{"version":"23b7869c0fd08d73c9f83a2db88a13312d6198bb","status":"affected","lessThan":"3ae592ed91bb4b6b51df256b51045c13d2656049","versionType":"git"},{"version":"23b7869c0fd08d73c9f83a2db88a13312d6198bb","status":"affected","lessThan":"722a28b635ec281bb08a23885223526d8e7d6526","versionType":"git"},{"version":"23b7869c0fd08d73c9f83a2db88a13312d6198bb","status":"affected","lessThan":"78141b8832e16d80d09cbefb4258612db0777a24","versionType":"git"},{"version":"23b7869c0fd08d73c9f83a2db88a13312d6198bb","status":"affected","lessThan":"edc988613def90c5b558e025b1b423f48007be06","versionType":"git"},{"version":"23b7869c0fd08d73c9f83a2db88a13312d6198bb","status":"affected","lessThan":"da4515fc8263c5933ed605e396af91079806dc45","versionType":"git"},{"version":"23b7869c0fd08d73c9f83a2db88a13312d6198bb","status":"affected","lessThan":"d793458c45df2aed498d7f74145eab7ee22d25aa","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/nfc/rawsock.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"3.1","status":"affected"},{"version":"0","status":"unaffected","lessThan":"3.1","versionType":"semver"},{"version":"5.10.253","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.203","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.167","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.130","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.77","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.17","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"6.19.7","status":"unaffected","lessThanOrEqual":"6.19.*","versionType":"semver"},{"version":"7.0","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/nfc/rawsock.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/9b2d23cd09e1cb56bdf0e4d5614703094159f16c"},{"url":"https://git.kernel.org/stable/c/cdeed45ce8c92defd057f7d67ee9a69374d8fa16"},{"url":"https://git.kernel.org/stable/c/3ae592ed91bb4b6b51df256b51045c13d2656049"},{"url":"https://git.kernel.org/stable/c/722a28b635ec281bb08a23885223526d8e7d6526"},{"url":"https://git.kernel.org/stable/c/78141b8832e16d80d09cbefb4258612db0777a24"},{"url":"https://git.kernel.org/stable/c/edc988613def90c5b558e025b1b423f48007be06"},{"url":"https://git.kernel.org/stable/c/da4515fc8263c5933ed605e396af91079806dc45"},{"url":"https://git.kernel.org/stable/c/d793458c45df2aed498d7f74145eab7ee22d25aa"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - The attacker needs local access to create an AF_NFC socket and perform socket operations (connect, sendmsg, close). NFC is the affected subsystem but the exploit entry is through local syscalls.\nAC:L - The attacker controls both sides of the race — they schedule tx_work via sendmsg() then immediately close the socket. The race is reliably triggerable by the attacker.\nPR:L - Creating a SOCK_SEQPACKET NFC socket requires no capabilities (only SOCK_RAW requires CAP_NET_RAW). Any unprivileged local user in the init network namespace can create and use these sockets.\nUI:N - No user interaction needed. The attacker opens, connects, sends, and closes the NFC socket entirely on their own.\nS:U - Standard kernel use-after-free within the same security authority (kernel privilege escalation). No cross-boundary escape such as VM or sandbox escape.\nC:H - UAF on a struct containing function pointers (nfc_dev with dev->ops) allows an attacker to read arbitrary kernel memory via heap spray techniques placing controlled data in the freed allocation.\nI:H - The UAF dereferences dev->ops->im_transceive, a function pointer on freed memory. Via heap spraying, the attacker can hijack this function pointer to achieve arbitrary code execution in kernel context.\nA:H - Use-after-free on kernel objects causes kernel crash/oops when the freed memory is dereferenced, leading to denial of service."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-05T12:21:18.928Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.1","versionEndExcluding":"5.10.253"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.1","versionEndExcluding":"5.15.203"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.1","versionEndExcluding":"6.1.167"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.1","versionEndExcluding":"6.6.130"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.1","versionEndExcluding":"6.12.77"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.1","versionEndExcluding":"6.18.17"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.1","versionEndExcluding":"6.19.7"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.1","versionEndExcluding":"7.0"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"affected":[{"vendor":"Siemens","product":"SIMATIC S7-1500 TM MFP - GNU/Linux subsystem","defaultStatus":"unknown","versions":[{"version":"0","status":"affected","lessThan":"*","versionType":"custom"}]}],"references":[{"url":"https://cert-portal.siemens.com/productcert/html/ssa-784472.html"}],"providerMetadata":{"shortName":"siemens-SADP","orgId":"0b142b55-0307-4c5a-b3c9-f314f3fb7c5e","dateUpdated":"2026-10-15T01:14:30.909Z"},"x_adpType":"supplier"}]}}}