Files
SKELETONKEY/modules/nft_payload_cve_2023_0179/NOTICE.md
T
leviathan 9d88b475c1
release / build (arm64) (push) Waiting to run
release / build (x86_64) (push) Waiting to run
release / release (push) Blocked by required conditions
v0.3.1: --dump-offsets tool + NOTICE.md per module
The README has been claiming "each module credits the original CVE
reporter and PoC author in its NOTICE.md" since v0.1.0, but only
copy_fail_family actually shipped one. Fixed.

  modules/<name>/NOTICE.md (×19 new + 1 existing): per-module
    research credit covering CVE ID, discoverer, original advisory
    URL where public, upstream fix commit, IAMROOT's role.

  iamroot.c: new --dump-offsets subcommand. Resolves kernel offsets
    via the existing core/offsets.c four-source chain (env →
    /proc/kallsyms → /boot/System.map → embedded table), then emits
    a ready-to-paste C struct entry for kernel_table[]. Run once
    as root on a target kernel build; upstream via PR. Eliminates
    fabricating offsets — every shipped entry traces back to a
    `iamroot --dump-offsets` invocation on a real kernel.

  docs/OFFSETS.md: documents the --dump-offsets workflow.
  CVES.md: notes the NOTICE.md convention + offset dump tool.

  iamroot.c: bump IAMROOT_VERSION 0.3.0 → 0.3.1.
2026-05-16 22:33:43 -04:00

1.3 KiB

NOTICE — nft_payload (CVE-2023-0179)

Vulnerability

CVE-2023-0179nft_payload set/get uses regs->verdict.code as an index into regs->data[] without bounds-checking; combined with the variable-length element extension trick (NFTA_SET_DESC describing elements larger than the key/data slots), an attacker walks regs off either end → OOB R/W on adjacent kernel memory.

Research credit

Discovered and disclosed by Davide Ornaghi, January 2023.

Original slides + writeup: https://github.com/davide-romanini/CVE-2023-0179

  • DEF CON 31 / SecurityFest 2023 presentations.

Upstream fix: mainline 6.2-rc4 (commit 696e1a48b1a1, Jan 2023). Branch backports: 4.14.302 / 4.19.269 / 5.4.229 / 5.10.163 / 5.15.88 / 6.1.6.

IAMROOT role

userns+netns. Hand-rolled nfnetlink batch: NEWTABLE → NEWCHAIN → NEWSET with NFTA_SET_DESC describing variable-length elements → NEWSETELEM with NFTA_SET_ELEM_EXPRESSIONS carrying a payload-set whose attacker-controlled verdict.code drives the OOB index.

Dual cg-96 + 1k msg_msg spray (covers both common adjacency scenarios). --full-chain extends with kaddr-tagged refire aimed at modprobe_path via the shared finisher.

Default OOB index 0x100 matches Ornaghi's PoC on a stock 5.15 build; the sentinel post-check correctly reports failure on builds where regs->data adjacency differs.