can: raw, isotp: copy socket options outside of lock_sock()

Summary

CVECVE-2026-99671
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-11-20 06:18:01 UTC
Updated2026-11-23 08:18:07 UTC
DescriptionIn 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.

Risk And Classification

EPSS: 0.001770000 probability, percentile 0.072980000 (date 2026-11-23)

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Linux Linux affected c18ce101f2e47d97ace125033e2896895a6db3dd 0ad1f126e04fc19898de9577a01d41b1a02d37cd git Not specified
CNA Linux Linux affected c18ce101f2e47d97ace125033e2896895a6db3dd 61f76d2a9244e103f4eb749e0b001bf9ac5ecec2 git Not specified
CNA Linux Linux affected c18ce101f2e47d97ace125033e2896895a6db3dd 6f65cb2f1ea02dde496955f92ea057573f9ac8b4 git Not specified
CNA Linux Linux affected c18ce101f2e47d97ace125033e2896895a6db3dd b6ebfbdf543c2155adc7924d9afb1c8e47472459 git Not specified
CNA Linux Linux affected c18ce101f2e47d97ace125033e2896895a6db3dd ecc81d48ae70513db45de567ae164a1993b792c5 git Not specified
CNA Linux Linux affected c18ce101f2e47d97ace125033e2896895a6db3dd 233eb0922c17063911dd4e947ef91ef5125b9665 git Not specified
CNA Linux Linux affected c18ce101f2e47d97ace125033e2896895a6db3dd 12b2ddd7d01b7e5ec466c128ff862197d59c2440 git Not specified
CNA Linux Linux affected c18ce101f2e47d97ace125033e2896895a6db3dd 43c973a0887d3d7b2ee0a446603c97bf0f38c58e git Not specified
CNA Linux Linux affected 2.6.25 Not specified
CNA Linux Linux unaffected 2.6.25 semver Not specified
CNA Linux Linux unaffected 5.10.275 5.10.* semver Not specified
CNA Linux Linux unaffected 5.15.226 5.15.* semver Not specified
CNA Linux Linux unaffected 6.1.193 6.1.* semver Not specified
CNA Linux Linux unaffected 6.6.163 6.6.* semver Not specified
CNA Linux Linux unaffected 6.12.118 6.12.* semver Not specified
CNA Linux Linux unaffected 6.18.64 6.18.* semver Not specified
CNA Linux Linux unaffected 7.3.5 7.3.* semver Not specified
CNA Linux Linux unaffected 7.4-rc2 * original_commit_for_fix Not specified

References

ReferenceSourceLinkTags
git.kernel.org/stable/c/12b2ddd7d01b7e5ec466c128ff862197d59c2440 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/0ad1f126e04fc19898de9577a01d41b1a02d37cd 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/ecc81d48ae70513db45de567ae164a1993b792c5 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/6f65cb2f1ea02dde496955f92ea057573f9ac8b4 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/43c973a0887d3d7b2ee0a446603c97bf0f38c58e 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/b6ebfbdf543c2155adc7924d9afb1c8e47472459 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/61f76d2a9244e103f4eb749e0b001bf9ac5ecec2 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/233eb0922c17063911dd4e947ef91ef5125b9665 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report