# CVE-2025-21787: team: better TEAM\_OPTION\_TYPE\_STRING validation

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.31% (percentile 16, 2026-11-26)
- **CWE:** CWE-908
- **Published:** 2025-02-27T02:18:26.875Z
- **Modified:** 2026-10-15T02:17:35.443Z

## Who should check

- Anyone running Linux \>= 3d249d4ca7d0ed6629a135ea1ea21c72286c0d80, \< 7c30483d0f6bdb2230e10e3e4be5167927eac7a0; \>= 3d249d4ca7d0ed6629a135ea1ea21c72286c0d80, \< 7f5af50f3aa0af8cbef9fb76fffeed69e8143f59; \>= 3d249d4ca7d0ed6629a135ea1ea21c72286c0d80, \< f443687ad20c70320d1248f35f57bf46cac8df0a; \>= 3d249d4ca7d0ed6629a135ea1ea21c72286c0d80, \< 4512482e4805dd30bc77dec511f2a2edba5cb868; \>= 3d249d4ca7d0ed6629a135ea1ea21c72286c0d80, \< d071a91fa614ecdf760c29f61f6a7bfb7df796d6; \>= 3d249d4ca7d0ed6629a135ea1ea21c72286c0d80, \< 4236bf4716589558cc0f3c3612642b2c2141b04e; \>= 3d249d4ca7d0ed6629a135ea1ea21c72286c0d80, \< 8401cade1918281177974b32c925afdce750d292; \>= 3d249d4ca7d0ed6629a135ea1ea21c72286c0d80, \< 5bef3ac184b5626ea62385d6b82a1992b89d7940
- Anyone running Linux 3.3

## Description

In the Linux kernel, the following vulnerability has been resolved:

team: better TEAM\_OPTION\_TYPE\_STRING validation

syzbot reported following splat \[1\]

Make sure user-provided data contains one nul byte.

\[1\]
 BUG: KMSAN: uninit-value in string\_nocheck lib/vsprintf.c:633 \[inline\]
 BUG: KMSAN: uninit-value in string+0x3ec/0x5f0 lib/vsprintf.c:714
  string\_nocheck lib/vsprintf.c:633 \[inline\]
  string+0x3ec/0x5f0 lib/vsprintf.c:714
  vsnprintf+0xa5d/0x1960 lib/vsprintf.c:2843
  \_\_request\_module+0x252/0x9f0 kernel/module/kmod.c:149
  team\_mode\_get drivers/net/team/team\_core.c:480 \[inline\]
  team\_change\_mode drivers/net/team/team\_core.c:607 \[inline\]
  team\_mode\_option\_set+0x437/0x970 drivers/net/team/team\_core.c:1401
  team\_option\_set drivers/net/team/team\_core.c:375 \[inline\]
  team\_nl\_options\_set\_doit+0x1339/0x1f90 drivers/net/team/team\_core.c:2662
  genl\_family\_rcv\_msg\_doit net/netlink/genetlink.c:1115 \[inline\]
  genl\_family\_rcv\_msg net/netlink/genetlink.c:1195 \[inline\]
  genl\_rcv\_msg+0x1214/0x12c0 net/netlink/genetlink.c:1210
  netlink\_rcv\_skb+0x375/0x650 net/netlink/af\_netlink.c:2543
  genl\_rcv+0x40/0x60 net/netlink/genetlink.c:1219
  netlink\_unicast\_kernel net/netlink/af\_netlink.c:1322 \[inline\]
  netlink\_unicast+0xf52/0x1260 net/netlink/af\_netlink.c:1348
  netlink\_sendmsg+0x10da/0x11e0 net/netlink/af\_netlink.c:1892
  sock\_sendmsg\_nosec net/socket.c:718 \[inline\]
  \_\_sock\_sendmsg+0x30f/0x380 net/socket.c:733
  \_\_\_\_sys\_sendmsg+0x877/0xb60 net/socket.c:2573
  \_\_\_sys\_sendmsg+0x28d/0x3c0 net/socket.c:2627
  \_\_sys\_sendmsg net/socket.c:2659 \[inline\]
  \_\_do\_sys\_sendmsg net/socket.c:2664 \[inline\]
  \_\_se\_sys\_sendmsg net/socket.c:2662 \[inline\]
  \_\_x64\_sys\_sendmsg+0x212/0x3c0 net/socket.c:2662
  x64\_sys\_call+0x2ed6/0x3c30 arch/x86/include/generated/asm/syscalls\_64.h:47
  do\_syscall\_x64 arch/x86/entry/common.c:52 \[inline\]
  do\_syscall\_64+0xcd/0x1e0 arch/x86/entry/common.c:83
 entry\_SYSCALL\_64\_after\_hwframe+0x77/0x7f

## Affected and fixed versions

