CVE-2024-27064Published May 1, 2024 · May 1Updated 2d ago
netfilter: nf_tables: Fix a memory leak in nf_tables_updchain
Linux
Medium5.5Fix available
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel's nf_tables_updchain leaks memory allocated for nft_stats if nft_netdev_register_hooks() fails. The input does not specify how an attacker could trigger the failure or whether network access, authentication, or user interaction is required.
Engineers running the Linux kernel should check their deployments; affected versions are not specified.