{"id":"CVE-2025-40083","aliases":["CVE-2025-40083"],"related":[],"kind":"vulnerability","state":"published","title":"net/sched: sch_qfq: Fix null-deref in agg_dequeue","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet/sched: sch_qfq: Fix null-deref in agg_dequeue\n\nTo prevent a potential crash in agg_dequeue (net/sched/sch_qfq.c)\nwhen cl->qdisc->ops->peek(cl->qdisc) returns NULL, we check the return\nvalue before using it, similar to the existing approach in sch_hfsc.c.\n\nTo avoid code duplication, the following changes are made:\n\n1. Changed qdisc_warn_nonwc(include/net/pkt_sched.h) into a static\ninline function.\n\n2. Moved qdisc_peek_len from net/sched/sch_hfsc.c to\ninclude/net/pkt_sched.h so that sch_qfq can reuse it.\n\n3. Applied qdisc_peek_len in agg_dequeue to avoid crashing.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet/sched: sch_qfq: Fix null-deref in agg_dequeue\n\nTo prevent a potential crash in agg_dequeue (net/sched/sch_qfq.c)\nwhen cl->qdisc->ops->peek(cl->qdisc) returns NULL, we check the return\nvalue before using it, similar to the existing approach in sch_hfsc.c.\n\nTo avoid code duplication, the following changes are made:\n\n1. Changed qdisc_warn_nonwc(include/net/pkt_sched.h) into a static\ninline function.\n\n2. Moved qdisc_peek_len from net/sched/sch_hfsc.c to\ninclude/net/pkt_sched.h so that sch_qfq can reuse it.\n\n3. Applied qdisc_peek_len in agg_dequeue to avoid crashing.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nnet/sched: sch_qfq: Corrección de desreferencia nula en agg_dequeue\n\nPara prevenir un posible fallo en agg_dequeue (net/sched/sch_qfq.c) cuando cl->qdisc->ops->peek(cl->qdisc) devuelve NULL, verificamos el valor de retorno antes de usarlo, de forma similar al enfoque existente en sch_hfsc.c.\n\nPara evitar la duplicación de código, se realizan los siguientes cambios:\n\n1. Se cambió qdisc_warn_nonwc(include/net/pkt_sched.h) a una función estática en línea.\n\n2. Se movió qdisc_peek_len de net/sched/sch_hfsc.c a include/net/pkt_sched.h para que sch_qfq pueda reutilizarla.\n\n3. Se aplicó qdisc_peek_len en agg_dequeue para evitar fallos.","source":"nvd"}],"published":"2025-10-29T13:37:01.868Z","modified":"2026-10-19T21:10:00.160Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"462dbc9101acd38e92eda93c0726857517a24bbd","fixed":"71d84658a61322e5630c85c5388fc25e4a2d08b2","status":"affected"},{"type":"git","introduced":"462dbc9101acd38e92eda93c0726857517a24bbd","fixed":"99fc137f178797204d36ac860dd8b31e35baa2df","status":"affected"},{"type":"git","introduced":"462dbc9101acd38e92eda93c0726857517a24bbd","fixed":"1bed56f089f09b465420bf23bb32985c305cfc28","status":"affected"},{"type":"git","introduced":"462dbc9101acd38e92eda93c0726857517a24bbd","fixed":"3c2a8994807623c7655ece205667ae2cf74940aa","status":"affected"},{"type":"git","introduced":"462dbc9101acd38e92eda93c0726857517a24bbd","fixed":"6ffa9d66187188e3068b5a3895e6ae1ee34f9199","status":"affected"},{"type":"git","introduced":"462dbc9101acd38e92eda93c0726857517a24bbd","fixed":"6ff8e74c8f8a68ec07ef837b95425dfe900d060f","status":"affected"},{"type":"git","introduced":"462dbc9101acd38e92eda93c0726857517a24bbd","fixed":"dd831ac8221e691e9e918585b1003c7071df0379","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"3.8","status":"affected"},{"type":"semver","introduced":"0","fixed":"3.8","status":"unaffected"},{"type":"semver","introduced":"5.4.302","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.247","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.197","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.159","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.116","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.57","lastAffected":"6.12.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.16","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/71d84658a61322e5630c85c5388fc25e4a2d08b2","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/99fc137f178797204d36ac860dd8b31e35baa2df","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1bed56f089f09b465420bf23bb32985c305cfc28","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3c2a8994807623c7655ece205667ae2cf74940aa","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6ffa9d66187188e3068b5a3895e6ae1ee34f9199","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6ff8e74c8f8a68ec07ef837b95425dfe900d060f","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/dd831ac8221e691e9e918585b1003c7071df0379","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-06-16T19:42:58.130Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-40083","url":"https://www.cve.org/CVERecord?id=CVE-2025-40083","licence":"CVE Terms of Use","modified":"2026-06-16T19:43:09.432Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-40083","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-40083","licence":"Public domain","modified":"2026-10-19T21:10:00.160Z"}],"updatedAt":"2026-11-25T22:59:06.989Z","epss":{"score":0.00285,"percentile":0.13604,"date":"2026-11-30T12:00:22.000Z"}}