- Linux: \>= 3d249d4ca7d0ed6629a135ea1ea21c72286c0d80, \< 7c30483d0f6bdb2230e10e3e4be5167927eac7a0; \>= 3d249d4ca7d0ed6629a135ea1ea21c72286c0d80, \< 7f5af50f3aa0af8cbef9fb76fffeed69e8143f59; \>= 3d249d4ca7d0ed6629a135ea1ea21c72286c0d80, \< f443687ad20c70320d1248f35f57bf46cac8df0a; \>= 3d249d4ca7d0ed6629a135ea1ea21c72286c0d80, \< 4512482e4805dd30bc77dec511f2a2edba5cb868; \>= 3d249d4ca7d0ed6629a135ea1ea21c72286c0d80, \< d071a91fa614ecdf760c29f61f6a7bfb7df796d6; \>= 3d249d4ca7d0ed6629a135ea1ea21c72286c0d80, \< 4236bf4716589558cc0f3c3612642b2c2141b04e; \>= 3d249d4ca7d0ed6629a135ea1ea21c72286c0d80, \< 8401cade1918281177974b32c925afdce750d292; \>= 3d249d4ca7d0ed6629a135ea1ea21c72286c0d80, \< 5bef3ac184b5626ea62385d6b82a1992b89d7940 (cvelist)
- Linux: 3.3 (cvelist)

## Mitigation

- Upgrade Linux to 5bef3ac184b5626ea62385d6b82a1992b89d7940 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-21787. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-21787.md
Affected: Linux >= 3d249d4ca7d0ed6629a135ea1ea21c72286c0d80, < 7c30483d0f6bdb2230e10e3e4be5167927eac7a0; >= 3d249d4ca7d0ed6629a135ea1ea21c72286c0d80, < 7f5af50f3aa0af8cbef9fb76fffeed69e8143f59; >= 3d249d4ca7d0ed6629a135ea1ea21c72286c0d80, < f443687ad20c70320d1248f35f57bf46cac8df0a; >= 3d249d4ca7d0ed6629a135e…
Fixed in: Linux 7c30483d0f6bdb2230e10e3e4be5167927eac7a0, Linux 7f5af50f3aa0af8cbef9fb76fffeed69e8143f59, Linux 4512482e4805dd30bc77dec511f2a2edba5cb868, Linux 4236bf4716589558cc0f3c3612642b2c2141b04e, Linux 8401cade1918281177974b32c925afdce750d292, Linux 5bef3ac184b5626ea62385d6b82a1992b89d7940

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-21787 being exploited?

There is no confirmed exploitation: CVE-2025-21787 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.31% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-21787?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-21787?

Linux \>= 3d249d4ca7d0ed6629a135ea1ea21c72286c0d80, \< 7c30483d0f6bdb2230e10e3e4be5167927eac7a0; \>= 3d249d4ca7d0ed6629a135ea1ea21c72286c0d80, \< 7f5af50f3aa0af8cbef9fb76fffeed69e8143f59; \>= 3d249d4ca7d0ed6629a135ea1ea21c72286c0d80, \< f443687ad20c70320d1248f35f57bf46cac8df0a; \>= 3d249d4ca7d0ed6629a135ea1ea21c72286c0d80, \< 4512482e4805dd30bc77dec511f2a2edba5cb868; \>= 3d249d4ca7d0ed6629a135ea1ea21c72286c0d80, \< d071a91fa614ecdf760c29f61f6a7bfb7df796d6; \>= 3d249d4ca7d0ed6629a135ea1ea21c72286c0d80, \< 4236bf4716589558cc0f3c3612642b2c2141b04e; \>= 3d249d4ca7d0ed6629a135ea1ea21c72286c0d80, \< 8401cade1918281177974b32c925afdce750d292; \>= 3d249d4ca7d0ed6629a135ea1ea21c72286c0d80, \< 5bef3ac184b5626ea62385d6b82a1992b89d7940; Linux 3.3.

### Is there a fix for CVE-2025-21787?

Yes. Fixed in Linux 7c30483d0f6bdb2230e10e3e4be5167927eac7a0, Linux 7f5af50f3aa0af8cbef9fb76fffeed69e8143f59, Linux 4512482e4805dd30bc77dec511f2a2edba5cb868, Linux 4236bf4716589558cc0f3c3612642b2c2141b04e, Linux 8401cade1918281177974b32c925afdce750d292, Linux 5bef3ac184b5626ea62385d6b82a1992b89d7940. Upgrade Linux to 5bef3ac184b5626ea62385d6b82a1992b89d7940 or later.

### How do I check if I'm affected by CVE-2025-21787?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/4512482e4805dd30bc77dec511f2a2edba5cb868>
- patch: <https://git.kernel.org/stable/c/d071a91fa614ecdf760c29f61f6a7bfb7df796d6>
- patch: <https://git.kernel.org/stable/c/4236bf4716589558cc0f3c3612642b2c2141b04e>
- patch: <https://git.kernel.org/stable/c/8401cade1918281177974b32c925afdce750d292>
- patch: <https://git.kernel.org/stable/c/5bef3ac184b5626ea62385d6b82a1992b89d7940>
- other: <https://git.kernel.org/stable/c/7c30483d0f6bdb2230e10e3e4be5167927eac7a0>
- other: <https://git.kernel.org/stable/c/7f5af50f3aa0af8cbef9fb76fffeed69e8143f59>
- other: <https://git.kernel.org/stable/c/f443687ad20c70320d1248f35f57bf46cac8df0a>
- other: <https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/03/msg00028.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-265688.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-784472.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-21787>

HTML: <https://flawdb.com/CVE-2025-21787> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-21787>
