{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-138922",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2026-11-30T13:22:15.903Z",
        "datePublished": "2026-11-30T13:26:13.993Z",
        "dateUpdated": "2026-11-30T13:26:13.993Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-11-30T13:26:13.993Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "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."
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/crypto/sa2ul.c"
                    ],
                    "versions": [
                        {
                            "version": "d2c8ac187fc922e73930a1b2f6a211e27f595d01",
                            "lessThan": "15797b618528bd2e7b94e8aac167f5ae23e24e1a",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "d2c8ac187fc922e73930a1b2f6a211e27f595d01",
                            "lessThan": "09da3a7fe7951e7659ee924d79db38812064d666",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "d2c8ac187fc922e73930a1b2f6a211e27f595d01",
                            "lessThan": "780cd10c8e78f97ed768be229acff0ffd5483477",
                            "status": "affected",
                            "versionType": "git"
                        }
                    ]
                },
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "affected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/crypto/sa2ul.c"
                    ],
                    "versions": [
                        {
                            "version": "5.9",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "5.9",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.18.64",
                            "lessThanOrEqual": "6.18.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.3.4",
                            "lessThanOrEqual": "7.3.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.4-rc1",
                            "lessThanOrEqual": "*",
                            "status": "unaffected",
                            "versionType": "original_commit_for_fix"
                        }
                    ]
                }
            ],
            "cpeApplicability": [
                {
                    "nodes": [
                        {
                            "operator": "OR",
                            "negate": false,
                            "cpeMatch": [
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.9",
                                    "versionEndExcluding": "6.18.64"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.9",
                                    "versionEndExcluding": "7.3.4"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.9",
                                    "versionEndExcluding": "7.4-rc1"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/15797b618528bd2e7b94e8aac167f5ae23e24e1a"
                },
                {
                    "url": "https://git.kernel.org/stable/c/09da3a7fe7951e7659ee924d79db38812064d666"
                },
                {
                    "url": "https://git.kernel.org/stable/c/780cd10c8e78f97ed768be229acff0ffd5483477"
                }
            ],
            "title": "crypto: sa2ul - Fix HMAC key preparation",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        }
    }
}