In the Linux kernel, the following vulnerability has been resolved:
netsched: schsfq: move the limit validation
It is not sufficient to directly validate the limit on the data that the user passes as it can be updated based on how the other parameters are changed.
Move the check at the end of the configuration update process to also catch scenarios where the limit is indirectly updated, for example with the following configurations:
tc qdisc add dev dummy0 handle 1: root sfq limit 2 flows 1 depth 1 tc qdisc add dev dummy0 handle 1: root sfq limit 2 flows 1 divisor 1
This fixes the following syzkaller reported crash:
------------[ cut here ]------------ UBSAN: array-index-out-of-bounds in net/sched/schsfq.c:203:6 index 65535 is out of range for type 'struct sfqhead[128]' CPU: 1 UID: 0 PID: 3037 Comm: syz.2.16 Not tainted 6.14.0-rc2-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024 Call Trace: <TASK> _dumpstack lib/dumpstack.c:94 [inline] dumpstacklvl+0x201/0x300 lib/dumpstack.c:120 ubsanepilogue lib/ubsan.c:231 [inline] _ubsanhandleoutofbounds+0xf5/0x120 lib/ubsan.c:429 sfqlink net/sched/schsfq.c:203 [inline] sfqdec+0x53c/0x610 net/sched/schsfq.c:231 sfqdequeue+0x34e/0x8c0 net/sched/schsfq.c:493 sfqreset+0x17/0x60 net/sched/schsfq.c:518 qdiscreset+0x12e/0x600 net/sched/schgeneric.c:1035 tbfreset+0x41/0x110 net/sched/schtbf.c:339 qdiscreset+0x12e/0x600 net/sched/schgeneric.c:1035 devresetqueue+0x100/0x1b0 net/sched/schgeneric.c:1311 netdevforeachtxqueue include/linux/netdevice.h:2590 [inline] devdeactivatemany+0x7e5/0xe70 net/sched/schgeneric.c:1375
[
{
"id": "CVE-2025-37752-14a483c9",
"deprecated": false,
"signature_version": "v1",
"signature_type": "Line",
"target": {
"file": "net/sched/sch_sfq.c"
},
"digest": {
"line_hashes": [
"28757591488293038969130805761255313741",
"248821064266667969868613349784691052776",
"151141669484108820527908550919743115655",
"113854419271722784781797958269006837410",
"148595085722002126066384819280877718903",
"23920130729390473254096580054339352153",
"158832190760873205036514878408751879607",
"193063347493775447227763143944313935909",
"208247108737294116551706722027522965082",
"293965041930665139134565349876139259009",
"221779049307622159456431817986558285521"
],
"threshold": 0.9
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b36a68192037d1614317a09b0d78c7814e2eecf9"
},
{
"id": "CVE-2025-37752-1bc25bac",
"deprecated": false,
"signature_version": "v1",
"signature_type": "Function",
"target": {
"file": "net/sched/sch_sfq.c",
"function": "sfq_change"
},
"digest": {
"function_hash": "63375564458207847569189708481757962579",
"length": 2477.0
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d2718324f9e329b10ddc091fba5a0ba2b9d4d96a"
},
{
"id": "CVE-2025-37752-387381a3",
"deprecated": false,
"signature_version": "v1",
"signature_type": "Line",
"target": {
"file": "net/sched/sch_sfq.c"
},
"digest": {
"line_hashes": [
"28757591488293038969130805761255313741",
"248821064266667969868613349784691052776",
"151141669484108820527908550919743115655",
"113854419271722784781797958269006837410",
"148595085722002126066384819280877718903",
"23920130729390473254096580054339352153",
"158832190760873205036514878408751879607",
"193063347493775447227763143944313935909",
"208247108737294116551706722027522965082",
"293965041930665139134565349876139259009",
"221779049307622159456431817986558285521"
],
"threshold": 0.9
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@5e5e1fcc1b8ed57f902c424c5d9b328a3a19073d"
},
{
"id": "CVE-2025-37752-4464e479",
"deprecated": false,
"signature_version": "v1",
"signature_type": "Line",
"target": {
"file": "net/sched/sch_sfq.c"
},
"digest": {
"line_hashes": [
"28757591488293038969130805761255313741",
"248821064266667969868613349784691052776",
"151141669484108820527908550919743115655",
"113854419271722784781797958269006837410",
"148595085722002126066384819280877718903",
"23920130729390473254096580054339352153",
"158832190760873205036514878408751879607",
"193063347493775447227763143944313935909",
"208247108737294116551706722027522965082",
"293965041930665139134565349876139259009",
"221779049307622159456431817986558285521"
],
"threshold": 0.9
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@1348214fa042a71406964097e743c87a42c85a49"
},
{
"id": "CVE-2025-37752-4b95732c",
"deprecated": false,
"signature_version": "v1",
"signature_type": "Line",
"target": {
"file": "net/sched/sch_sfq.c"
},
"digest": {
"line_hashes": [
"28757591488293038969130805761255313741",
"248821064266667969868613349784691052776",
"151141669484108820527908550919743115655",
"113854419271722784781797958269006837410",
"148595085722002126066384819280877718903",
"23920130729390473254096580054339352153",
"158832190760873205036514878408751879607",
"193063347493775447227763143944313935909",
"208247108737294116551706722027522965082",
"293965041930665139134565349876139259009",
"221779049307622159456431817986558285521"
],
"threshold": 0.9
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d2718324f9e329b10ddc091fba5a0ba2b9d4d96a"
},
{
"id": "CVE-2025-37752-56719bff",
"deprecated": false,
"signature_version": "v1",
"signature_type": "Line",
"target": {
"file": "net/sched/sch_sfq.c"
},
"digest": {
"line_hashes": [
"28757591488293038969130805761255313741",
"248821064266667969868613349784691052776",
"151141669484108820527908550919743115655",
"113854419271722784781797958269006837410",
"148595085722002126066384819280877718903",
"23920130729390473254096580054339352153",
"158832190760873205036514878408751879607",
"193063347493775447227763143944313935909",
"208247108737294116551706722027522965082",
"293965041930665139134565349876139259009",
"221779049307622159456431817986558285521"
],
"threshold": 0.9
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6c589aa318023690f1606c666a7fb5f4c1c9c219"
},
{
"id": "CVE-2025-37752-57bd6030",
"deprecated": false,
"signature_version": "v1",
"signature_type": "Function",
"target": {
"file": "net/sched/sch_sfq.c",
"function": "sfq_change"
},
"digest": {
"function_hash": "63375564458207847569189708481757962579",
"length": 2477.0
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@1348214fa042a71406964097e743c87a42c85a49"
},
{
"id": "CVE-2025-37752-70c40e45",
"deprecated": false,
"signature_version": "v1",
"signature_type": "Line",
"target": {
"file": "net/sched/sch_sfq.c"
},
"digest": {
"line_hashes": [
"28757591488293038969130805761255313741",
"248821064266667969868613349784691052776",
"151141669484108820527908550919743115655",
"113854419271722784781797958269006837410",
"148595085722002126066384819280877718903",
"23920130729390473254096580054339352153",
"158832190760873205036514878408751879607",
"193063347493775447227763143944313935909",
"208247108737294116551706722027522965082",
"293965041930665139134565349876139259009",
"221779049307622159456431817986558285521"
],
"threshold": 0.9
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8fadc871a42933aacb7f1ce9ed9a96485e2c9cf4"
},
{
"id": "CVE-2025-37752-857b94c9",
"deprecated": false,
"signature_version": "v1",
"signature_type": "Function",
"target": {
"file": "net/sched/sch_sfq.c",
"function": "sfq_change"
},
"digest": {
"function_hash": "63375564458207847569189708481757962579",
"length": 2477.0
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7d62ded97db6b7c94c891f704151f372b1ba4688"
},
{
"id": "CVE-2025-37752-9699a667",
"deprecated": false,
"signature_version": "v1",
"signature_type": "Function",
"target": {
"file": "net/sched/sch_sfq.c",
"function": "sfq_change"
},
"digest": {
"function_hash": "63375564458207847569189708481757962579",
"length": 2477.0
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b36a68192037d1614317a09b0d78c7814e2eecf9"
},
{
"id": "CVE-2025-37752-b611eb34",
"deprecated": false,
"signature_version": "v1",
"signature_type": "Line",
"target": {
"file": "net/sched/sch_sfq.c"
},
"digest": {
"line_hashes": [
"28757591488293038969130805761255313741",
"248821064266667969868613349784691052776",
"151141669484108820527908550919743115655",
"113854419271722784781797958269006837410",
"148595085722002126066384819280877718903",
"23920130729390473254096580054339352153",
"158832190760873205036514878408751879607",
"193063347493775447227763143944313935909",
"208247108737294116551706722027522965082",
"293965041930665139134565349876139259009",
"221779049307622159456431817986558285521"
],
"threshold": 0.9
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f86293adce0c201cfabb283ef9d6f21292089bb8"
},
{
"id": "CVE-2025-37752-bdfe7973",
"deprecated": false,
"signature_version": "v1",
"signature_type": "Function",
"target": {
"file": "net/sched/sch_sfq.c",
"function": "sfq_change"
},
"digest": {
"function_hash": "63375564458207847569189708481757962579",
"length": 2477.0
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@5e5e1fcc1b8ed57f902c424c5d9b328a3a19073d"
},
{
"id": "CVE-2025-37752-bfa3cec1",
"deprecated": false,
"signature_version": "v1",
"signature_type": "Function",
"target": {
"file": "net/sched/sch_sfq.c",
"function": "sfq_change"
},
"digest": {
"function_hash": "63375564458207847569189708481757962579",
"length": 2477.0
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f86293adce0c201cfabb283ef9d6f21292089bb8"
},
{
"id": "CVE-2025-37752-c0ff1420",
"deprecated": false,
"signature_version": "v1",
"signature_type": "Function",
"target": {
"file": "net/sched/sch_sfq.c",
"function": "sfq_change"
},
"digest": {
"function_hash": "63375564458207847569189708481757962579",
"length": 2477.0
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8fadc871a42933aacb7f1ce9ed9a96485e2c9cf4"
},
{
"id": "CVE-2025-37752-c5c1ac68",
"deprecated": false,
"signature_version": "v1",
"signature_type": "Line",
"target": {
"file": "net/sched/sch_sfq.c"
},
"digest": {
"line_hashes": [
"28757591488293038969130805761255313741",
"248821064266667969868613349784691052776",
"151141669484108820527908550919743115655",
"113854419271722784781797958269006837410",
"148595085722002126066384819280877718903",
"23920130729390473254096580054339352153",
"158832190760873205036514878408751879607",
"193063347493775447227763143944313935909",
"208247108737294116551706722027522965082",
"293965041930665139134565349876139259009",
"221779049307622159456431817986558285521"
],
"threshold": 0.9
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b3bf8f63e6179076b57c9de660c9f80b5abefe70"
},
{
"id": "CVE-2025-37752-ebc745ec",
"deprecated": false,
"signature_version": "v1",
"signature_type": "Line",
"target": {
"file": "net/sched/sch_sfq.c"
},
"digest": {
"line_hashes": [
"28757591488293038969130805761255313741",
"248821064266667969868613349784691052776",
"151141669484108820527908550919743115655",
"113854419271722784781797958269006837410",
"148595085722002126066384819280877718903",
"23920130729390473254096580054339352153",
"158832190760873205036514878408751879607",
"193063347493775447227763143944313935909",
"208247108737294116551706722027522965082",
"293965041930665139134565349876139259009",
"221779049307622159456431817986558285521"
],
"threshold": 0.9
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7d62ded97db6b7c94c891f704151f372b1ba4688"
},
{
"id": "CVE-2025-37752-f98aa62f",
"deprecated": false,
"signature_version": "v1",
"signature_type": "Function",
"target": {
"file": "net/sched/sch_sfq.c",
"function": "sfq_change"
},
"digest": {
"function_hash": "63375564458207847569189708481757962579",
"length": 2477.0
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6c589aa318023690f1606c666a7fb5f4c1c9c219"
},
{
"id": "CVE-2025-37752-f9fc38e6",
"deprecated": false,
"signature_version": "v1",
"signature_type": "Function",
"target": {
"file": "net/sched/sch_sfq.c",
"function": "sfq_change"
},
"digest": {
"function_hash": "63375564458207847569189708481757962579",
"length": 2477.0
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b3bf8f63e6179076b57c9de660c9f80b5abefe70"
}
]