← Back to CVE Explorer

CVE-2026-80843

Full vulnerability record from the local CVENow database.

Description

In the Linux kernel, the following vulnerability has been resolved: xfrm: fix xfrm_state_construct() auth-trunc leak attach_auth_trunc() can allocate x->aalg while leaving x->props.aalgo at zero when the selected auth algorithm has no sadb_alg_id. One real case is cmac(aes). xfrm_state_construct() then treats !x->props.aalgo as "no auth algorithm attached yet" and calls attach_auth(). That overwrites x->aalg and loses the first allocation. Any later failure or teardown only frees the replacement pointer. Check whether x->aalg is already attached instead of inferring that state from x->props.aalgo.

Severity
Not scored
CVSS score
Not available
Vulnerability status
Received
Source identifier
416baaa9-dc9f-4396-8d5f-8c081fb06d67
Published
2026-09-04 16:18:12.877000
Last modified
2026-10-19 09:17:19.730000
View original CVE JSON
{
  "id": "CVE-2026-80843",
  "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
  "published": "2026-09-04T16:18:12.877",
  "lastModified": "2026-10-19T09:17:19.730",
  "vulnStatus": "Received",
  "cveTags": [],
  "descriptions": [
    {
      "lang": "en",
      "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nxfrm: fix xfrm_state_construct() auth-trunc leak\n\nattach_auth_trunc() can allocate x->aalg while leaving\nx->props.aalgo at zero when the selected auth algorithm has no\nsadb_alg_id. One real case is cmac(aes).\n\nxfrm_state_construct() then treats !x->props.aalgo as \"no auth\nalgorithm attached yet\" and calls attach_auth(). That overwrites\nx->aalg and loses the first allocation. Any later failure or teardown\nonly frees the replacement pointer.\n\nCheck whether x->aalg is already attached instead of inferring that\nstate from x->props.aalgo."
    }
  ],
  "affected": [
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "affectedData": [
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "unaffected",
          "programFiles": [
            "net/xfrm/xfrm_user.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "versions": [
            {
              "version": "4447bb33f09444920a8f1d89e1540137429351b6",
              "lessThan": "958ae9f261319e1cdc44879886bcda2263258cca",
              "versionType": "git",
              "status": "affected"
            },
            {
              "version": "4447bb33f09444920a8f1d89e1540137429351b6",
              "lessThan": "fb7f3e74789a3c89647f4eb768f6dfaf4a751e72",
              "versionType": "git",
              "status": "affected"
            },
            {
              "version": "4447bb33f09444920a8f1d89e1540137429351b6",
              "lessThan": "ba0c110c205855b3f1e3130d8c0fdb484d704c8c",
              "versionType": "git",
              "status": "affected"
            },
            {
              "version": "4447bb33f09444920a8f1d89e1540137429351b6",
              "lessThan": "c8837bbe792257af547fd1c0252553ce13148795",
              "versionType": "git",
              "status": "affected"
            },
            {
              "version": "4447bb33f09444920a8f1d89e1540137429351b6",
              "lessThan": "71d42da01740ec6557837bebec0bc48cfc3b4c39",
              "versionType": "git",
              "status": "affected"
            },
            {
              "version": "4447bb33f09444920a8f1d89e1540137429351b6",
              "lessThan": "cf67361e78dca488d6e4df8396a53e6745a3a80e",
              "versionType": "git",
              "status": "affected"
            },
            {
              "version": "4447bb33f09444920a8f1d89e1540137429351b6",
              "lessThan": "37426395cb90ef217beec8407a14bd82153793d3",
              "versionType": "git",
              "status": "affected"
            },
            {
              "version": "4447bb33f09444920a8f1d89e1540137429351b6",
              "lessThan": "be19d20e53a239572bb2a28efcc1cd2b069b1ef9",
              "versionType": "git",
              "status": "affected"
            },
            {
              "version": "4447bb33f09444920a8f1d89e1540137429351b6",
              "lessThan": "c12cbf56320fb633484ee0ca1fb7d68d6b64b213",
              "versionType": "git",
              "status": "affected"
            }
          ]
        },
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "affected",
          "programFiles": [
            "net/xfrm/xfrm_user.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "versions": [
            {
              "version": "2.6.33",
              "status": "affected"
            },
            {
              "version": "0",
              "lessThan": "2.6.33",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "5.10.269",
              "lessThanOrEqual": "5.10.*",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "5.15.220",
              "lessThanOrEqual": "5.15.*",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "6.1.187",
              "lessThanOrEqual": "6.1.*",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "6.6.156",
              "lessThanOrEqual": "6.6.*",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "6.12.108",
              "lessThanOrEqual": "6.12.*",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "6.18.49",
              "lessThanOrEqual": "6.18.*",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "7.1.13",
              "lessThanOrEqual": "7.1.*",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "7.2.3",
              "lessThanOrEqual": "7.2.*",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "7.3",
              "lessThanOrEqual": "*",
              "versionType": "original_commit_for_fix",
              "status": "unaffected"
            }
          ]
        }
      ]
    }
  ],
  "metrics": {},
  "references": [
    {
      "url": "https://git.kernel.org/stable/c/37426395cb90ef217beec8407a14bd82153793d3",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    },
    {
      "url": "https://git.kernel.org/stable/c/71d42da01740ec6557837bebec0bc48cfc3b4c39",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    },
    {
      "url": "https://git.kernel.org/stable/c/958ae9f261319e1cdc44879886bcda2263258cca",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    },
    {
      "url": "https://git.kernel.org/stable/c/ba0c110c205855b3f1e3130d8c0fdb484d704c8c",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    },
    {
      "url": "https://git.kernel.org/stable/c/be19d20e53a239572bb2a28efcc1cd2b069b1ef9",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    },
    {
      "url": "https://git.kernel.org/stable/c/c12cbf56320fb633484ee0ca1fb7d68d6b64b213",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    },
    {
      "url": "https://git.kernel.org/stable/c/c8837bbe792257af547fd1c0252553ce13148795",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    },
    {
      "url": "https://git.kernel.org/stable/c/cf67361e78dca488d6e4df8396a53e6745a3a80e",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    },
    {
      "url": "https://git.kernel.org/stable/c/fb7f3e74789a3c89647f4eb768f6dfaf4a751e72",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    }
  ]
}