What’s Vulnerable › Vulnerabilities
CVE-2026-68387: can: raw: add locking for raw flags bitfield
- Severity: high (CVSS 7.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-08-10 · updated 2026-08-17
Description
In the Linux kernel, the following vulnerability has been resolved: can: raw: add locking for raw flags bitfield With commit 890e5198a6e5 ("can: raw: use bitfields to store flags in struct raw_sock") the formerly separate integer values have been integrated into a single bitfield. This led to a read-modify-write operation when changing a flag in raw_setsockopt() which now needs a locking to prevent concurrent access. Instead of adding a lock/unlock hell in each of the flag manipulations this patch introduces a wrapper for a new raw_setsockopt_locked() function analogue to the isotp_setsockopt[_locked]() approach in net/can/isotp.c [mkl: use Closes tag instead of Link]
Affected products
- Linux kernel: 6.18 — fixed in 7.2
How to fix
Upgrade to a fixed version: Linux kernel 7.2. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/00ba4bf8798242253fefc1fa6a78db1d445fd024
- https://git.kernel.org/stable/c/1e5185c090589f4146d728ab36417d8a5419f127
- https://git.kernel.org/stable/c/57791aab1129c9405f84bb0882de58967d8b44cd
Get alerted when CVE-2026-68387 or the next vulnerability affects your stack