{"id":"CVE-2023-52581","summary":"netfilter: nf_tables: fix memleak when more than 255 elements expired","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nnetfilter: nf_tables: fix memleak when more than 255 elements expired\n\nWhen more than 255 elements expired we're supposed to switch to a new gc\ncontainer structure.\n\nThis never happens: u8 type will wrap before reaching the boundary\nand nft_trans_gc_space() always returns true.\n\nThis means we recycle the initial gc container structure and\nlose track of the elements that came before.\n\nWhile at it, don't deref 'gc' after we've passed it to call_rcu.","modified":"2026-04-02T09:43:02.504993Z","published":"2024-03-02T21:59:47.856Z","related":["ALSA-2024:2394","SUSE-SU-2024:2010-1","SUSE-SU-2024:2183-1","SUSE-SU-2024:2185-1","SUSE-SU-2024:3190-1","SUSE-SU-2024:3194-1","SUSE-SU-2024:3195-1","SUSE-SU-2024:3209-1","SUSE-SU-2024:3383-1","SUSE-SU-2024:3483-1","SUSE-SU-2025:20044-1","SUSE-SU-2025:20047-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/52xxx/CVE-2023-52581.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/09c85f2d21ab6b5acba31a037985b13e8e6565b8"},{"type":"WEB","url":"https://git.kernel.org/stable/c/4aea243b6853d06c1d160a9955b759189aa02b14"},{"type":"WEB","url":"https://git.kernel.org/stable/c/7cf055b43756b10aa2b851c927c940f5ed652125"},{"type":"WEB","url":"https://git.kernel.org/stable/c/7e5d732e6902eb6a37b35480796838a145ae5f07"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a995a68e8a3b48533e47c856865d109a1f1a9d01"},{"type":"WEB","url":"https://git.kernel.org/stable/c/cf5000a7787cbc10341091d37245a42c119d26c5"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ef99506eaf1dc31feff1adfcfd68bc5535a22171"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/52xxx/CVE-2023-52581.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-52581"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"8da1b048f9a501d3d7d38c188ba09d7d0d5b8c27"},{"fixed":"7cf055b43756b10aa2b851c927c940f5ed652125"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"bbdb3b65aa91aa0a32b212f27780b28987f2d94f"},{"fixed":"a995a68e8a3b48533e47c856865d109a1f1a9d01"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"448be0774882f95a74fa5eb7519761152add601b"},{"fixed":"09c85f2d21ab6b5acba31a037985b13e8e6565b8"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"d19e8bf3ea4114dd21fc35da21f398203d7f7df1"},{"fixed":"ef99506eaf1dc31feff1adfcfd68bc5535a22171"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"ea3eb9f2192e4fc33b795673e56c97a21987f868"},{"fixed":"7e5d732e6902eb6a37b35480796838a145ae5f07"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"5f68718b34a531a556f2f50300ead2862278da26"},{"fixed":"4aea243b6853d06c1d160a9955b759189aa02b14"},{"fixed":"cf5000a7787cbc10341091d37245a42c119d26c5"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"0"},{"last_affected":"0624f190b5742a1527cd938295caa8dc5281d4cd"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-52581.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:H"}]}