Junglewise Threat Intelligence

CVE-2025-21711: Linux Kernel integer overflow in rose_setsockopt

CVE-2025-21711 · Severity: medium · CVSS 5.5 · Published 2025-02-27

Technologies: Linux Kernel. Vendors: Linux.

Executive brief

A vulnerability in the Linux kernel's ROSE networking protocol could allow a local user to cause a system crash. The ROSE protocol is used for amateur radio packet networking. By providing unexpectedly large configuration values, an attacker can trigger an internal calculation error that disrupts system stability.

Technical details

An integer overflow vulnerability exists in net/rose/af_rose.c within the rose_setsockopt() function. The issue stems from insufficient validation of the 'opt' argument provided by userspace; when this value is multiplied by internal constants (like HZ or 60 * HZ) to set socket timeouts (T1, T2, T3, IDLE, etc.), it can wrap around. A local attacker with permissions to create ROSE sockets can exploit this to set invalid timer values, potentially leading to kernel instability or a denial of service. The fix introduces bounds checking against UINT_MAX / HZ and switches the variable type to unsigned int to prevent signed integer issues.

Affected products

  • Linux Linux Kernel 2.6.12 to 6.1.129, 6.2 to 6.6.76, 6.7 to 6.12.13, 6.13 to 6.13.2

Timeline

  • 2025-01-15: other: Patch submitted by Nikita Zhandarovich
  • 2025-02-26: disclosed: CVE assigned and published by kernel.org
  • 2025-02-27: advisory: NVD publication date

References

Related threats