# CVE-2026-68387: can: raw: add locking for raw flags bitfield

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 15% of CVEs (2026-12-01)
- Published: 2026-08-10T12:04:06.326Z
- Modified: 2026-08-17T06:17:47.277Z
- Assigned by: Linux

## 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]

(As written by CVE List.)

## Affected

- Linux Linux: from 890e5198a6e5b238627c245fafea1a92670a86cd before 00ba4bf8798242253fefc1fa6a78db1d445fd024; from 890e5198a6e5b238627c245fafea1a92670a86cd before 57791aab1129c9405f84bb0882de58967d8b44cd; from 890e5198a6e5b238627c245fafea1a92670a86cd before 1e5185c090589f4146d728ab36417d8a5419f127; 6.18 (not affected: before 6.18; from 6.18.42 up to 6.18.*; from 7.1.6 up to 7.1.*; from 7.2 up to *)

## References

- <https://git.kernel.org/stable/c/00ba4bf8798242253fefc1fa6a78db1d445fd024>
- <https://git.kernel.org/stable/c/57791aab1129c9405f84bb0882de58967d8b44cd>
- <https://git.kernel.org/stable/c/1e5185c090589f4146d728ab36417d8a5419f127>

## Sources

- CVE List: [CVE-2026-68387](https://www.cve.org/CVERecord?id=CVE-2026-68387), CVE Terms of Use, modified 2026-08-17
- NVD: [CVE-2026-68387](https://nvd.nist.gov/vuln/detail/CVE-2026-68387), Public domain, modified 2026-08-17

---

Page: https://cve.day/CVE-2026-68387 · Whole record: https://cve.day/CVE-2026-68387.json · Rebuilt by cve.day 2026-11-25T22:59:32.109Z
