CVE-2026-68387

Source
https://cve.org/CVERecord?id=CVE-2026-68387
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-68387.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-68387
Downstream
Published
2026-08-10T12:04:06.326Z
Modified
2026-08-12T04:18:48.558787769Z
Summary
can: raw: add locking for raw flags bitfield
Details

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 rawsock") 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 rawsetsockopt() 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 rawsetsockoptlocked() function analogue to the isotp_setsockopt_locked approach in net/can/isotp.c

[mkl: use Closes tag instead of Link]

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/68xxx/CVE-2026-68387.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / 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"

Linux / Kernel

Package

Name
Kernel

Affected 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"