CVE-2026-99671
Severity unknownNo known exploitationFix availablecan: raw, isotp: copy socket options outside of lock_sock()
Record last updated
CVSS score
No score published yet
EPSS, chance of exploitation in 30 days
Higher than 6% of scored CVEs. A prediction, not evidence.
CISA remediation deadline
Not in the KEV catalog
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.
Patching and mitigation
- Patch status
- Fix available (source: CVE record (Linux))
- Fix documented (source date)
- Mitigation
- None documented
- Vendor guidance
- No vendor link on record
Affected products
| Vendor | Product | Affected versions | Fixed in | Per |
|---|---|---|---|---|
| Linux | Linux | from c18ce101f2e47d97ace125033e2896895a6db3dd before 12b2ddd7d01b7e5ec466c128ff862197d59c2440 | 12b2ddd7d01b7e5ec466c128ff862197d59c2440 | CVE Program |
| Linux | Linux | from c18ce101f2e47d97ace125033e2896895a6db3dd before 43c973a0887d3d7b2ee0a446603c97bf0f38c58e | 43c973a0887d3d7b2ee0a446603c97bf0f38c58e | CVE Program |
| Linux | Linux | from c18ce101f2e47d97ace125033e2896895a6db3dd before ecc81d48ae70513db45de567ae164a1993b792c5 | ecc81d48ae70513db45de567ae164a1993b792c5 | CVE Program |
| Linux | Linux | from c18ce101f2e47d97ace125033e2896895a6db3dd before 233eb0922c17063911dd4e947ef91ef5125b9665 | 233eb0922c17063911dd4e947ef91ef5125b9665 | CVE Program |
| Linux | Linux | 2.6.25 | Not documented | CVE Program |
| Linux | Linux (unaffected) | from 6.12.118 up to and including 6.12.* | Not documented | CVE Program |
| Linux | Linux (unaffected) | from 6.18.64 up to and including 6.18.* | Not documented | CVE Program |
| Linux | Linux (unaffected) | from 7.3.5 up to and including 7.3.* | Not documented | CVE Program |
| Linux | Linux (unaffected) | 7.4-rc2 | Not documented | CVE Program |
| Linux | Linux (unaffected) | all versions before 2.6.25 | Not documented | CVE Program |
Timeline
Disclosure
CVE record published by Linux
Source: CVE Program (opens in a new tab)
Patch
Fix documented by CVE record (Linux)
Vendor guidance and references
- https://git.kernel.org/stable/c/12b2ddd7d01b7e5ec466c128ff862197d59c2440 (opens in a new tab)
- https://git.kernel.org/stable/c/233eb0922c17063911dd4e947ef91ef5125b9665 (opens in a new tab)
- https://git.kernel.org/stable/c/43c973a0887d3d7b2ee0a446603c97bf0f38c58e (opens in a new tab)
- https://git.kernel.org/stable/c/ecc81d48ae70513db45de567ae164a1993b792c5 (opens in a new tab)