{"id":"CVE-2023-52581","aliases":["CVE-2023-52581"],"related":[],"kind":"vulnerability","state":"published","title":"netfilter: nf_tables: fix memleak when more than 255 elements expired","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: netfilter: nf_tables: corrige memleak cuando caducan más de 255 elementos Cuando caducan más de 255 elementos, se supone que debemos cambiar a una nueva estructura de contenedor gc. Esto nunca sucede: el tipo u8 se ajustará antes de alcanzar el límite y nft_trans_gc_space() siempre devuelve verdadero. Esto significa que reciclamos la estructura inicial del contenedor gc y perdemos la pista de los elementos anteriores. Mientras lo hace, no elimine 'gc' después de que lo hayamos pasado a call_rcu.","source":"nvd"}],"published":"2024-03-02T21:59:47.856Z","modified":"2026-06-17T06:43:04.583Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:H","score":6.3,"rating":"MEDIUM"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:H","score":6.3,"rating":"MEDIUM"}],"cwes":["CWE-401"],"affected":[{"ranges":[{"type":"git","introduced":"8da1b048f9a501d3d7d38c188ba09d7d0d5b8c27","fixed":"7cf055b43756b10aa2b851c927c940f5ed652125","status":"affected"},{"type":"git","introduced":"bbdb3b65aa91aa0a32b212f27780b28987f2d94f","fixed":"a995a68e8a3b48533e47c856865d109a1f1a9d01","status":"affected"},{"type":"git","introduced":"448be0774882f95a74fa5eb7519761152add601b","fixed":"09c85f2d21ab6b5acba31a037985b13e8e6565b8","status":"affected"},{"type":"git","introduced":"d19e8bf3ea4114dd21fc35da21f398203d7f7df1","fixed":"ef99506eaf1dc31feff1adfcfd68bc5535a22171","status":"affected"},{"type":"git","introduced":"ea3eb9f2192e4fc33b795673e56c97a21987f868","fixed":"7e5d732e6902eb6a37b35480796838a145ae5f07","status":"affected"},{"type":"git","introduced":"5f68718b34a531a556f2f50300ead2862278da26","fixed":"4aea243b6853d06c1d160a9955b759189aa02b14","status":"affected"},{"type":"git","introduced":"5f68718b34a531a556f2f50300ead2862278da26","fixed":"cf5000a7787cbc10341091d37245a42c119d26c5","status":"affected"},{"type":"git","version":"0624f190b5742a1527cd938295caa8dc5281d4cd","status":"affected"},{"type":"semver","introduced":"6.4.11","fixed":"6.5","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.5","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.5","status":"unaffected"},{"type":"semver","introduced":"6.5.6","lastAffected":"6.5.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.6","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"6.5","fixed":"6.5.6"},{"status":"affected","version":"6.6"},{"status":"affected","version":"6.6"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/7cf055b43756b10aa2b851c927c940f5ed652125","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a995a68e8a3b48533e47c856865d109a1f1a9d01","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/09c85f2d21ab6b5acba31a037985b13e8e6565b8","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ef99506eaf1dc31feff1adfcfd68bc5535a22171","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7e5d732e6902eb6a37b35480796838a145ae5f07","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4aea243b6853d06c1d160a9955b759189aa02b14","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/cf5000a7787cbc10341091d37245a42c119d26c5","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-03-05T20:19:37.141Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-52581","url":"https://www.cve.org/CVERecord?id=CVE-2023-52581","licence":"CVE Terms of Use","modified":"2026-05-23T15:26:26.550Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-52581","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-52581","licence":"Public domain","modified":"2026-06-17T06:43:04.583Z"}],"updatedAt":"2026-11-25T22:58:33.184Z","epss":{"score":0.00255,"percentile":0.18185,"date":"2026-12-01T12:00:22.000Z"}}