{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "890e5198a6e5b238627c245fafea1a92670a86cd"
            },
            {
              "fixed": "00ba4bf8798242253fefc1fa6a78db1d445fd024"
            },
            {
              "fixed": "57791aab1129c9405f84bb0882de58967d8b44cd"
            },
            {
              "fixed": "1e5185c090589f4146d728ab36417d8a5419f127"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "6.18.0"
            },
            {
              "fixed": "6.18.42"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "7.1.6"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/68xxx/CVE-2026-68387.json"
  },
  "details": "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]",
  "id": "CVE-2026-68387",
  "modified": "2026-08-12T03:51:34.831452455Z",
  "published": "2026-08-10T12:04:06.326Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/00ba4bf8798242253fefc1fa6a78db1d445fd024"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/1e5185c090589f4146d728ab36417d8a5419f127"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/57791aab1129c9405f84bb0882de58967d8b44cd"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/68xxx/CVE-2026-68387.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-68387"
    },
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    }
  ],
  "schema_version": "1.9.0",
  "summary": "can: raw: add locking for raw flags bitfield"
}