{"id":"CVE-2024-50212","published":"2024-11-09T10:14:24Z","modified":"2026-05-11T20:47:35Z","title":"lib: alloc_tag_module_unload must wait for pending kfree_rcu calls","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nlib: alloc_tag_module_unload must wait for pending kfree_rcu calls\n\nBen Greear reports following splat:\n ------------[ cut here ]------------\n net/netfilter/nf_nat_core.c:1114 module nf_nat func:nf_nat_register_fn has 256 allocated at module unload\n WARNING: CPU: 1 PID: 10421 at lib/alloc_tag.c:168 alloc_tag_module_unload+0x22b/0x3f0\n Modules linked in: nf_nat(-) btrfs ufs qnx4 hfsplus hfs minix vfat msdos fat\n...\n Hardware name: Default string Default string/SKYBAY, BIOS 5.12 08/04/2020\n RIP: 0010:alloc_tag_module_unload+0x22b/0x3f0\n  codetag_unload_module+0x19b/0x2a0\n  ? codetag_load_module+0x80/0x80\n\nnf_nat module exit calls kfree_rcu on those addresses, but the free\noperation is likely still pending by the time alloc_tag checks for leaks.\n\nWait for outstanding kfree_rcu operations to complete before checking\nresolves this warning.\n\nReproducer:\nunshare -n iptables-nft -t nat -A PREROUTING -p tcp\ngrep nf_nat /proc/allocinfo # will list 4 allocations\nrmmod nft_chain_nat\nrmmod nf_nat                # will WARN.\n\n[akpm@linux-foundation.org: add comment]","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00259,"percentile":0.1082,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/24211fb49c9ac1b576470b7e393a5a0b50af2707","tags":[]},{"url":"https://git.kernel.org/stable/c/dc783ba4b9df3fb3e76e968b2cbeb9960069263c","tags":[]}],"priority":{"score":2.2,"factors":[{"name":"EPSS percentile","points":2.16}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= a473573964e51dcb6efc182f773cd3924be4a184, < 24211fb49c9ac1b576470b7e393a5a0b50af2707",">= a473573964e51dcb6efc182f773cd3924be4a184, < dc783ba4b9df3fb3e76e968b2cbeb9960069263c"]},{"vendor":"Linux","product":"Linux","versions":["6.10"]}],"euvd":{"id":"EUVD-2024-44714","exploited":false,"provenance":"source"}}