# CVE-2023-6040: An out-of-bounds access vulnerability involving netfilter was reported and fixed as: f1082dd31fe4 (netfilter: nf_tables: Reject tables of unsupported family)

- Severity: High 7.8 (CVSS:3.1, scored by canonical) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.31%, higher than 25% of CVEs (2026-12-02)
- Published: 2024-01-12T01:37:45.387Z
- Modified: 2026-06-17T06:49:55.507Z
- Weaknesses: CWE-125
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: canonical

## Description

An out-of-bounds access vulnerability involving netfilter was reported and fixed as: f1082dd31fe4 (netfilter: nf_tables: Reject tables of unsupported family); While creating a new netfilter table, lack of a safeguard against invalid nf_tables family (pf) values within `nf_tables_newtable` function enables an attacker to achieve out-of-bounds access.

(As written by CVE List.)

## Affected

- linux: before 5.18-rc1
- linux linux_kernel: from 4.16 before 4.19.305; from 4.20 before 5.4.267; from 5.5 before 5.10.208; from 5.11 before 5.15.147; from 5.16 before 5.18
- debian debian_linux: 10.0

## Every score

- canonical: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-6040> (issue-tracking, third-party-advisory)
- <https://www.openwall.com/lists/oss-security/2024/01/12/1> (mailing-list, third-party-advisory)
- <http://www.openwall.com/lists/oss-security/2024/01/12/1> (mailing-list, patch, third-party-advisory)
- <http://packetstormsecurity.com/files/177029/Kernel-Live-Patch-Security-Notice-LSN-0100-1.html> (third-party-advisory, vdb-entry)
- <https://lists.debian.org/debian-lts-announce/2024/06/msg00016.html> (mailing-list, third-party-advisory)
- <https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html> (mailing-list, third-party-advisory)

## Sources

- CVE List: [CVE-2023-6040](https://www.cve.org/CVERecord?id=CVE-2023-6040), CVE Terms of Use, modified 2025-06-17
- NVD: [CVE-2023-6040](https://nvd.nist.gov/vuln/detail/CVE-2023-6040), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-6040 · Whole record: https://cve.day/CVE-2023-6040.json · Rebuilt by cve.day 2026-11-25T22:58:32.086Z
