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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.17% (percentile 4, 2026-11-26)
- **Published:** 2026-08-10T12:04:06.326Z
- **Modified:** 2026-08-17T06:17:47.277Z

## Who should check

- Anyone running Linux \>= 890e5198a6e5b238627c245fafea1a92670a86cd, \< 00ba4bf8798242253fefc1fa6a78db1d445fd024; \>= 890e5198a6e5b238627c245fafea1a92670a86cd, \< 57791aab1129c9405f84bb0882de58967d8b44cd; \>= 890e5198a6e5b238627c245fafea1a92670a86cd, \< 1e5185c090589f4146d728ab36417d8a5419f127
- Anyone running Linux 6.18

## 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 and fixed versions

- Linux: \>= 890e5198a6e5b238627c245fafea1a92670a86cd, \< 00ba4bf8798242253fefc1fa6a78db1d445fd024; \>= 890e5198a6e5b238627c245fafea1a92670a86cd, \< 57791aab1129c9405f84bb0882de58967d8b44cd; \>= 890e5198a6e5b238627c245fafea1a92670a86cd, \< 1e5185c090589f4146d728ab36417d8a5419f127 (cvelist)
- Linux: 6.18 (cvelist)

## Mitigation

- Upgrade Linux to 1e5185c090589f4146d728ab36417d8a5419f127 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-68387. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-68387.md
Affected: Linux >= 890e5198a6e5b238627c245fafea1a92670a86cd, < 00ba4bf8798242253fefc1fa6a78db1d445fd024; >= 890e5198a6e5b238627c245fafea1a92670a86cd, < 57791aab1129c9405f84bb0882de58967d8b44cd; >= 890e5198a6e5b238627c245fafea1a92670a86cd, < 1e5185c090589f4146d728ab36417d8a5419f127; Linux 6.18
Fixed in: Linux 00ba4bf8798242253fefc1fa6a78db1d445fd024, Linux 57791aab1129c9405f84bb0882de58967d8b44cd, Linux 1e5185c090589f4146d728ab36417d8a5419f127

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-68387 being exploited?

There is no confirmed exploitation: CVE-2026-68387 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.17% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-68387?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-68387?

Linux \>= 890e5198a6e5b238627c245fafea1a92670a86cd, \< 00ba4bf8798242253fefc1fa6a78db1d445fd024; \>= 890e5198a6e5b238627c245fafea1a92670a86cd, \< 57791aab1129c9405f84bb0882de58967d8b44cd; \>= 890e5198a6e5b238627c245fafea1a92670a86cd, \< 1e5185c090589f4146d728ab36417d8a5419f127; Linux 6.18.

### Is there a fix for CVE-2026-68387?

Yes. Fixed in Linux 00ba4bf8798242253fefc1fa6a78db1d445fd024, Linux 57791aab1129c9405f84bb0882de58967d8b44cd, Linux 1e5185c090589f4146d728ab36417d8a5419f127. Upgrade Linux to 1e5185c090589f4146d728ab36417d8a5419f127 or later.

### How do I check if I'm affected by CVE-2026-68387?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

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

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-68387>

HTML: <https://flawdb.com/CVE-2026-68387> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-68387>
