netfilter: nf_tables: fully validate NFT_DATA_VALUE on store to data registers (Linux Linux)

CVE-2024-42070
MEDIUM 5.5

At a glance

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

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.

Weaknesses (CWE)

  • CWE-401 — Missing Release of Memory after Effective Lifetime

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 96518518cc417bb0a8c80b9fb736202e28acdf96 < 40188a25a9847dbeb7ec67517174a835a677752f ; affected 96518518cc417bb0a8c80b9fb736202e28acdf96 < 23752737c6a618e994f9a310ec2568881a6b49c4 ; affected 96518518cc417bb0a8c80b9fb736202e28acdf96 < 5d43d789b57943720dca4181a05f6477362b94cf ; affected 96518518cc417bb0a8c80b9fb736202e28acdf96 < 461302e07f49687ffe7d105fa0a330c07c7646d8 ; affected 96518518cc417bb0a8c80b9fb736202e28acdf96 < efb27ad05949403848f487823b597ed67060e007 ; affected 96518518cc417bb0a8c80b9fb736202e28acdf96 < 952bf8df222599baadbd4f838a49c4fef81d2564
Linux · Linuxaffected 3.13 ; unaffected 0 < 3.13 ; unaffected 4.19.317 ≤ 4.19.* ; unaffected 5.4.279 ≤ 5.4.* ; unaffected 5.10.221 ≤ 5.10.* ; unaffected 5.15.162 ≤ 5.15.*

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