{"id":"CVE-2021-47125","published":"2024-03-15T20:14:30Z","modified":"2026-05-11T13:48:31Z","title":"sch_htb: fix refcount leak in htb_parent_to_leaf_offload","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nsch_htb: fix refcount leak in htb_parent_to_leaf_offload\n\nThe commit ae81feb7338c (\"sch_htb: fix null pointer dereference\non a null new_q\") fixes a NULL pointer dereference bug, but it\nis not correct.\n\nBecause htb_graft_helper properly handles the case when new_q\nis NULL, and after the previous patch by skipping this call\nwhich creates an inconsistency : dev_queue->qdisc will still\npoint to the old qdisc, but cl->parent->leaf.q will point to\nthe new one (which will be noop_qdisc, because new_q was NULL).\nThe code is based on an assumption that these two pointers are\nthe same, so it can lead to refcount leaks.\n\nThe correct fix is to add a NULL pointer check to protect\nqdisc_refcount_inc inside htb_parent_to_leaf_offload.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00193,"percentile":0.0519,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/2411c02d03892a5057499f8102d0cc1e0f852416","tags":[]},{"url":"https://git.kernel.org/stable/c/944d671d5faa0d78980a3da5c0f04960ef1ad893","tags":[]}],"priority":{"score":1.0,"factors":[{"name":"EPSS percentile","points":1.04}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= ae81feb7338c89cee4e6aa0424bdab2ce2b52da2, < 2411c02d03892a5057499f8102d0cc1e0f852416",">= ae81feb7338c89cee4e6aa0424bdab2ce2b52da2, < 944d671d5faa0d78980a3da5c0f04960ef1ad893"]},{"vendor":"Linux","product":"Linux","versions":["5.12"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-03-18T15:30:07.969096Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2021-33773","exploited":false,"provenance":"source"}}