netfilter: iptables: Fix potential null-ptr-deref in ip6table_nat_table_init(). (Linux Linux)

CVE-2024-42269
MEDIUM 5.5

At a glance

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

Description

In the Linux kernel, the following vulnerability has been resolved: netfilter: iptables: Fix potential null-ptr-deref in ip6table_nat_table_init(). ip6table_nat_table_init() accesses net->gen->ptr[ip6table_nat_net_ops.id], but the function is exposed to user space before the entry is allocated via register_pernet_subsys(). Let's call register_pernet_subsys() before xt_register_template().

Weaknesses (CWE)

  • CWE-476 — NULL Pointer Dereference

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 fdacd57c79b79a03c7ca88f706ad9fb7b46831c1 < 419ee6274c5153b89c4393c1946faa4c3cad4f9e ; affected fdacd57c79b79a03c7ca88f706ad9fb7b46831c1 < 91b6df6611b7edb28676c4f63f90c56c30d3e601 ; affected fdacd57c79b79a03c7ca88f706ad9fb7b46831c1 < e85b9b6a87be4cb3710082038b677e97f2389003 ; affected fdacd57c79b79a03c7ca88f706ad9fb7b46831c1 < 87dba44e9471b79b255d0736858a897332db9226 ; affected fdacd57c79b79a03c7ca88f706ad9fb7b46831c1 < c22921df777de5606f1047b1345b8d22ef1c0b34
Linux · Linuxaffected 5.15 ; unaffected 0 < 5.15 ; unaffected 5.15.165 ≤ 5.15.* ; unaffected 6.1.104 ≤ 6.1.* ; unaffected 6.6.45 ≤ 6.6.* ; unaffected 6.10.4 ≤ 6.10.*

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