{
  "threat_severity" : "Moderate",
  "public_date" : "2025-02-27T00:00:00Z",
  "bugzilla" : {
    "description" : "kernel: team: better TEAM_OPTION_TYPE_STRING validation",
    "id" : "2348615",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=2348615"
  },
  "cvss3" : {
    "cvss3_base_score" : "5.5",
    "cvss3_scoring_vector" : "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H",
    "status" : "verified"
  },
  "cwe" : "CWE-908",
  "details" : [ "In the Linux kernel, the following vulnerability has been resolved:\nteam: better TEAM_OPTION_TYPE_STRING validation\nsyzbot reported following splat [1]\nMake sure user-provided data contains one nul byte.\n[1]\nBUG: KMSAN: uninit-value in string_nocheck lib/vsprintf.c:633 [inline]\nBUG: KMSAN: uninit-value in string+0x3ec/0x5f0 lib/vsprintf.c:714\nstring_nocheck lib/vsprintf.c:633 [inline]\nstring+0x3ec/0x5f0 lib/vsprintf.c:714\nvsnprintf+0xa5d/0x1960 lib/vsprintf.c:2843\n__request_module+0x252/0x9f0 kernel/module/kmod.c:149\nteam_mode_get drivers/net/team/team_core.c:480 [inline]\nteam_change_mode drivers/net/team/team_core.c:607 [inline]\nteam_mode_option_set+0x437/0x970 drivers/net/team/team_core.c:1401\nteam_option_set drivers/net/team/team_core.c:375 [inline]\nteam_nl_options_set_doit+0x1339/0x1f90 drivers/net/team/team_core.c:2662\ngenl_family_rcv_msg_doit net/netlink/genetlink.c:1115 [inline]\ngenl_family_rcv_msg net/netlink/genetlink.c:1195 [inline]\ngenl_rcv_msg+0x1214/0x12c0 net/netlink/genetlink.c:1210\nnetlink_rcv_skb+0x375/0x650 net/netlink/af_netlink.c:2543\ngenl_rcv+0x40/0x60 net/netlink/genetlink.c:1219\nnetlink_unicast_kernel net/netlink/af_netlink.c:1322 [inline]\nnetlink_unicast+0xf52/0x1260 net/netlink/af_netlink.c:1348\nnetlink_sendmsg+0x10da/0x11e0 net/netlink/af_netlink.c:1892\nsock_sendmsg_nosec net/socket.c:718 [inline]\n__sock_sendmsg+0x30f/0x380 net/socket.c:733\n____sys_sendmsg+0x877/0xb60 net/socket.c:2573\n___sys_sendmsg+0x28d/0x3c0 net/socket.c:2627\n__sys_sendmsg net/socket.c:2659 [inline]\n__do_sys_sendmsg net/socket.c:2664 [inline]\n__se_sys_sendmsg net/socket.c:2662 [inline]\n__x64_sys_sendmsg+0x212/0x3c0 net/socket.c:2662\nx64_sys_call+0x2ed6/0x3c30 arch/x86/include/generated/asm/syscalls_64.h:47\ndo_syscall_x64 arch/x86/entry/common.c:52 [inline]\ndo_syscall_64+0xcd/0x1e0 arch/x86/entry/common.c:83\nentry_SYSCALL_64_after_hwframe+0x77/0x7f" ],
  "affected_release" : [ {
    "product_name" : "Red Hat Enterprise Linux 9",
    "release_date" : "2025-11-11T00:00:00Z",
    "advisory" : "RHSA-2025:20518",
    "cpe" : "cpe:/a:redhat:enterprise_linux:9",
    "package" : "kernel-0:5.14.0-611.5.1.el9_7"
  }, {
    "product_name" : "Red Hat Enterprise Linux 9",
    "release_date" : "2025-11-11T00:00:00Z",
    "advisory" : "RHSA-2025:20518",
    "cpe" : "cpe:/o:redhat:enterprise_linux:9",
    "package" : "kernel-0:5.14.0-611.5.1.el9_7"
  } ],
  "package_state" : [ {
    "product_name" : "Red Hat Enterprise Linux 10",
    "fix_state" : "Not affected",
    "package_name" : "kernel",
    "cpe" : "cpe:/o:redhat:enterprise_linux:10"
  }, {
    "product_name" : "Red Hat Enterprise Linux 6",
    "fix_state" : "Not affected",
    "package_name" : "kernel",
    "cpe" : "cpe:/o:redhat:enterprise_linux:6"
  }, {
    "product_name" : "Red Hat Enterprise Linux 7",
    "fix_state" : "Not affected",
    "package_name" : "kernel",
    "cpe" : "cpe:/o:redhat:enterprise_linux:7"
  }, {
    "product_name" : "Red Hat Enterprise Linux 7",
    "fix_state" : "Not affected",
    "package_name" : "kernel-rt",
    "cpe" : "cpe:/o:redhat:enterprise_linux:7"
  }, {
    "product_name" : "Red Hat Enterprise Linux 8",
    "fix_state" : "Not affected",
    "package_name" : "kernel",
    "cpe" : "cpe:/o:redhat:enterprise_linux:8"
  }, {
    "product_name" : "Red Hat Enterprise Linux 8",
    "fix_state" : "Not affected",
    "package_name" : "kernel-rt",
    "cpe" : "cpe:/o:redhat:enterprise_linux:8"
  }, {
    "product_name" : "Red Hat Enterprise Linux 9",
    "fix_state" : "Will not fix",
    "package_name" : "kernel-rt",
    "cpe" : "cpe:/o:redhat:enterprise_linux:9"
  } ],
  "references" : [ "https://www.cve.org/CVERecord?id=CVE-2025-21787\nhttps://nvd.nist.gov/vuln/detail/CVE-2025-21787\nhttps://lore.kernel.org/linux-cve-announce/2025022608-CVE-2025-21787-c4f2@gregkh/T" ],
  "name" : "CVE-2025-21787",
  "csaw" : false
}