CVE-2024-42070
JSON

5.5medium

netfilter: nf_tables: fully validate NFT_DATA_VALUE on store to data registers

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

Description

In the Linux kernel, the following vulnerability has been resolved: netfilter: nf_tables: fully validate NFT_DATA_VALUE on store to data registers register store validation for NFT_DATA_VALUE is conditional, however, the datatype is always either NFT_DATA_VALUE or NFT_DATA_VERDICT. This only requires a new helper function to infer the register type from the set datatype so this conditional check can be removed. Otherwise, pointer to chain object can be leaked through the registers.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 96518518cc417bb0a8c80b9fb736202e28acdf96 before 40188a25a9847dbeb7ec67517174a835a677752f, from 96518518cc417bb0a8c80b9fb736202e28acdf96 before 23752737c6a618e994f9a310ec2568881a6b49c4, from 96518518cc417bb0a8c80b9fb736202e28acdf96 before 5d43d789b57943720dca4181a05f6477362b94cf, from 96518518cc417bb0a8c80b9fb736202e28acdf96 before 461302e07f49687ffe7d105fa0a330c07c7646d8, from 96518518cc417bb0a8c80b9fb736202e28acdf96 before efb27ad05949403848f487823b597ed67060e007, from 96518518cc417bb0a8c80b9fb736202e28acdf96 before 952bf8df222599baadbd4f838a49c4fef81d2564, from 96518518cc417bb0a8c80b9fb736202e28acdf96 before 41a6375d48deaf7f730304b5153848bfa1c2980f, from 96518518cc417bb0a8c80b9fb736202e28acdf96 before 7931d32955e09d0a11b1fe0b6aac1bfa061c005c and 1 more
Not affected: before 3.13, from 4.19.317 up to 4.19.*, from 5.4.279 up to 5.4.*, from 5.10.221 up to 5.10.*, from 5.15.162 up to 5.15.*, from 6.1.97 up to 6.1.*
CVE List
linux linux_kernelbefore 3.13, from 3.14 before 4.19.317, from 4.20 before 5.4.279, from 5.5 before 5.10.221, from 5.11 before 5.15.162, from 5.16 before 6.1.97, from 6.2 before 6.6.37, from 6.7 before 6.9.8NVD

Classification

CWE-401

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: netfilter: nf_tables: fully validate NFT_DATA_VALUE on store to data registers register store validation for NFT_DATA_VALUE is conditional, however, the datatype is always either NFT_DATA_VALUE or NFT_DATA_VERDICT. This only requires a new helper function to infer the register type from the set datatype so this conditional check can be removed. Otherwise, pointer to chain object can be leaked through the registers.

NVD (es)

En el kernel de Linux, se resolvió la siguiente vulnerabilidad: netfilter: nf_tables: validar completamente NFT_DATA_VALUE en la tienda para registros de datos. La validación de la tienda para NFT_DATA_VALUE es condicional; sin embargo, el tipo de datos siempre es NFT_DATA_VALUE o NFT_DATA_VERDICT. Esto solo requiere una nueva función auxiliar para inferir el tipo de registro a partir del tipo de datos establecido para que se pueda eliminar esta verificación condicional. De lo contrario, el puntero al objeto de la cadena se puede filtrar a través de los registros.

References

https://git.kernel.org/stable/c/40188a25a9847dbeb7ec67517174a835a677752fpatch
https://git.kernel.org/stable/c/23752737c6a618e994f9a310ec2568881a6b49c4patch
https://git.kernel.org/stable/c/5d43d789b57943720dca4181a05f6477362b94cfpatch
https://git.kernel.org/stable/c/461302e07f49687ffe7d105fa0a330c07c7646d8patch
https://git.kernel.org/stable/c/efb27ad05949403848f487823b597ed67060e007patch
https://git.kernel.org/stable/c/952bf8df222599baadbd4f838a49c4fef81d2564patch
https://git.kernel.org/stable/c/41a6375d48deaf7f730304b5153848bfa1c2980fpatch
https://git.kernel.org/stable/c/7931d32955e09d0a11b1fe0b6aac1bfa061c005cpatch
https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html
https://cert-portal.siemens.com/productcert/html/ssa-398330.html
https://cert-portal.siemens.com/productcert/html/ssa-265688.html
https://cert-portal.siemens.com/productcert/html/ssa-613116.html

Sources

SourceRecordLicence
CVE ListCVE-2024-42070 changed 2026-10-15CVE Terms of Use
NVDCVE-2024-42070 changed 2026-10-15Public domain