{"id":"CVE-2026-68387","aliases":["CVE-2026-68387"],"related":[],"kind":"vulnerability","state":"published","title":"can: raw: add locking for raw flags bitfield","summary":"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]","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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]","source":"cvelist"}],"published":"2026-08-10T12:04:06.326Z","modified":"2026-08-17T06:17:47.277Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"890e5198a6e5b238627c245fafea1a92670a86cd","fixed":"00ba4bf8798242253fefc1fa6a78db1d445fd024","status":"affected"},{"type":"git","introduced":"890e5198a6e5b238627c245fafea1a92670a86cd","fixed":"57791aab1129c9405f84bb0882de58967d8b44cd","status":"affected"},{"type":"git","introduced":"890e5198a6e5b238627c245fafea1a92670a86cd","fixed":"1e5185c090589f4146d728ab36417d8a5419f127","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.18","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.18","status":"unaffected"},{"type":"semver","introduced":"6.18.42","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.1.6","lastAffected":"7.1.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.2","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/00ba4bf8798242253fefc1fa6a78db1d445fd024","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/57791aab1129c9405f84bb0882de58967d8b44cd","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1e5185c090589f4146d728ab36417d8a5419f127","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-68387","url":"https://www.cve.org/CVERecord?id=CVE-2026-68387","licence":"CVE Terms of Use","modified":"2026-08-17T05:04:34.632Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-68387","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-68387","licence":"Public domain","modified":"2026-08-17T06:17:47.277Z"}],"updatedAt":"2026-11-25T22:59:32.109Z","epss":{"score":0.00236,"percentile":0.15611,"date":"2026-12-01T12:00:22.000Z"}}