CVE-2026-43107
JSON

5.5medium

xfrm: account XFRMA_IF_ID in aevent size calculation

Severity
5.5medium CVSS:3.1 by NVD
Exploit likelihood
0.16% (higher than 5% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 7e6526404adedf079279aa7aa11722deaca8fe2e before b7dbdc34d22f743abb2c460dfae0d69cd8a45e69, from 7e6526404adedf079279aa7aa11722deaca8fe2e before f8f3bb89ab677db15f9f5250c77af728f9afe995, from 7e6526404adedf079279aa7aa11722deaca8fe2e before 2c41283d94af943a05f7f2cc1a01f0c872f3cf43, from 7e6526404adedf079279aa7aa11722deaca8fe2e before e62e322ea20be78e346e4b49f9a6b9f03313af4c, from 7e6526404adedf079279aa7aa11722deaca8fe2e before 58e5735d1a5373652f405a0c16e54ac04aaab0ad, from 7e6526404adedf079279aa7aa11722deaca8fe2e before 7081d46d32312f1a31f0e0e99c6835a394037599, 4.19
Not affected: before 4.19, from 6.1.191 up to 6.1.*, from 6.6.160 up to 6.6.*, from 6.12.83 up to 6.12.*, from 6.18.24 up to 6.18.*, from 6.19.14 up to 6.19.*
CVE List
linux linux_kernelfrom 4.19 before 6.12.83, from 6.13 before 6.18.24, from 6.19 before 6.19.14, 7.0NVD

Classification

CWE-131

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: xfrm: contabilizar XFRMA_IF_ID en el cálculo del tamaño del evento xfrm_get_ae() asigna el skb de respuesta con xfrm_aevent_msgsize(), luego build_aevent() añade atributos incluyendo XFRMA_IF_ID cuando x -> if_id está establecido. xfrm_aevent_msgsize() no incluye espacio para XFRMA_IF_ID. Para estados con if_id, build_aevent() puede fallar con -EMSGSIZE y activar BUG_ON(err menor que 0) en xfrm_get_ae(), convirtiendo una interacción netlink malformada en un pánico del kernel. Contabilizar XFRMA_IF_ID en el cálculo del tamaño incondicionalmente y reemplazar el BUG_ON con un desenrollado de errores normal.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-43107 changed 2026-11-06CVE Terms of Use
NVDCVE-2026-43107 changed 2026-11-11Public domain