{"api_version":"1","generated_at":"2026-04-23T01:53:34+00:00","cve":"CVE-2026-31509","urls":{"html":"https://cve.report/CVE-2026-31509","api":"https://cve.report/api/cve/CVE-2026-31509.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-31509","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-31509"},"summary":{"title":"nfc: nci: fix circular locking dependency in nci_close_device","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nnfc: nci: fix circular locking dependency in nci_close_device\n\nnci_close_device() flushes rx_wq and tx_wq while holding req_lock.\nThis causes a circular locking dependency because nci_rx_work()\nrunning on rx_wq can end up taking req_lock too:\n\n  nci_rx_work -> nci_rx_data_packet -> nci_data_exchange_complete\n    -> __sk_destruct -> rawsock_destruct -> nfc_deactivate_target\n    -> nci_deactivate_target -> nci_request -> mutex_lock(&ndev->req_lock)\n\nMove the flush of rx_wq after req_lock has been released.\nThis should safe (I think) because NCI_UP has already been cleared\nand the transport is closed, so the work will see it and return\n-ENETDOWN.\n\nNIPA has been hitting this running the nci selftest with a debug\nkernel on roughly 4% of the runs.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-04-22 14:16:49","updated_at":"2026-04-22 14:16:49"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/09143c0e8f3b03517e6233aad42f45c794d8df8e","name":"https://git.kernel.org/stable/c/09143c0e8f3b03517e6233aad42f45c794d8df8e","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/4527025d440ce84bf56e75ce1df2e84cb8178616","name":"https://git.kernel.org/stable/c/4527025d440ce84bf56e75ce1df2e84cb8178616","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/5eef9ebec7f5738f12cadede3545c05b34bf5ac3","name":"https://git.kernel.org/stable/c/5eef9ebec7f5738f12cadede3545c05b34bf5ac3","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/d89b74bf08f067b55c03d7f999ba0a0e73177eb3","name":"https://git.kernel.org/stable/c/d89b74bf08f067b55c03d7f999ba0a0e73177eb3","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/ca54e904a071aa65ef3ad46ba42d51aaac6b73b4","name":"https://git.kernel.org/stable/c/ca54e904a071aa65ef3ad46ba42d51aaac6b73b4","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/1edc12d2bbcb7a8d0f1088e6fccb9d8c01bb1289","name":"https://git.kernel.org/stable/c/1edc12d2bbcb7a8d0f1088e6fccb9d8c01bb1289","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/7ed00a3edc8597fe2333f524401e2889aa1b5edf","name":"https://git.kernel.org/stable/c/7ed00a3edc8597fe2333f524401e2889aa1b5edf","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/eb435d150ca74b4d40f77f1a2266f3636ed64a79","name":"https://git.kernel.org/stable/c/eb435d150ca74b4d40f77f1a2266f3636ed64a79","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-31509","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31509","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6a2968aaf50c7a22fced77a5e24aa636281efca8 7ed00a3edc8597fe2333f524401e2889aa1b5edf git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6a2968aaf50c7a22fced77a5e24aa636281efca8 5eef9ebec7f5738f12cadede3545c05b34bf5ac3 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6a2968aaf50c7a22fced77a5e24aa636281efca8 ca54e904a071aa65ef3ad46ba42d51aaac6b73b4 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6a2968aaf50c7a22fced77a5e24aa636281efca8 eb435d150ca74b4d40f77f1a2266f3636ed64a79 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6a2968aaf50c7a22fced77a5e24aa636281efca8 1edc12d2bbcb7a8d0f1088e6fccb9d8c01bb1289 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6a2968aaf50c7a22fced77a5e24aa636281efca8 d89b74bf08f067b55c03d7f999ba0a0e73177eb3 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6a2968aaf50c7a22fced77a5e24aa636281efca8 09143c0e8f3b03517e6233aad42f45c794d8df8e git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6a2968aaf50c7a22fced77a5e24aa636281efca8 4527025d440ce84bf56e75ce1df2e84cb8178616 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 3.2","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 3.2 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.10.253 5.10.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.15.203 5.15.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.1.168 6.1.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.6.131 6.6.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.80 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.21 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.19.11 6.19.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.0 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["net/nfc/nci/core.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"7ed00a3edc8597fe2333f524401e2889aa1b5edf","status":"affected","version":"6a2968aaf50c7a22fced77a5e24aa636281efca8","versionType":"git"},{"lessThan":"5eef9ebec7f5738f12cadede3545c05b34bf5ac3","status":"affected","version":"6a2968aaf50c7a22fced77a5e24aa636281efca8","versionType":"git"},{"lessThan":"ca54e904a071aa65ef3ad46ba42d51aaac6b73b4","status":"affected","version":"6a2968aaf50c7a22fced77a5e24aa636281efca8","versionType":"git"},{"lessThan":"eb435d150ca74b4d40f77f1a2266f3636ed64a79","status":"affected","version":"6a2968aaf50c7a22fced77a5e24aa636281efca8","versionType":"git"},{"lessThan":"1edc12d2bbcb7a8d0f1088e6fccb9d8c01bb1289","status":"affected","version":"6a2968aaf50c7a22fced77a5e24aa636281efca8","versionType":"git"},{"lessThan":"d89b74bf08f067b55c03d7f999ba0a0e73177eb3","status":"affected","version":"6a2968aaf50c7a22fced77a5e24aa636281efca8","versionType":"git"},{"lessThan":"09143c0e8f3b03517e6233aad42f45c794d8df8e","status":"affected","version":"6a2968aaf50c7a22fced77a5e24aa636281efca8","versionType":"git"},{"lessThan":"4527025d440ce84bf56e75ce1df2e84cb8178616","status":"affected","version":"6a2968aaf50c7a22fced77a5e24aa636281efca8","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["net/nfc/nci/core.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"3.2"},{"lessThan":"3.2","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"5.10.*","status":"unaffected","version":"5.10.253","versionType":"semver"},{"lessThanOrEqual":"5.15.*","status":"unaffected","version":"5.15.203","versionType":"semver"},{"lessThanOrEqual":"6.1.*","status":"unaffected","version":"6.1.168","versionType":"semver"},{"lessThanOrEqual":"6.6.*","status":"unaffected","version":"6.6.131","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.80","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.21","versionType":"semver"},{"lessThanOrEqual":"6.19.*","status":"unaffected","version":"6.19.11","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.0","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.10.253","versionStartIncluding":"3.2","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.15.203","versionStartIncluding":"3.2","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.1.168","versionStartIncluding":"3.2","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.6.131","versionStartIncluding":"3.2","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.80","versionStartIncluding":"3.2","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.21","versionStartIncluding":"3.2","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.19.11","versionStartIncluding":"3.2","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.0","versionStartIncluding":"3.2","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nnfc: nci: fix circular locking dependency in nci_close_device\n\nnci_close_device() flushes rx_wq and tx_wq while holding req_lock.\nThis causes a circular locking dependency because nci_rx_work()\nrunning on rx_wq can end up taking req_lock too:\n\n  nci_rx_work -> nci_rx_data_packet -> nci_data_exchange_complete\n    -> __sk_destruct -> rawsock_destruct -> nfc_deactivate_target\n    -> nci_deactivate_target -> nci_request -> mutex_lock(&ndev->req_lock)\n\nMove the flush of rx_wq after req_lock has been released.\nThis should safe (I think) because NCI_UP has already been cleared\nand the transport is closed, so the work will see it and return\n-ENETDOWN.\n\nNIPA has been hitting this running the nci selftest with a debug\nkernel on roughly 4% of the runs."}],"providerMetadata":{"dateUpdated":"2026-04-22T13:54:27.436Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/7ed00a3edc8597fe2333f524401e2889aa1b5edf"},{"url":"https://git.kernel.org/stable/c/5eef9ebec7f5738f12cadede3545c05b34bf5ac3"},{"url":"https://git.kernel.org/stable/c/ca54e904a071aa65ef3ad46ba42d51aaac6b73b4"},{"url":"https://git.kernel.org/stable/c/eb435d150ca74b4d40f77f1a2266f3636ed64a79"},{"url":"https://git.kernel.org/stable/c/1edc12d2bbcb7a8d0f1088e6fccb9d8c01bb1289"},{"url":"https://git.kernel.org/stable/c/d89b74bf08f067b55c03d7f999ba0a0e73177eb3"},{"url":"https://git.kernel.org/stable/c/09143c0e8f3b03517e6233aad42f45c794d8df8e"},{"url":"https://git.kernel.org/stable/c/4527025d440ce84bf56e75ce1df2e84cb8178616"}],"title":"nfc: nci: fix circular locking dependency in nci_close_device","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-31509","datePublished":"2026-04-22T13:54:27.436Z","dateReserved":"2026-03-09T15:48:24.106Z","dateUpdated":"2026-04-22T13:54:27.436Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-04-22 14:16:49","lastModifiedDate":"2026-04-22 14:16:49","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"31509","Ordinal":"1","Title":"nfc: nci: fix circular locking dependency in nci_close_device","CVE":"CVE-2026-31509","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"31509","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nnfc: nci: fix circular locking dependency in nci_close_device\n\nnci_close_device() flushes rx_wq and tx_wq while holding req_lock.\nThis causes a circular locking dependency because nci_rx_work()\nrunning on rx_wq can end up taking req_lock too:\n\n  nci_rx_work -> nci_rx_data_packet -> nci_data_exchange_complete\n    -> __sk_destruct -> rawsock_destruct -> nfc_deactivate_target\n    -> nci_deactivate_target -> nci_request -> mutex_lock(&ndev->req_lock)\n\nMove the flush of rx_wq after req_lock has been released.\nThis should safe (I think) because NCI_UP has already been cleared\nand the transport is closed, so the work will see it and return\n-ENETDOWN.\n\nNIPA has been hitting this running the nci selftest with a debug\nkernel on roughly 4% of the runs.","Type":"Description","Title":"nfc: nci: fix circular locking dependency in nci_close_device"}]}}}