CVE-2025-21711
JSON

5.5medium

net/rose: prevent integer overflows in rose_setsockopt()

Severity
5.5medium CVSS:3.1 by NVD
Exploit likelihood
0.23% (higher than 14% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

In the Linux kernel, the following vulnerability has been resolved: net/rose: prevent integer overflows in rose_setsockopt() In case of possible unpredictably large arguments passed to rose_setsockopt() and multiplied by extra values on top of that, integer overflows may occur. Do the safest minimum and fix these issues by checking the contents of 'opt' and returning -EINVAL if they are too large. Also, switch to unsigned int and remove useless check for negative 'opt' in ROSE_IDLE case.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 4bdd449977e2364a53d0b2a5427e71beb1cd702d, from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before b8583b54455cbec2fc038fa32b6700890b369815, from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 9bdee49ad6bbd26ab5e13cc6731e54fb1b6c1dca, from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 352daa50946c3bbb662432e8daf54d6760796589, from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before d08f4074f9c69f7e95502587eb1b258a965ba7f0, from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before e5338930a29d0ab2a5af402f5f664aeba0d1a676, from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before d640627663bfe7d8963c7615316d7d4ef60f3b0b, 2.6.12
Not affected: before 2.6.12, from 5.10.235 up to 5.10.*, from 5.15.179 up to 5.15.*, from 6.1.129 up to 6.1.*, from 6.6.76 up to 6.6.*, from 6.12.13 up to 6.12.*
CVE List
linux linux_kernelfrom 2.6.12 before 6.1.129, from 6.2 before 6.6.76, from 6.7 before 6.12.13, from 6.13 before 6.13.2NVD

Classification

What each source says

CVE List

In the Linux kernel, the following vulnerability has been resolved: net/rose: prevent integer overflows in rose_setsockopt() In case of possible unpredictably large arguments passed to rose_setsockopt() and multiplied by extra values on top of that, integer overflows may occur. Do the safest minimum and fix these issues by checking the contents of 'opt' and returning -EINVAL if they are too large. Also, switch to unsigned int and remove useless check for negative 'opt' in ROSE_IDLE case.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: net/rose: evitar desbordamientos de números enteros en rose_setsockopt() En caso de que se pasen argumentos impredeciblemente grandes a rose_setsockopt() y se multipliquen por valores adicionales además de eso, pueden ocurrir desbordamientos de números enteros. Haga lo mínimo más seguro y solucione estos problemas comprobando el contenido de 'opt' y devolviendo -EINVAL si es demasiado grande. Además, cambie a int sin signo y elimine la comprobación inútil para 'opt' negativo en el caso de ROSE_IDLE.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-21711 changed 2026-10-15CVE Terms of Use
NVDCVE-2025-21711 changed 2026-06-17Public domain