5.5medium
netlink: add nla be16/32 types to minlen array
- Severity
- 5.5medium CVSS:3.1 by NVD
- Exploit likelihood
- 0.22% (higher than 13% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: netlink: add nla be16/32 types to minlen array BUG: KMSAN: uninit-value in nla_validate_range_unsigned lib/nlattr.c:222 [inline] BUG: KMSAN: uninit-value in nla_validate_int_range lib/nlattr.c:336 [inline] BUG: KMSAN: uninit-value in validate_nla lib/nlattr.c:575 [inline] BUG: KMSAN: uninit-value in __nla_validate_parse+0x2e20/0x45c0 lib/nlattr.c:631 nla_validate_range_unsigned lib/nlattr.c:222 [inline] nla_validate_int_range lib/nlattr.c:336 [inline] validate_nla lib/nlattr.c:575 [inline] ... The message in question matches this policy: [NFTA_TARGET_REV] = NLA_POLICY_MAX(NLA_BE32, 255), but because NLA_BE32 size in minlen array is 0, the validation code will read past the malformed (too small) attribute. Note: Other attributes, e.g. BITFIELD32, SINT, UINT.. are also missing: those likely should be added too.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 24ea1c8abaae6541ad95912422a9af4fb858428d before 000a68159c0326b46c42ec712ab98793e7e625a7, from cbfac0add2afe8960a09806012313765a2179423 before 80b40f9cb87f3bf5877dfb852765cf92bc03ca77, from ecaf75ffd5f5db320d8b1da0198eef5a5ce64a3f before 0ac219c4c3ab253f3981f346903458d20bacab32, from ecaf75ffd5f5db320d8b1da0198eef5a5ce64a3f before a2ab028151841cd833cb53eb99427e0cc990112d, from ecaf75ffd5f5db320d8b1da0198eef5a5ce64a3f before 7a9d14c63b35f89563c5ecbadf918ad64979712d, from ecaf75ffd5f5db320d8b1da0198eef5a5ce64a3f before 9a0d18853c280f6a0ee99f91619f2442a17a323a, 6.1 Not affected: before 6.1, from 6.1.81 up to 6.1.*, from 6.6.21 up to 6.6.*, from 6.7.9 up to 6.7.*, from 6.8 up to * | CVE List |
| linux linux_kernel | from 6.1 before 6.1.81, from 6.2 before 6.6.21, from 6.7 before 6.7.9, 6.8 | NVD |
Classification
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: netlink: add nla be16/32 types to minlen array BUG: KMSAN: uninit-value in nla_validate_range_unsigned lib/nlattr.c:222 [inline] BUG: KMSAN: uninit-value in nla_validate_int_range lib/nlattr.c:336 [inline] BUG: KMSAN: uninit-value in validate_nla lib/nlattr.c:575 [inline] BUG: KMSAN: uninit-value in __nla_validate_parse+0x2e20/0x45c0 lib/nlattr.c:631 nla_validate_range_unsigned lib/nlattr.c:222 [inline] nla_validate_int_range lib/nlattr.c:336 [inline] validate_nla lib/nlattr.c:575 [inline] ... The message in question matches this policy: [NFTA_TARGET_REV] = NLA_POLICY_MAX(NLA_BE32, 255), but because NLA_BE32 size in minlen array is 0, the validation code will read past the malformed (too small) attribute. Note: Other attributes, e.g. BITFIELD32, SINT, UINT.. are also missing: those likely should be added too.
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: netlink: agregue tipos nla be16/32 a la matriz minlen ERROR: KMSAN: valor uninit en nla_validate_range_unsigned lib/nlattr.c:222 [en línea] ERROR: KMSAN: valor uninit en nla_validate_int_range lib/nlattr.c:336 [en línea] ERROR: KMSAN: valor uninit en validar_nla lib/nlattr.c:575 [en línea] ERROR: KMSAN: valor uninit en __nla_validate_parse+0x2e20/0x45c0 lib/nlattr.c:631 nla_validate_range_unsigned lib/nlattr.c:222 [en línea] nla_validate_int_range lib/nlattr.c:336 [en línea] validar_nla lib/nlattr.c:575 [en línea] ... El mensaje en cuestión coincide con esta política: [NFTA_TARGET_REV] = NLA_POLICY_MAX( NLA_BE32, 255), pero debido a que el tamaño de NLA_BE32 en la matriz minlen es 0, el código de validación leerá más allá del atributo con formato incorrecto (demasiado pequeño). Nota: También faltan otros atributos, por ejemplo, BITFIELD32, SINT, UINT...: probablemente también deberían agregarse.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-26849 changed 2026-05-11 | CVE Terms of Use |
| NVD | CVE-2024-26849 changed 2026-06-17 | Public domain |