{"id":"CVE-2026-99671","aliases":[],"title":"can: raw, isotp: copy socket options outside of lock_sock()","originalDescription":"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.","severity":{"cvss":null,"vector":null,"label":null},"exploitation":{"kev":null,"epss":{"score":0.00211,"percentile":0.12005},"exploitDb":null},"affected":[{"ecosystem":"Linux","name":"Kernel","range":">=2.6.25, <5.10.275","fixed":"5.10.275"},{"ecosystem":"Linux","name":"Kernel","range":">=2.6.25, <6.12.118","fixed":"6.12.118"},{"ecosystem":"Linux","name":"Kernel","range":">=5.11.0, <5.15.226","fixed":"5.15.226"},{"ecosystem":"Linux","name":"Kernel","range":">=5.16.0, <6.1.193","fixed":"6.1.193"},{"ecosystem":"Linux","name":"Kernel","range":">=6.13.0, <6.18.64","fixed":"6.18.64"},{"ecosystem":"Linux","name":"Kernel","range":">=6.19.0, <7.3.5","fixed":"7.3.5"},{"ecosystem":"Linux","name":"Kernel","range":">=6.2.0, <6.6.163","fixed":"6.6.163"},{"ecosystem":"Linux","name":"Kernel","range":">=6.7.0, <6.12.118","fixed":"6.12.118"},{"ecosystem":"vendor","name":"Linux","range":">=c18ce101f2e47d97ace125033e2896895a6db3dd, <0ad1f126e04fc19898de9577a01d41b1a02d37cd","fixed":"0ad1f126e04fc19898de9577a01d41b1a02d37cd"},{"ecosystem":"vendor","name":"Linux","range":">=c18ce101f2e47d97ace125033e2896895a6db3dd, <12b2ddd7d01b7e5ec466c128ff862197d59c2440","fixed":"12b2ddd7d01b7e5ec466c128ff862197d59c2440"},{"ecosystem":"vendor","name":"Linux","range":">=c18ce101f2e47d97ace125033e2896895a6db3dd, <233eb0922c17063911dd4e947ef91ef5125b9665","fixed":"233eb0922c17063911dd4e947ef91ef5125b9665"},{"ecosystem":"vendor","name":"Linux","range":">=c18ce101f2e47d97ace125033e2896895a6db3dd, <43c973a0887d3d7b2ee0a446603c97bf0f38c58e","fixed":"43c973a0887d3d7b2ee0a446603c97bf0f38c58e"},{"ecosystem":"vendor","name":"Linux","range":">=c18ce101f2e47d97ace125033e2896895a6db3dd, <61f76d2a9244e103f4eb749e0b001bf9ac5ecec2","fixed":"61f76d2a9244e103f4eb749e0b001bf9ac5ecec2"},{"ecosystem":"vendor","name":"Linux","range":">=c18ce101f2e47d97ace125033e2896895a6db3dd, <6f65cb2f1ea02dde496955f92ea057573f9ac8b4","fixed":"6f65cb2f1ea02dde496955f92ea057573f9ac8b4"},{"ecosystem":"vendor","name":"Linux","range":">=c18ce101f2e47d97ace125033e2896895a6db3dd, <b6ebfbdf543c2155adc7924d9afb1c8e47472459","fixed":"b6ebfbdf543c2155adc7924d9afb1c8e47472459"},{"ecosystem":"vendor","name":"Linux","range":">=c18ce101f2e47d97ace125033e2896895a6db3dd, <ecc81d48ae70513db45de567ae164a1993b792c5","fixed":"ecc81d48ae70513db45de567ae164a1993b792c5"}],"references":[{"url":"https://git.kernel.org/stable/c/ecc81d48ae70513db45de567ae164a1993b792c5","type":"other"},{"url":"https://git.kernel.org/stable/c/233eb0922c17063911dd4e947ef91ef5125b9665","type":"other"},{"url":"https://git.kernel.org/stable/c/12b2ddd7d01b7e5ec466c128ff862197d59c2440","type":"other"},{"url":"https://git.kernel.org/stable/c/43c973a0887d3d7b2ee0a446603c97bf0f38c58e","type":"other"},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","type":"package"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99671.json","type":"advisory"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99671","type":"advisory"},{"url":"https://git.kernel.org/stable/c/0ad1f126e04fc19898de9577a01d41b1a02d37cd","type":"other"},{"url":"https://git.kernel.org/stable/c/61f76d2a9244e103f4eb749e0b001bf9ac5ecec2","type":"other"},{"url":"https://git.kernel.org/stable/c/6f65cb2f1ea02dde496955f92ea057573f9ac8b4","type":"other"},{"url":"https://git.kernel.org/stable/c/b6ebfbdf543c2155adc7924d9afb1c8e47472459","type":"other"}],"sources":[{"name":"nvd","at":"2026-11-23T08:46:27.522Z","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99671","license":"NVD terms of use","firstSeenAt":"2026-11-20T06:30:46.089Z"},{"name":"osv","at":"2026-11-23T10:59:15.129Z","url":"https://osv.dev/vulnerability/CVE-2026-99671","license":"CC-BY 4.0","firstSeenAt":"2026-11-20T07:04:09.162Z"},{"name":"cvelistV5","at":"2026-11-23T21:30:57.940Z","url":"https://www.cve.org/CVERecord?id=CVE-2026-99671","license":"CVE Terms of Use","firstSeenAt":"2026-11-20T06:28:14.475Z"}],"firstSeenAt":"2026-11-20T06:28:14.475Z","publishedAt":"2026-11-20T05:50:20.377Z","modifiedAt":"2026-11-23T10:02:08.926Z"}