{"id":"CVE-2024-53211","published":"2024-12-27T13:49:57Z","modified":"2026-05-11T20:52:59Z","title":"net/l2tp: fix warning in l2tp_exit_net found by syzbot","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet/l2tp: fix warning in l2tp_exit_net found by syzbot\n\nIn l2tp's net exit handler, we check that an IDR is empty before\ndestroying it:\n\n\tWARN_ON_ONCE(!idr_is_empty(&pn->l2tp_tunnel_idr));\n\tidr_destroy(&pn->l2tp_tunnel_idr);\n\nBy forcing memory allocation failures in idr_alloc_32, syzbot is able\nto provoke a condition where idr_is_empty returns false despite there\nbeing no items in the IDR. This turns out to be because the radix tree\nof the IDR contains only internal radix-tree nodes and it is this that\ncauses idr_is_empty to return false. The internal nodes are cleaned by\nidr_destroy.\n\nUse idr_for_each to check that the IDR is empty instead of\nidr_is_empty to avoid the problem.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00259,"percentile":0.10819,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/a487cc8986d6dd75b60b59004f3bd2ea9b4dd541","tags":[]},{"url":"https://git.kernel.org/stable/c/5d066766c5f1252f98ff859265bcd1a5b52ac46c","tags":[]}],"priority":{"score":2.2,"factors":[{"name":"EPSS percentile","points":2.16}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 73d33bd063c4cfef3db17f9bec3d202928ed8631, < a487cc8986d6dd75b60b59004f3bd2ea9b4dd541",">= 73d33bd063c4cfef3db17f9bec3d202928ed8631, < 5d066766c5f1252f98ff859265bcd1a5b52ac46c"]},{"vendor":"Linux","product":"Linux","versions":["6.12"]}],"euvd":{"id":"EUVD-2024-51883","exploited":false,"provenance":"source"}}