Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Primary rating from GitHub Advisory · only source for this CVE.
CVSS VectorGitHub Advisory
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Lifecycle Timeline
6DescriptionGitHub Advisory
pam_authnft is a PAM session module binding nftables firewall rules to authenticated sessions via cgroupv2 inodes. Prior to 0.2.0-alpha, a heap buffer over-read in peer_lookup_tcp (src/peer_lookup.c:134, prior to the fix) allowed a crafted NETLINK_SOCK_DIAG reply to slip past the message-size check, then dereference past the end of the allocation. This vulnerability is fixed in 0.2.0-alpha.
AnalysisAI
Heap buffer over-read in pam_authnft allows remote denial-of-service via crafted netlink messages. pam_authnft < 0.2.0-alpha contains a CWE-125 buffer over-read in the peer_lookup_tcp function when parsing NETLINK_SOCK_DIAG replies, allowing unauthenticated network attackers to trigger crashes by sending malformed netlink diagnostic messages that bypass message-size validation. This PAM module binds nftables firewall rules to authenticated sessions, so exploitation disrupts authentication infrastructure. Vendor-released patch: 0.2.0-alpha (GitHub PR #10). No public exploit identified at time of analysis.
Technical ContextAI
pam_authnft is a PAM (Pluggable Authentication Modules) session module that integrates Linux nftables firewall rules with user sessions by tracking cgroup v2 inodes. The vulnerability resides in src/peer_lookup.c:134 where peer_lookup_tcp processes netlink socket diagnostic messages (NETLINK_SOCK_DIAG protocol, part of Linux kernel's socket monitoring subsystem). The flaw is a classic CWE-125 heap buffer over-read: the function's message-size check was insufficient to prevent dereferencing memory past the end of the allocated heap buffer when processing specially crafted netlink replies. The CPE identifier cpe:2.3:a:identd-ng:pam_authnft confirms this affects the identd-ng project's PAM authentication NFT integration component. The fix in PR #10 introduced fuzzing harnesses including fuzz_netlink_diag specifically targeting the NETLINK_SOCK_DIAG parsing path, indicating the vendor recognized this attack surface during security hardening.
RemediationAI
Upgrade to pam_authnft version 0.2.0-alpha or later, which contains the fix delivered via GitHub PR #10 (https://github.com/identd-ng/pam_authnft/pull/10). The patch adds comprehensive input validation to peer_lookup_tcp and introduces five new fuzzing harnesses (fuzz_netlink_diag, fuzz_keyring_sanitize, fuzz_correlation_capture, fuzz_cgroup_path, fuzz_socket_inode) to prevent regression. Review the vendor security advisory at https://github.com/identd-ng/pam_authnft/security/advisories/GHSA-5jj5-hm34-78vh for complete remediation steps. If immediate upgrade is not feasible, consider temporarily disabling pam_authnft in PAM configuration files (/etc/pam.d/*) and reverting to static nftables rules, though this eliminates per-session firewall binding and may reduce security posture. Monitor authentication logs for unexpected PAM module crashes. Network-level mitigation is not applicable as netlink sockets are kernel-internal IPC; standard network firewalls do not filter this traffic.
Same weakness CWE-125 – Out-of-bounds Read
View allSame technique Information Disclosure
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-29474