CVE-2026-99671
publishedcan: raw, isotp: copy socket options outside of lock_sock()
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxc18ce101f2e47d97ace125033e2896895a6db3dd to < 0ad1f126e04fc19898de9577a01d41b1a02d37cd · c18ce101f2e47d97ace125033e2896895a6db3dd to < 61f76d2a9244e103f4eb749e0b001bf9ac5ecec2 · c18ce101f2e47d97ace125033e2896895a6db3dd to < 6f65cb2f1ea02dde496955f92ea057573f9ac8b4 · c18ce101f2e47d97ace125033e2896895a6db3dd to < b6ebfbdf543c2155adc7924d9afb1c8e47472459 · c18ce101f2e47d97ace125033e2896895a6db3dd to < ecc81d48ae70513db45de567ae164a1993b792c5 · c18ce101f2e47d97ace125033e2896895a6db3dd to < 233eb0922c17063911dd4e947ef91ef5125b9665 · c18ce101f2e47d97ace125033e2896895a6db3dd to < 12b2ddd7d01b7e5ec466c128ff862197d59c2440 · c18ce101f2e47d97ace125033e2896895a6db3dd to < 43c973a0887d3d7b2ee0a446603c97bf0f38c58e · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux2.6.25 (affected) · 0 to < 2.6.25 (unaffected · semver) · 5.10.275 through 5.10.* (unaffected · semver) · 5.15.226 through 5.15.* (unaffected · semver) · 6.1.193 through 6.1.* (unaffected · semver) · 6.6.163 through 6.6.* (unaffected · semver) · 6.12.118 through 6.12.* (unaffected · semver) · 6.18.64 through 6.18.* (unaffected · semver) · 7.3.5 through 7.3.* (unaffected · semver) · 7.4-rc2 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Pending Fix; Not Affected | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Pending Fix | Not stated | Amazon Linux assessment |
| Debian | trixie | linux | Advisory build | 6.12.118-1 | DSA-6652-1 |
Description
In the Linux kernel, the following vulnerability has been resolved: can: raw, isotp: copy socket options outside of lock_sock() The CAN_RAW and CAN_ISOTP specific socket options are copied from and to user space while holding lock_sock(). A copy that faults or stalls, e.g. on a userfaultfd or FUSE backed mapping, holds lock_sock() for its whole duration. raw_notify() and isotp_notify() take lock_sock() of a socket that is bound to the vanishing device while holding RTNL. As the CAN_RAW options can also be changed on a bound socket, a stalled copy can block RTNL on an unregistration or namespace change of the bound device. Before "can: protect the receive lists with a per-device lock", raw_setsockopt() even held RTNL itself during the copy. CAN_ISOTP only copies its options for unbound sockets, which isotp_notify() skips without taking lock_sock(). Keep the user space copies out of the locked sections: Check the option name and length and copy the option values, including the CAN_RAW_FILTER filters, to kernel memory before lock_sock(). raw_setsockopt_locked() and isotp_setsockopt_locked() get the copied values directly and drop their now redundant length checks and copies. As a side effect, a failing copy can not leave partially overwritten options behind anymore. In raw_getsockopt() duplicate the filters under lock_sock() and copy them to user space after release_sock(). As the option name and length are now checked before lock_sock(), the order of the checks in isotp_setsockopt() and accordingly the order of the returned error values changes. This is in line with POSIX, which does not define an order in which multiple error conditions are detected and reported. The generic SOL_SOCKET options in sk_setsockopt() are not affected by this patch.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | c18ce101f2e47d97ace125033e2896895a6db3dd to < 0ad1f126e04fc19898de9577a01d41b1a02d37cd (affected · git)c18ce101f2e47d97ace125033e2896895a6db3dd to < 61f76d2a9244e103f4eb749e0b001bf9ac5ecec2 (affected · git)c18ce101f2e47d97ace125033e2896895a6db3dd to < 6f65cb2f1ea02dde496955f92ea057573f9ac8b4 (affected · git)c18ce101f2e47d97ace125033e2896895a6db3dd to < b6ebfbdf543c2155adc7924d9afb1c8e47472459 (affected · git)c18ce101f2e47d97ace125033e2896895a6db3dd to < ecc81d48ae70513db45de567ae164a1993b792c5 (affected · git)c18ce101f2e47d97ace125033e2896895a6db3dd to < 233eb0922c17063911dd4e947ef91ef5125b9665 (affected · git)c18ce101f2e47d97ace125033e2896895a6db3dd to < 12b2ddd7d01b7e5ec466c128ff862197d59c2440 (affected · git)c18ce101f2e47d97ace125033e2896895a6db3dd to < 43c973a0887d3d7b2ee0a446603c97bf0f38c58e (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 2.6.25 (affected)0 to < 2.6.25 (unaffected · semver)5.10.275 through 5.10.* (unaffected · semver)5.15.226 through 5.15.* (unaffected · semver)6.1.193 through 6.1.* (unaffected · semver)6.6.163 through 6.6.* (unaffected · semver)6.12.118 through 6.12.* (unaffected · semver)6.18.64 through 6.18.* (unaffected · semver)7.3.5 through 7.3.* (unaffected · semver)7.4-rc2 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
8- https://git.kernel.org/stable/c/0ad1f126e04fc19898de9577a01d41b1a02d37cd
- https://git.kernel.org/stable/c/12b2ddd7d01b7e5ec466c128ff862197d59c2440
- https://git.kernel.org/stable/c/233eb0922c17063911dd4e947ef91ef5125b9665
- https://git.kernel.org/stable/c/43c973a0887d3d7b2ee0a446603c97bf0f38c58e
- https://git.kernel.org/stable/c/61f76d2a9244e103f4eb749e0b001bf9ac5ecec2
- https://git.kernel.org/stable/c/6f65cb2f1ea02dde496955f92ea057573f9ac8b4
- https://git.kernel.org/stable/c/b6ebfbdf543c2155adc7924d9afb1c8e47472459
- https://git.kernel.org/stable/c/ecc81d48ae70513db45de567ae164a1993b792c5
Provider assertions
1Linux · cna
can: raw, isotp: copy socket options outside of lock_sock()
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- d5c662d7b705d6468a84f473b42fd2cc63717ec029bcf8d2a9d7a99198d46711
- Ingested
- 23 Nov 2026, 14:37:13 UTC
- Source record
- Official CVE record