xfrm: account XFRMA_IF_ID in aevent size calculation (Linux Linux)

CVE-2026-43107
MEDIUM 5.5

At a glance

Source
NVD
EPSS
EPSS 0.16 % · percentile 5 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Modified

Description

In the Linux kernel, the following vulnerability has been resolved: xfrm: account XFRMA_IF_ID in aevent size calculation xfrm_get_ae() allocates the reply skb with xfrm_aevent_msgsize(), then build_aevent() appends attributes including XFRMA_IF_ID when x->if_id is set. xfrm_aevent_msgsize() does not include space for XFRMA_IF_ID. For states with if_id, build_aevent() can fail with -EMSGSIZE and hit BUG_ON(err < 0) in xfrm_get_ae(), turning a malformed netlink interaction into a kernel panic. Account XFRMA_IF_ID in the size calculation unconditionally and replace the BUG_ON with normal error unwinding.

Weaknesses (CWE)

  • CWE-131 — Incorrect Calculation of Buffer Size

References

Scores

VersionScoreVectorScored by
CVSS 3.1MEDIUM 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HNVD · nvd@nist.gov (Primary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected 7e6526404adedf079279aa7aa11722deaca8fe2e < b7dbdc34d22f743abb2c460dfae0d69cd8a45e69 ; affected 7e6526404adedf079279aa7aa11722deaca8fe2e < f8f3bb89ab677db15f9f5250c77af728f9afe995 ; affected 7e6526404adedf079279aa7aa11722deaca8fe2e < 2c41283d94af943a05f7f2cc1a01f0c872f3cf43 ; affected 7e6526404adedf079279aa7aa11722deaca8fe2e < e62e322ea20be78e346e4b49f9a6b9f03313af4c ; affected 7e6526404adedf079279aa7aa11722deaca8fe2e < 58e5735d1a5373652f405a0c16e54ac04aaab0ad ; affected 7e6526404adedf079279aa7aa11722deaca8fe2e < 7081d46d32312f1a31f0e0e99c6835a394037599
Linux · Linuxaffected 4.19 ; unaffected 0 < 4.19 ; unaffected 6.1.191 ≤ 6.1.* ; unaffected 6.6.160 ≤ 6.6.* ; unaffected 6.12.83 ≤ 6.12.* ; unaffected 6.18.24 ≤ 6.18.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD