{"id":"CVE-2025-37890","aliases":["CVE-2025-37890"],"related":[],"kind":"vulnerability","state":"published","title":"net_sched: hfsc: Fix a UAF vulnerability in class with netem as child qdisc","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet_sched: hfsc: Fix a UAF vulnerability in class with netem as child qdisc\n\nAs described in Gerrard's report [1], we have a UAF case when an hfsc class\nhas a netem child qdisc. The crux of the issue is that hfsc is assuming\nthat checking for cl->qdisc->q.qlen == 0 guarantees that it hasn't inserted\nthe class in the vttree or eltree (which is not true for the netem\nduplicate case).\n\nThis patch checks the n_active class variable to make sure that the code\nwon't insert the class in the vttree or eltree twice, catering for the\nreentrant case.\n\n[1] https://lore.kernel.org/netdev/CAHcdcOm+03OD2j6R0=YHKqmy=VgJ8xEOKuP6c7mSgnp-TEJJbw@mail.gmail.com/","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet_sched: hfsc: Fix a UAF vulnerability in class with netem as child qdisc\n\nAs described in Gerrard's report [1], we have a UAF case when an hfsc class\nhas a netem child qdisc. The crux of the issue is that hfsc is assuming\nthat checking for cl->qdisc->q.qlen == 0 guarantees that it hasn't inserted\nthe class in the vttree or eltree (which is not true for the netem\nduplicate case).\n\nThis patch checks the n_active class variable to make sure that the code\nwon't insert the class in the vttree or eltree twice, catering for the\nreentrant case.\n\n[1] https://lore.kernel.org/netdev/CAHcdcOm+03OD2j6R0=YHKqmy=VgJ8xEOKuP6c7mSgnp-TEJJbw@mail.gmail.com/","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: net_sched: hfsc: corrige una vulnerabilidad UAF en la clase con netem como qdisc hijo Como se describe en el informe de Gerrard [1], tenemos un caso UAF cuando una clase hfsc tiene una qdisc hijo netem. El quid de la cuestión es que hfsc asume que la comprobación de cl-&gt;qdisc-&gt;q.qlen == 0 garantiza que no ha insertado la clase en vttree o eltree (lo que no es cierto para el caso de duplicado de netem). Este parche comprueba la variable de clase n_active para asegurarse de que el código no inserte la clase en vttree o eltree dos veces, atendiendo al caso reentrante. [1] https://lore.kernel.org/netdev/CAHcdcOm+03OD2j6R0=YHKqmy=VgJ8xEOKuP6c7mSgnp-TEJJbw@mail.gmail.com/","source":"nvd"}],"published":"2025-05-16T13:01:12.798Z","modified":"2026-08-05T11:58:05.817Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-416"],"affected":[{"ranges":[{"type":"git","introduced":"37d9cf1a3ce35de3df6f7d209bfb1f50cf188cea","fixed":"273bbcfa53541cde38b2003ad88a59b770306421","status":"affected"},{"type":"git","introduced":"37d9cf1a3ce35de3df6f7d209bfb1f50cf188cea","fixed":"e0cf8ee23e1915431f262a7b2dee0c7a7d699af0","status":"affected"},{"type":"git","introduced":"37d9cf1a3ce35de3df6f7d209bfb1f50cf188cea","fixed":"e3e949a39a91d1f829a4890e7dfe9417ac72e4d0","status":"affected"},{"type":"git","introduced":"37d9cf1a3ce35de3df6f7d209bfb1f50cf188cea","fixed":"8df7d37d626430035b413b97cee18396b3450bef","status":"affected"},{"type":"git","introduced":"37d9cf1a3ce35de3df6f7d209bfb1f50cf188cea","fixed":"6082a87af4c52f58150d40dec1716011d871ac21","status":"affected"},{"type":"git","introduced":"37d9cf1a3ce35de3df6f7d209bfb1f50cf188cea","fixed":"2e7093c7a8aba5d4f8809f271488e5babe75e202","status":"affected"},{"type":"git","introduced":"37d9cf1a3ce35de3df6f7d209bfb1f50cf188cea","fixed":"ac39fd4a757584d78ed062d4f6fd913f83bd98b5","status":"affected"},{"type":"git","introduced":"37d9cf1a3ce35de3df6f7d209bfb1f50cf188cea","fixed":"141d34391abbb315d68556b7c67ad97885407547","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.0","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.0","status":"unaffected"},{"type":"semver","introduced":"5.4.294","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.238","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.182","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.138","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.90","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.28","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.14.6","lastAffected":"6.14.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.15","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":"5.0.1","fixed":"5.4.294"},{"status":"affected","introduced":"5.5","fixed":"5.10.238"},{"status":"affected","introduced":"5.11","fixed":"5.15.182"},{"status":"affected","introduced":"5.16","fixed":"6.1.138"},{"status":"affected","introduced":"6.2","fixed":"6.6.90"},{"status":"affected","introduced":"6.7","fixed":"6.12.28"},{"status":"affected","introduced":"6.13","fixed":"6.14.6"},{"status":"affected","version":"5.0"},{"status":"affected","version":"5.0"},{"status":"affected","version":"5.0"},{"status":"affected","version":"5.0"},{"status":"affected","version":"5.0"},{"status":"affected","version":"5.0"},{"status":"affected","version":"5.0"},{"status":"affected","version":"6.15"},{"status":"affected","version":"6.15"},{"status":"affected","version":"6.15"},{"status":"affected","version":"6.15"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"11.0"}],"vendor":"debian","product":"debian_linux","cpe":"cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/273bbcfa53541cde38b2003ad88a59b770306421","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e0cf8ee23e1915431f262a7b2dee0c7a7d699af0","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e3e949a39a91d1f829a4890e7dfe9417ac72e4d0","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8df7d37d626430035b413b97cee18396b3450bef","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6082a87af4c52f58150d40dec1716011d871ac21","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2e7093c7a8aba5d4f8809f271488e5babe75e202","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ac39fd4a757584d78ed062d4f6fd913f83bd98b5","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/141d34391abbb315d68556b7c67ad97885407547","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html","tags":["mailing-list"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/08/msg00010.html","tags":["mailing-list"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-06-10T20:42:08.844Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-37890","url":"https://www.cve.org/CVERecord?id=CVE-2025-37890","licence":"CVE Terms of Use","modified":"2026-08-05T11:58:05.817Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-37890","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-37890","licence":"Public domain","modified":"2026-07-30T06:22:28.833Z"}],"updatedAt":"2026-11-25T22:58:58.128Z","epss":{"score":0.00221,"percentile":0.13542,"date":"2026-12-01T12:00:22.000Z"}}