{"api_version":"1","generated_at":"2026-11-28T05:16:50+00:00","cve":"CVE-2026-99671","urls":{"html":"https://cve.report/CVE-2026-99671","api":"https://cve.report/api/cve/CVE-2026-99671.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-99671","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-99671"},"summary":{"title":"can: raw, isotp: copy socket options outside of lock_sock()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ncan: raw, isotp: copy socket options outside of lock_sock()\n\nThe CAN_RAW and CAN_ISOTP specific socket options are copied from and\nto user space while holding lock_sock(). A copy that faults or stalls,\ne.g. on a userfaultfd or FUSE backed mapping, holds lock_sock() for its\nwhole duration.\n\nraw_notify() and isotp_notify() take lock_sock() of a socket that is\nbound to the vanishing device while holding RTNL. As the CAN_RAW\noptions can also be changed on a bound socket, a stalled copy can block\nRTNL on an unregistration or namespace change of the bound device.\nBefore \"can: protect the receive lists with a per-device lock\",\nraw_setsockopt() even held RTNL itself during the copy. CAN_ISOTP only\ncopies its options for unbound sockets, which isotp_notify() skips\nwithout taking lock_sock().\n\nKeep the user space copies out of the locked sections: Check the option\nname and length and copy the option values, including the CAN_RAW_FILTER\nfilters, to kernel memory before lock_sock(). raw_setsockopt_locked()\nand isotp_setsockopt_locked() get the copied values directly and drop\ntheir now redundant length checks and copies. As a side effect, a\nfailing copy can not leave partially overwritten options behind\nanymore. In raw_getsockopt() duplicate the filters under lock_sock() and\ncopy them to user space after release_sock().\n\nAs the option name and length are now checked before lock_sock(), the\norder of the checks in isotp_setsockopt() and accordingly the order of\nthe returned error values changes. This is in line with POSIX, which\ndoes not define an order in which multiple error conditions are\ndetected and reported.\n\nThe generic SOL_SOCKET options in sk_setsockopt() are not affected by\nthis patch.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-20 06:18:01","updated_at":"2026-11-23 08:18:07"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/12b2ddd7d01b7e5ec466c128ff862197d59c2440","name":"https://git.kernel.org/stable/c/12b2ddd7d01b7e5ec466c128ff862197d59c2440","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/0ad1f126e04fc19898de9577a01d41b1a02d37cd","name":"https://git.kernel.org/stable/c/0ad1f126e04fc19898de9577a01d41b1a02d37cd","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/ecc81d48ae70513db45de567ae164a1993b792c5","name":"https://git.kernel.org/stable/c/ecc81d48ae70513db45de567ae164a1993b792c5","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/6f65cb2f1ea02dde496955f92ea057573f9ac8b4","name":"https://git.kernel.org/stable/c/6f65cb2f1ea02dde496955f92ea057573f9ac8b4","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/43c973a0887d3d7b2ee0a446603c97bf0f38c58e","name":"https://git.kernel.org/stable/c/43c973a0887d3d7b2ee0a446603c97bf0f38c58e","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/b6ebfbdf543c2155adc7924d9afb1c8e47472459","name":"https://git.kernel.org/stable/c/b6ebfbdf543c2155adc7924d9afb1c8e47472459","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/61f76d2a9244e103f4eb749e0b001bf9ac5ecec2","name":"https://git.kernel.org/stable/c/61f76d2a9244e103f4eb749e0b001bf9ac5ecec2","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/233eb0922c17063911dd4e947ef91ef5125b9665","name":"https://git.kernel.org/stable/c/233eb0922c17063911dd4e947ef91ef5125b9665","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-99671","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99671","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected c18ce101f2e47d97ace125033e2896895a6db3dd 0ad1f126e04fc19898de9577a01d41b1a02d37cd git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected c18ce101f2e47d97ace125033e2896895a6db3dd 61f76d2a9244e103f4eb749e0b001bf9ac5ecec2 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected c18ce101f2e47d97ace125033e2896895a6db3dd 6f65cb2f1ea02dde496955f92ea057573f9ac8b4 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected c18ce101f2e47d97ace125033e2896895a6db3dd b6ebfbdf543c2155adc7924d9afb1c8e47472459 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected c18ce101f2e47d97ace125033e2896895a6db3dd ecc81d48ae70513db45de567ae164a1993b792c5 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected c18ce101f2e47d97ace125033e2896895a6db3dd 233eb0922c17063911dd4e947ef91ef5125b9665 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected c18ce101f2e47d97ace125033e2896895a6db3dd 12b2ddd7d01b7e5ec466c128ff862197d59c2440 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected c18ce101f2e47d97ace125033e2896895a6db3dd 43c973a0887d3d7b2ee0a446603c97bf0f38c58e git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 2.6.25","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 2.6.25 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.10.275 5.10.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.15.226 5.15.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.1.193 6.1.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.6.163 6.6.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.118 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.64 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.5 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc2 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":{"cve_year":"2026","cve_id":"99671","cve":"CVE-2026-99671","epss":"0.001770000","percentile":"0.072980000","score_date":"2026-11-23","updated_at":"2026-11-24 00:07:46"},"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["net/can/isotp.c","net/can/raw.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"0ad1f126e04fc19898de9577a01d41b1a02d37cd","status":"affected","version":"c18ce101f2e47d97ace125033e2896895a6db3dd","versionType":"git"},{"lessThan":"61f76d2a9244e103f4eb749e0b001bf9ac5ecec2","status":"affected","version":"c18ce101f2e47d97ace125033e2896895a6db3dd","versionType":"git"},{"lessThan":"6f65cb2f1ea02dde496955f92ea057573f9ac8b4","status":"affected","version":"c18ce101f2e47d97ace125033e2896895a6db3dd","versionType":"git"},{"lessThan":"b6ebfbdf543c2155adc7924d9afb1c8e47472459","status":"affected","version":"c18ce101f2e47d97ace125033e2896895a6db3dd","versionType":"git"},{"lessThan":"ecc81d48ae70513db45de567ae164a1993b792c5","status":"affected","version":"c18ce101f2e47d97ace125033e2896895a6db3dd","versionType":"git"},{"lessThan":"233eb0922c17063911dd4e947ef91ef5125b9665","status":"affected","version":"c18ce101f2e47d97ace125033e2896895a6db3dd","versionType":"git"},{"lessThan":"12b2ddd7d01b7e5ec466c128ff862197d59c2440","status":"affected","version":"c18ce101f2e47d97ace125033e2896895a6db3dd","versionType":"git"},{"lessThan":"43c973a0887d3d7b2ee0a446603c97bf0f38c58e","status":"affected","version":"c18ce101f2e47d97ace125033e2896895a6db3dd","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["net/can/isotp.c","net/can/raw.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"2.6.25"},{"lessThan":"2.6.25","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"5.10.*","status":"unaffected","version":"5.10.275","versionType":"semver"},{"lessThanOrEqual":"5.15.*","status":"unaffected","version":"5.15.226","versionType":"semver"},{"lessThanOrEqual":"6.1.*","status":"unaffected","version":"6.1.193","versionType":"semver"},{"lessThanOrEqual":"6.6.*","status":"unaffected","version":"6.6.163","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.118","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.64","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.5","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc2","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.10.275","versionStartIncluding":"2.6.25","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.15.226","versionStartIncluding":"2.6.25","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.1.193","versionStartIncluding":"2.6.25","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.6.163","versionStartIncluding":"2.6.25","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.118","versionStartIncluding":"2.6.25","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.64","versionStartIncluding":"2.6.25","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.5","versionStartIncluding":"2.6.25","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc2","versionStartIncluding":"2.6.25","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ncan: raw, isotp: copy socket options outside of lock_sock()\n\nThe CAN_RAW and CAN_ISOTP specific socket options are copied from and\nto user space while holding lock_sock(). A copy that faults or stalls,\ne.g. on a userfaultfd or FUSE backed mapping, holds lock_sock() for its\nwhole duration.\n\nraw_notify() and isotp_notify() take lock_sock() of a socket that is\nbound to the vanishing device while holding RTNL. As the CAN_RAW\noptions can also be changed on a bound socket, a stalled copy can block\nRTNL on an unregistration or namespace change of the bound device.\nBefore \"can: protect the receive lists with a per-device lock\",\nraw_setsockopt() even held RTNL itself during the copy. CAN_ISOTP only\ncopies its options for unbound sockets, which isotp_notify() skips\nwithout taking lock_sock().\n\nKeep the user space copies out of the locked sections: Check the option\nname and length and copy the option values, including the CAN_RAW_FILTER\nfilters, to kernel memory before lock_sock(). raw_setsockopt_locked()\nand isotp_setsockopt_locked() get the copied values directly and drop\ntheir now redundant length checks and copies. As a side effect, a\nfailing copy can not leave partially overwritten options behind\nanymore. In raw_getsockopt() duplicate the filters under lock_sock() and\ncopy them to user space after release_sock().\n\nAs the option name and length are now checked before lock_sock(), the\norder of the checks in isotp_setsockopt() and accordingly the order of\nthe returned error values changes. This is in line with POSIX, which\ndoes not define an order in which multiple error conditions are\ndetected and reported.\n\nThe generic SOL_SOCKET options in sk_setsockopt() are not affected by\nthis patch."}],"providerMetadata":{"dateUpdated":"2026-11-23T08:05:47.013Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/0ad1f126e04fc19898de9577a01d41b1a02d37cd"},{"url":"https://git.kernel.org/stable/c/61f76d2a9244e103f4eb749e0b001bf9ac5ecec2"},{"url":"https://git.kernel.org/stable/c/6f65cb2f1ea02dde496955f92ea057573f9ac8b4"},{"url":"https://git.kernel.org/stable/c/b6ebfbdf543c2155adc7924d9afb1c8e47472459"},{"url":"https://git.kernel.org/stable/c/ecc81d48ae70513db45de567ae164a1993b792c5"},{"url":"https://git.kernel.org/stable/c/233eb0922c17063911dd4e947ef91ef5125b9665"},{"url":"https://git.kernel.org/stable/c/12b2ddd7d01b7e5ec466c128ff862197d59c2440"},{"url":"https://git.kernel.org/stable/c/43c973a0887d3d7b2ee0a446603c97bf0f38c58e"}],"title":"can: raw, isotp: copy socket options outside of lock_sock()","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-99671","datePublished":"2026-11-20T05:50:20.377Z","dateReserved":"2026-09-25T10:25:14.428Z","dateUpdated":"2026-11-23T08:05:47.013Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-20 06:18:01","lastModifiedDate":"2026-11-23 08:18:07","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"99671","Ordinal":"1","Title":"can: raw, isotp: copy socket options outside of lock_sock()","CVE":"CVE-2026-99671","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"99671","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\ncan: raw, isotp: copy socket options outside of lock_sock()\n\nThe CAN_RAW and CAN_ISOTP specific socket options are copied from and\nto user space while holding lock_sock(). A copy that faults or stalls,\ne.g. on a userfaultfd or FUSE backed mapping, holds lock_sock() for its\nwhole duration.\n\nraw_notify() and isotp_notify() take lock_sock() of a socket that is\nbound to the vanishing device while holding RTNL. As the CAN_RAW\noptions can also be changed on a bound socket, a stalled copy can block\nRTNL on an unregistration or namespace change of the bound device.\nBefore \"can: protect the receive lists with a per-device lock\",\nraw_setsockopt() even held RTNL itself during the copy. CAN_ISOTP only\ncopies its options for unbound sockets, which isotp_notify() skips\nwithout taking lock_sock().\n\nKeep the user space copies out of the locked sections: Check the option\nname and length and copy the option values, including the CAN_RAW_FILTER\nfilters, to kernel memory before lock_sock(). raw_setsockopt_locked()\nand isotp_setsockopt_locked() get the copied values directly and drop\ntheir now redundant length checks and copies. As a side effect, a\nfailing copy can not leave partially overwritten options behind\nanymore. In raw_getsockopt() duplicate the filters under lock_sock() and\ncopy them to user space after release_sock().\n\nAs the option name and length are now checked before lock_sock(), the\norder of the checks in isotp_setsockopt() and accordingly the order of\nthe returned error values changes. This is in line with POSIX, which\ndoes not define an order in which multiple error conditions are\ndetected and reported.\n\nThe generic SOL_SOCKET options in sk_setsockopt() are not affected by\nthis patch.","Type":"Description","Title":"can: raw, isotp: copy socket options outside of lock_sock()"}]}}}