net/sched: sch_fq: fix integer overflow of "credit" (Linux Linux)
En bref
- Source
- NVD
- EPSS
- EPSS 0.21 % · centile 11 ()
- État
- PUBLISHED
- Publiée
- Mise à jour
- Attribuée par
- Linux
- Statut NVD
- Analyzed
Description
In the Linux kernel, the following vulnerability has been resolved: net/sched: sch_fq: fix integer overflow of "credit" if sch_fq is configured with "initial quantum" having values greater than INT_MAX, the first assignment of "credit" does signed integer overflow to a very negative value. In this situation, the syzkaller script provided by Cristoph triggers the CPU soft-lockup warning even with few sockets. It's not an infinite loop, but "credit" wasn't probably meant to be minus 2Gb for each new flow. Capping "initial quantum" to INT_MAX proved to fix the issue. v2: validation of "initial quantum" is done in fq_policy, instead of open coding in fq_change() _ suggested by Jakub Kicinski
Faiblesses (CWE)
- CWE-190 — Débordement d'entier
Références
- https://git.kernel.org/stable/c/4b8a05e3801661a0438fcd0cdef181030d966a5a
- https://git.kernel.org/stable/c/d0b43125ec892aeb1b03e5df5aab595097da225a
- https://git.kernel.org/stable/c/4fbefeab88c6e79753a25099d455d3d59d2946b4
- https://git.kernel.org/stable/c/85f24cb2f10b2b0f2882e5786a09b4790bb3a0ad
- https://git.kernel.org/stable/c/2322462d6f9ad4874f4e3c63df3b5cc00cb1acbd
- https://git.kernel.org/stable/c/7041101ff6c3073fd8f2e99920f535b111c929cb
Scores
| Version | Score | Vecteur | Évalué par |
|---|---|---|---|
| CVSS 3.1 | MEDIUM 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H | NVD · nvd@nist.gov (Primary) |
Références européennes
- ENISA EUVD · EUVD-2025-31980
- GCVE · GCVE-0-2023-53624
Avis du CERT-FR
- CERTFR-2025-AVI-1047 — Multiples vulnérabilités dans le noyau Linux de SUSE · cert.ssi.gouv.fr
Configurations affectées (CPE NVD)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*≥ 3.12 < 5.10.180cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*≥ 5.11 < 5.15.111cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*≥ 5.16 < 6.1.28cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*≥ 6.2 < 6.2.15cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*≥ 6.3 < 6.3.2
Produits affectés
| Produit | Versions |
|---|---|
| Linux · Linux | affected afe4fd062416b158a8a8538b23adc1930a9b88dc < 4b8a05e3801661a0438fcd0cdef181030d966a5a ; affected afe4fd062416b158a8a8538b23adc1930a9b88dc < d0b43125ec892aeb1b03e5df5aab595097da225a ; affected afe4fd062416b158a8a8538b23adc1930a9b88dc < 4fbefeab88c6e79753a25099d455d3d59d2946b4 ; affected afe4fd062416b158a8a8538b23adc1930a9b88dc < 85f24cb2f10b2b0f2882e5786a09b4790bb3a0ad ; affected afe4fd062416b158a8a8538b23adc1930a9b88dc < 2322462d6f9ad4874f4e3c63df3b5cc00cb1acbd ; affected afe4fd062416b158a8a8538b23adc1930a9b88dc < 7041101ff6c3073fd8f2e99920f535b111c929cb |
| Linux · Linux | affected 3.12 ; unaffected 0 < 3.12 ; unaffected 5.10.180 ≤ 5.10.* ; unaffected 5.15.111 ≤ 5.15.* ; unaffected 6.1.28 ≤ 6.1.* ; unaffected 6.2.15 ≤ 6.2.* |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST — attribution requested |
| ENISA EUVD | ENISA — reproduction authorised, source acknowledged |
| CERT-FR (ANSSI) | Licence Ouverte / Etalab 2.0 |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain — this product uses data from the NVD API but is not endorsed or certified by the NVD |