HighCVE-2025-21858

    Linux Kernel: Use-After-Free (CVE-2025-21858)

    Published Last modified Sources: Siemens ProductCERT, Ubuntu, BSI, SUSE, Debian LTS, Red Hat, Debian, CVE.org, Msrc Update Guide, EUVD

    What is affected, what to do

    In the Linux kernel, the following vulnerability has been resolved: geneve: Fix use-after-free in geneve_find_dev(). syzkaller reported a use-after-free in geneve_find_dev() [0] without repro. geneve_configure() links struct geneve_dev.next to net_generic(net, geneve_net_id)->geneve_list. The net here could differ from dev_net(dev) if IFLA_NET_NS_PID, IFLA_NET_NS_FD, or IFLA_TARGET_NETNSID is set.

    Update Linux Kernel to version 5.4.291, Linux Kernel to version 5.10.235, Linux Kernel to version 5.15.179.

    Affected
    • Linux Kernel lt 4.2..5.4.291
    • Linux Kernel lt 5.5..5.10.235
    • Linux Kernel lt 5.11..5.15.179
    • Linux Kernel lt 5.16..6.1.130
    • Linux Kernel lt 6.2..6.6.80
    • Linux Kernel lt 6.7..6.12.17
    • Linux Kernel lt 6.13..6.13.5
    Fixed in
    • Linux Kernel 5.4.291
    • Linux Kernel 5.10.235
    • Linux Kernel 5.15.179
    • Linux Kernel 6.1.130
    • Linux Kernel 6.6.80
    • Linux Kernel 6.12.17
    • Linux Kernel 6.13.5
    • Linux Kernel 6.14

    Not sure whether and how you are affected? Ask a question about this vulnerability

    Metrics

    7.8

    Priority

    XIEM Effective CVSS: highest available CVSS rating from NVD and vendor data.

    Source: NVD, CVSS v3

    7.8

    CVSS v3

    Severity High on the scale from 0 to 10.

    Source: Siemens ProductCERT, Ubuntu, BSI, SUSE, Debian LTS, Red Hat, Debian, CVE.org, Msrc Update Guide, EUVD

    0.3 %

    EPSS score

    Low — model estimates < 1% exploitation likelihood.

    Source: FIRST EPSS, percentile 16.4

    Show all metrics
    Severity
    High
    Priority (0–325)

    The priority score is a consolidated metric that condenses several individual signals into a single, action-guiding ranking: technical severity (CVSS), exploitation likelihood (EPSS), known-exploited status (KEV) and the context of the affected asset. The aim is to answer the only truly important question in vulnerability management: what first?

    Read in glossary
    49.30 Methodology
    Exploit maturity

    An exploit is code or a technique that specifically uses a concrete vulnerability to force unintended behaviour — such as executing code or escalating privileges. It is the tool that turns a theoretical flaw into a practical attack.

    Read in glossary
    no public PoC known
    XIEM Effective CVSS

    XIEM® is the tiered managed-security operating model from NEOSEC and a registered trademark of NEOSEC GmbH. It extends classic SIEM — the central collection, normalisation and correlation of security-relevant events — with endpoint forensics, network visibility and deception technology, and consolidates them into three building tiers: Sentry, Orchestrate and Command.

    Read in glossary
    7.8 Methodology
    CVSS v3

    CVSS is the globally established, open standard for assessing the technical severity of a vulnerability on a scale from 0 to 10. It describes how easily a flaw can be exploited and what damage it can cause — but not how likely its actual exploitation is. CVSS and the complementary EPSS deliberately answer different questions.

    Read in glossary
    7.8
    EPSS score

    The EPSS score is the absolute model output for an individual vulnerability: the estimated probability of real-world exploitation within the next 30 days, expressed as a value between 0 and 1 (i.e. 0 % to 100 %). A score of 0.42 means „the model estimates a 42 % chance of real-world exploitation within 30 days“.

    Read in glossary
    0.3 %
    Low — model estimates < 1% exploitation likelihood.
    EPSS percentile

    The EPSS percentile is the relative position of a vulnerability within all EPSS-scored CVEs, expressed as a value between 0 and 1. A percentile of 0.90 means „this CVE has a higher EPSS score than 90 % of all other scored CVEs“. Unlike the EPSS score, it is not a probability — but a positioning within a ranking.

    Read in glossary
    16.4
    Elevated — this CVE ranks above at least 10% of all CVEs scored today.
    KEV status

    The KEV catalogue is a list maintained by the US authority CISA of vulnerabilities for which active exploitation in the wild has been confirmed. It answers not the question „how severe?“ but „is it already being attacked?“ — thereby sharply prioritising patching.

    Read in glossary
    —
    Published
    CISA assessment (SSVC)
    Exploitation: none known · not automatable · Technical impact: total
    Source: CISA Vulnrichment, as of 12 March 2025
    CWE

    CWE is a catalogue of typical weakness types in software and hardware — such as flawed input validation, unsafe memory handling or poor authentication. Where a CVE names a concrete vulnerability in a concrete product, a CWE describes the underlying class of defect.

    Read in glossary
    CWE-416

    Detection rules

    No NEOSEC detection rule is available for this vulnerability yet.

    Classification under NIS2 and CRA

    Rule-based classification from exploitation status and severity. It does not replace a case-by-case assessment.

    NIS2

    NIS2 is EU Directive (EU) 2022/2555 to raise the level of cybersecurity across the Union. It substantially broadens obligations compared with the first NIS directive: more sectors, mandatory risk management, staged reporting duties and personal accountability of senior management.

    Read in glossary
    High technical severity: assess and remediate the vulnerability in vulnerability handling under Art. 21(2)(e) NIS2 and document the decision.
    CRA

    The CRA is EU Regulation (EU) 2024/2847 setting horizontal cybersecurity requirements for „products with digital elements“ — from industrial controllers and software to connected consumer devices. For the first time manufacturers must ensure security across the entire product lifecycle, handle vulnerabilities and provide security updates.

    Read in glossary
    From 11.12.2027, Annex I Part II CRA requires manufacturers of affected products with digital elements to handle vulnerabilities without delay and provide security updates.
    ISO/IEC 27001

    ISO/IEC 27001 is the internationally leading standard for an information security management system (ISMS). It describes a risk-based, process-oriented framework to systematically plan, implement, review and improve information security.

    Read in glossary
    Control A.8.8, management of technical vulnerabilities: assess relevance to your systems, plan remediation and keep evidence.

    Description

    In the Linux kernel, the following vulnerability has been resolved: geneve: Fix use-after-free in geneve_find_dev(). syzkaller reported a use-after-free in geneve_find_dev() [0] without repro. geneve_configure() links struct geneve_dev.next to net_generic(net, geneve_net_id)->geneve_list. The net here could differ from dev_net(dev) if IFLA_NET_NS_PID, IFLA_NET_NS_FD, or IFLA_TARGET_NETNSID is set. When dev_net(dev) is dismantled, geneve_exit_batch_rtnl() finally calls unregister_netdevice_queue() for each dev in the netns, and later the dev is freed. However, its geneve_dev.next is still linked to the backend UDP socket netns. Then, use-after-free will occur when another geneve dev is created in the netns. Let's call geneve_dellink() instead in geneve_destroy_tunnels(). [0]: BUG: KASAN: slab-use-after-free in geneve_find_dev drivers/net/geneve.c:1295 [inline] BUG: KASAN: slab-use-after-free in geneve_configure+0x234/0x858 drivers/net/geneve.c:1343 Read of size 2 at addr ffff000054d6ee24 by task syz.1.4029/13441 CPU: 1 UID: 0 PID: 13441 Comm: syz.1.4029 Not tainted 6.13.0-g0ad9617c78ac #24 dc35ca22c79fb82e8e7bc5c9c9adafea898b1e3d Hardware name: linux,dummy-virt (DT) Call trace: show_stack+0x38/0x50 arch/arm64/kernel/stacktrace.c:466 (C) __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0xbc/0x108 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0x16c/0x6f0 mm/kasan/report.c:489 kasan_report+0xc0/0x120 mm/kasan/report.c:602 __asan_report_load2_noabort+0x20/0x30 mm/kasan/report_generic.c:379 geneve_find_dev drivers/net/geneve.c:1295 [inline] geneve_configure+0x234/0x858 drivers/net/geneve.c:1343 geneve_newlink+0xb8/0x128 drivers/net/geneve.c:1634 rtnl_newlink_create+0x23c/0x868 net/core/rtnetlink.c:3795 __rtnl_newlink net/core/rtnetlink.c:3906 [inline] rtnl_newlink+0x1054/0x1630 net/core/rtnetlink.c:4021 rtnetlink_rcv_msg+0x61c/0x918 net/core/rtnetlink.c:6911 netlink_rcv_skb+0x1dc/0x398 net/netlink/af_netlink.c:2543 rtnetlink_rcv+0x34/0x50 net/core/rtnetlink.c:6938 netlink_unicast_kernel net/netlink/af_netlink.c:1322 [inline] netlink_unicast+0x618/0x838 net/netlink/af_netlink.c:1348 netlink_sendmsg+0x5fc/0x8b0 net/netlink/af_netlink.c:1892 sock_sendmsg_nosec net/socket.c:713 [inline] __sock_sendmsg net/socket.c:728 [inline] ____sys_sendmsg+0x410/0x6f8 net/socket.c:2568 ___sys_sendmsg+0x178/0x1d8 net/socket.c:2622 __sys_sendmsg net/socket.c:2654 [inline] __do_sys_sendmsg net/socket.c:2659 [inline] __se_sys_sendmsg net/socket.c:2657 [inline] __arm64_sys_sendmsg+0x12c/0x1c8 net/socket.c:2657 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x90/0x278 arch/arm64/kernel/syscall.c:49 el0_svc_common+0x13c/0x250 arch/arm64/kernel/syscall.c:132 do_el0_svc+0x54/0x70 arch/arm64/kernel/syscall.c:151 el0_svc+0x4c/0xa8 arch/arm64/kernel/entry-common.c:744 el0t_64_sync_handler+0x78/0x108 arch/arm64/kernel/entry-common.c:762 el0t_64_sync+0x198/0x1a0 arch/arm64/kernel/entry.S:600 Allocated by task 13247: kasan_save_stack mm/kasan/common.c:47 [inline] kasan_save_track+0x30/0x68 mm/kasan/common.c:68 kasan_save_alloc_info+0x44/0x58 mm/kasan/generic.c:568 poison_kmalloc_redzone mm/kasan/common.c:377 [inline] __kasan_kmalloc+0x84/0xa0 mm/kasan/common.c:394 kasan_kmalloc include/linux/kasan.h:260 [inline] __do_kmalloc_node mm/slub.c:4298 [inline] __kmalloc_node_noprof+0x2a0/0x560 mm/slub.c:4304 __kvmalloc_node_noprof+0x9c/0x230 mm/util.c:645 alloc_netdev_mqs+0xb8/0x11a0 net/core/dev.c:11470 rtnl_create_link+0x2b8/0xb50 net/core/rtnetlink.c:3604 rtnl_newlink_create+0x19c/0x868 net/core/rtnetlink.c:3780 __rtnl_newlink net/core/rtnetlink.c:3906 [inline] rtnl_newlink+0x1054/0x1630 net/core/rtnetlink.c:4021 rtnetlink_rcv_msg+0x61c/0x918 net/core/rtnetlink.c:6911 netlink_rcv_skb+0x1dc/0x398 net/netlink/af_netlink.c:2543 rtnetlink_rcv+0x34/0x50 net/core/rtnetlink.c:6938 netlink_unicast_kernel net/netlink/af_n ---truncated---

    Source: siemens_advisory, Ubuntu Security Notices, BSI CSAF, BSI WID Portal, suse_csaf, Debian LTS Advisories, redhat_csaf, Debian Security Advisories, cvelistv5, NVD (NIST), Microsoft Security Update Guide, CVE.org (MITRE), ENISA EUVD

    Affected products

    The following versions are affected. Older releases of the same product line are also vulnerable unless stated otherwise.

    Affected products
    Affected versionsFixed in
    LinuxLinux
    • 6.7 – < 6.12.17
    • 5.5 – < 5.10.235
    • 5.16 – < 6.1.130
    • 6.2 – < 6.6.80
    • —
    • 5.11 – < 5.15.179
    • 4.2 – < 5.4.291
    • 6.13 – < 6.13.5
    • 6.12.17
    • 5.10.235
    • 6.1.130
    • 6.6.80
    • 6.14
    • 5.15.179
    • 5.4.291
    • 6.13.5
    DellSecure Connect Gateway
    • < 5.30.0.14
    • 5.30.0.14
    IBMDataPower Gateway
    • < 11.0.0.3
    • < 10.6.0.11
    • < 10.5.0.23
    • 11.0.0.3
    • 10.6.0.11
    • 10.5.0.23
    SiemensSIMATIC S7
    • 1500 TM MFP V1.1.1 GNU/Linux subsystem
    • —

    Vendors and products

    Affected operating systems

    Affected operating systems
    Linuxubuntuawsbionic
    Linuxubuntuawsjammy
    Linuxubuntuawsnoble
    Linuxubuntuawsresolute
    Linuxubuntuawsxenial
    Linuxubuntuaws-6.8jammy
    Linuxubuntuaws-hwexenial
    Linuxubuntuazurejammy
    Linuxubuntuazurenoble
    Linuxubuntuazureresolute
    Linuxubuntuazurexenial
    Linuxubuntuazure-4.15bionic
    Linuxubuntugcpjammy
    Linuxubuntugcpnoble
    Linuxubuntugcpresolute
    Linuxubuntugcpxenial
    Linuxubuntugcp-4.15bionic
    Linuxubuntugcp-6.8jammy
    Linuxubuntugeneric-4.15bionic
    Linuxubuntugeneric-4.15xenial
    Linuxubuntugeneric-4.4xenial
    Linuxubuntugeneric-5.4bionic
    Linuxubuntugeneric-5.4focal
    Linuxubuntugkejammy

    Weakness classes (CWE)

    • CWE-416Use After Free

      Variant

      The product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory "belongs" to the code that operates on the new pointer.

      Entry at MITRE CWE-416

    References & sources

    Changes to this CVE

    Who changed this CVE and when: NVD (analysis, affected products, CVSS), the CVE publisher (CNA) and additional providers such as CISA (ADP).

    1. Record modifiedLinux

      Show 25 original changes
      Individual changes of this event as published by NVD
      TypeActionBeforeAfter
      CVSSadded
      —
      AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
      Referenceadded
      —
      https://git.kernel.org/stable/c/3ce92ca990cfac88a87c61df3cc0b5880e688ecf
      Referenceadded
      —
      https://git.kernel.org/stable/c/5a0538ac6826807d6919f6aecbb8996c2865af2c
      Referenceadded
      —
      https://git.kernel.org/stable/c/788dbca056a8783ec063da3c9d49a3a71c76c283
      Referenceadded
      —
      https://git.kernel.org/stable/c/904e746b2e7fa952ab8801b303ce826a63153d78
      Referenceadded
      —
      https://git.kernel.org/stable/c/9593172d93b9f91c362baec4643003dc29802929
      Referenceadded
      —
      https://git.kernel.org/stable/c/d5e86e27de0936f3cb0a299ce519d993e9cf3886
      Referenceadded
      —
      https://git.kernel.org/stable/c/da9b0ae47f084014b1e4b3f31f70a0defd047ff3
      Referenceadded
      —
      https://git.kernel.org/stable/c/f74f6560146714241c6e167b03165ee77a86e316
      Referenceremoved
      https://git.kernel.org/stable/c/3ce92ca990cfac88a87c61df3cc0b5880e688ecf
      —
      Referenceremoved
      https://git.kernel.org/stable/c/5a0538ac6826807d6919f6aecbb8996c2865af2c
      —
      Referenceremoved
      https://git.kernel.org/stable/c/788dbca056a8783ec063da3c9d49a3a71c76c283
      —
      Referenceremoved
      https://git.kernel.org/stable/c/904e746b2e7fa952ab8801b303ce826a63153d78
      —
      Referenceremoved
      https://git.kernel.org/stable/c/9593172d93b9f91c362baec4643003dc29802929
      —
      Referenceremoved
      https://git.kernel.org/stable/c/d5e86e27de0936f3cb0a299ce519d993e9cf3886
      —
      Referenceremoved
      https://git.kernel.org/stable/c/da9b0ae47f084014b1e4b3f31f70a0defd047ff3
      —
      Referenceremoved
      https://git.kernel.org/stable/c/f74f6560146714241c6e167b03165ee77a86e316
      —
      Reference typeremoved
      https://git.kernel.org/stable/c/3ce92ca990cfac88a87c61df3cc0b5880e688ecf Types: Patch
      —
      Reference typeremoved
      https://git.kernel.org/stable/c/5a0538ac6826807d6919f6aecbb8996c2865af2c Types: Patch
      —
      Reference typeremoved
      https://git.kernel.org/stable/c/788dbca056a8783ec063da3c9d49a3a71c76c283 Types: Patch
      —
      Reference typeremoved
      https://git.kernel.org/stable/c/904e746b2e7fa952ab8801b303ce826a63153d78 Types: Patch
      —
      Reference typeremoved
      https://git.kernel.org/stable/c/9593172d93b9f91c362baec4643003dc29802929 Types: Patch
      —
      Reference typeremoved
      https://git.kernel.org/stable/c/d5e86e27de0936f3cb0a299ce519d993e9cf3886 Types: Patch
      —
      Reference typeremoved
      https://git.kernel.org/stable/c/da9b0ae47f084014b1e4b3f31f70a0defd047ff3 Types: Patch
      —
      Reference typeremoved
      https://git.kernel.org/stable/c/f74f6560146714241c6e167b03165ee77a86e316 Types: Patch
      —

      Source identifier: 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    2. Record modifiedCVE Program

      Show 4 original changes
      Individual changes of this event as published by NVD
      TypeActionBeforeAfter
      Referenceadded
      —
      https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html
      Referenceadded
      —
      https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html
      Referenceremoved
      https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html
      —
      Referenceremoved
      https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html
      —

      Source identifier: af854a3a-2127-422b-91ae-364da2661108

    3. Record modifiedSiemens ADP

      Show 4 original changes
      Individual changes of this event as published by NVD
      TypeActionBeforeAfter
      Affected versions (publisher)added
      —
      Affected value modified. <a href="https://github.com/CVEProject/cvelistV5/blob/main/cves/2025/21xxx/CVE-2025-21858.json">CVE-2025-21858</a>
      Referenceadded
      —
      https://cert-portal.siemens.com/productcert/html/ssa-265688.html
      Referenceadded
      —
      https://cert-portal.siemens.com/productcert/html/ssa-784472.html
      Referenceremoved
      https://cert-portal.siemens.com/productcert/html/ssa-265688.html
      —

      Source identifier: 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e

    Embed badge

    Show the severity and KEV status of this vulnerability on your site – with a link back here. The image is updated hourly.

    Badge preview for CVE-2025-21858
    <a href="https://intel.neosec.eu/en/cve/CVE-2025-21858"><img src="https://intel.neosec.eu/badge/cve/CVE-2025-21858.svg?lang=en" alt="CVE-2025-21858 – NEOSEC Intel" height="20"></a>