{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "d2c8ac187fc922e73930a1b2f6a211e27f595d01"
            },
            {
              "fixed": "15797b618528bd2e7b94e8aac167f5ae23e24e1a"
            },
            {
              "fixed": "09da3a7fe7951e7659ee924d79db38812064d666"
            },
            {
              "fixed": "780cd10c8e78f97ed768be229acff0ffd5483477"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "5.9.0"
            },
            {
              "fixed": "6.18.64"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "7.3.4"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/138xxx/CVE-2026-138922.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\ncrypto: sa2ul - Fix HMAC key preparation\n\nsa_prepare_iopads() has multiple bugs, as discussed at\nhttps://lore.kernel.org/linux-crypto/20260831055141.1632832-1-s-vadapalli@ti.com/T/#u\n\n- Commit 3bf533787910 (\"crypto: sha256 - Use the partial block API\")\n  introduced a 1-byte buffer overflow in the SHA-256 case by making the\n  crypto_shash_export() write 1 more than sizeof(struct sha256_state).\n\n- It never worked for HMAC keys longer than 64 bytes in the first place.\n\nFix both of these bugs by just using the crypto library to prepare the\nkey, like what the chelsio and qat drivers do.  Also remove the\npointless use of an indirect call.",
  "id": "CVE-2026-138922",
  "modified": "2026-11-30T14:45:31.255013069Z",
  "published": "2026-11-30T13:26:13.993Z",
  "references": [
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/09da3a7fe7951e7659ee924d79db38812064d666"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/15797b618528bd2e7b94e8aac167f5ae23e24e1a"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/780cd10c8e78f97ed768be229acff0ffd5483477"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/138xxx/CVE-2026-138922.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-138922"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "crypto: sa2ul - Fix HMAC key preparation"
}