{"id":"CVE-2026-68387","summary":"can: raw: add locking for raw flags bitfield","details":"In the Linux kernel, the following vulnerability has been resolved:\n\ncan: raw: add locking for raw flags bitfield\n\nWith commit 890e5198a6e5 (\"can: raw: use bitfields to store flags in\nstruct raw_sock\") the formerly separate integer values have been integrated\ninto a single bitfield. This led to a read-modify-write operation when\nchanging a flag in raw_setsockopt() which now needs a locking to prevent\nconcurrent access.\n\nInstead of adding a lock/unlock hell in each of the flag manipulations this\npatch introduces a wrapper for a new raw_setsockopt_locked() function\nanalogue to the isotp_setsockopt[_locked]() approach in net/can/isotp.c\n\n[mkl: use Closes tag instead of Link]","modified":"2026-08-12T04:18:48.558787769Z","published":"2026-08-10T12:04:06.326Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/68xxx/CVE-2026-68387.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/00ba4bf8798242253fefc1fa6a78db1d445fd024"},{"type":"WEB","url":"https://git.kernel.org/stable/c/1e5185c090589f4146d728ab36417d8a5419f127"},{"type":"WEB","url":"https://git.kernel.org/stable/c/57791aab1129c9405f84bb0882de58967d8b44cd"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/68xxx/CVE-2026-68387.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-68387"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"890e5198a6e5b238627c245fafea1a92670a86cd"},{"fixed":"00ba4bf8798242253fefc1fa6a78db1d445fd024"},{"fixed":"57791aab1129c9405f84bb0882de58967d8b44cd"},{"fixed":"1e5185c090589f4146d728ab36417d8a5419f127"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-68387.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.18.0"},{"fixed":"6.18.42"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.1.6"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-68387.json"}}],"schema_version":"1.9.0"}