CVE-2025-38617

Published Aug 22, 2025

Last updated 4 months ago

Overview

AI description

Automated description summarized from trusted sources.

CVE-2025-38617 describes a race condition vulnerability found within the Linux kernel's networking subsystem. Specifically, the flaw occurs in the `net/packet` module during the interaction between the `packet_set_ring()` and `packet_notifier()` functions. The vulnerability arises when `packet_set_ring()` releases the `po->bind_lock`, which can allow a separate thread to execute `packet_notifier()` and process an `NETDEV_UP` event. This race condition is analogous to a previously addressed issue. The resolution involves temporarily setting `po->num` to zero, ensuring the socket remains unhooked until the lock is reacquired.

Description
In the Linux kernel, the following vulnerability has been resolved: net/packet: fix a race in packet_set_ring() and packet_notifier() When packet_set_ring() releases po->bind_lock, another thread can run packet_notifier() and process an NETDEV_UP event. This race and the fix are both similar to that of commit 15fe076edea7 ("net/packet: fix a race in packet_bind() and packet_notifier()"). There too the packet_notifier NETDEV_UP event managed to run while a po->bind_lock critical section had to be temporarily released. And the fix was similarly to temporarily set po->num to zero to keep the socket unhooked until the lock is retaken. The po->bind_lock in packet_set_ring and packet_notifier precede the introduction of git history.
Source
416baaa9-dc9f-4396-8d5f-8c081fb06d67
NVD status
Modified
Products
linux_kernel, debian_linux

Risk scores

CVSS 3.1

Type
Primary
Base score
4.7
Impact score
3.6
Exploitability score
1
Vector string
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
Severity
MEDIUM

Weaknesses

nvd@nist.gov
CWE-362

Social media

Hype score
Not currently trending
  1. Exploiting a use-after-free vulnerability in the Linux kernel’s packet socket subsystem, caused by a race condition between packet_set_ring() and packet_notifier() (CVE-2025-38617) https://t.co/F86BqcWmYk #infosec https://t.co/i8re1JTtT2

    @0xor0ne

    12 Apr 2026

    5999 Impressions

    24 Retweets

    119 Likes

    61 Bookmarks

    1 Reply

    0 Quotes

  2. A Race Within A Race: Exploiting CVE-2025-38617 in Linux Packet Sockets https://t.co/r5rJhupZPm

    @Komodosec

    6 Apr 2026

    160 Impressions

    1 Retweet

    0 Likes

    0 Bookmarks

    0 Replies

    0 Quotes

  3. A Race Within A Race: Exploiting CVE-2025-38617 in Linux Packet Sockets.. A step-by-step guide to exploiting a 20-year-old bug in the Linux kernel..  https://t.co/2ZIj4pf629

    @Tinolle1955

    26 Mar 2026

    721 Impressions

    1 Retweet

    11 Likes

    7 Bookmarks

    0 Replies

    0 Quotes

  4. A Race Within a Race: Exploiting CVE-2025-38617 in Linux Packet Sockets https://t.co/Guhe2dTHrm

    @angsuman

    21 Mar 2026

    103 Impressions

    0 Retweets

    0 Likes

    0 Bookmarks

    0 Replies

    0 Quotes

  5. Exploitation of CVE-2025-38617 in Linux Packet Sockets The article examines the exploitation of a race condition vulnerability in the Linux kernel’s packet socket subsystem (CVE-2025-38617 -> (https://t.co/WsSNB0cYmd)). The flaw allows an attacker to achieve local privilege

    @ptdbugs

    17 Mar 2026

    136 Impressions

    0 Retweets

    0 Likes

    0 Bookmarks

    0 Replies

    0 Quotes

  6. A Race Within A Race: Exploiting CVE-2025-38617 in Linux Packet Sockets Excellent article by Quang Le about exploiting CVE-2025-38617 — a race condition that leads to a use-after-free in the packet sockets implementation. https://t.co/aSys46Iit8 https://t.co/uRXwbhCRDf

    @linkersec

    17 Mar 2026

    4361 Impressions

    12 Retweets

    87 Likes

    44 Bookmarks

    2 Replies

    0 Quotes

  7. CVE-2025-38617 es una vulnerabilidad use-after-free en el subsistema de packet sockets del kernel Linux, causada por una race condition. El bug existía desde Linux 2.6.12 (2005) y fue corregido en la versión 6.16. 20 años en producción. Sin que nadie lo viera ¿Cuántos + ha

    @Zymeralabs

    12 Mar 2026

    108 Impressions

    0 Retweets

    0 Likes

    0 Bookmarks

    0 Replies

    0 Quotes

  8. Top 5 Trending CVEs: 1 - CVE-2025-54236 2 - CVE-2025-38617 3 - CVE-2026-21513 4 - CVE-2026-3102 5 - CVE-2017-7921 #cve #cvetrends #cveshield #cybersecurity https://t.co/4Fua3CAN6W

    @CVEShield

    10 Mar 2026

    173 Impressions

    0 Retweets

    1 Like

    0 Bookmarks

    0 Replies

    0 Quotes

  9. Analysis and exploitation of CVE-2025-38617, a race condition based use-after-free vulnerability in the Linux kernel’s packet socket subsystem (@calif_io) https://t.co/F86BqcWmYk #Linux #infosec https://t.co/Q6oWLni1KA

    @0xor0ne

    9 Mar 2026

    4873 Impressions

    20 Retweets

    101 Likes

    46 Bookmarks

    1 Reply

    0 Quotes

  10. Exploiting CVE-2025-38617 in Linux Packet Sockets https://t.co/SJxKtKR784

    @Dinosn

    7 Mar 2026

    1730 Impressions

    3 Retweets

    17 Likes

    9 Bookmarks

    1 Reply

    0 Quotes

  11. A Race Within A Race: Exploiting CVE-2025-38617 in Linux Packet Sockets https://t.co/SJxKtKR784

    @Dinosn

    7 Mar 2026

    1665 Impressions

    3 Retweets

    19 Likes

    7 Bookmarks

    0 Replies

    0 Quotes

  12. CVE-2025-38617 vulnerability allows attackers to exploit Linux packet sockets, potentially leading to privilege escalation. https://t.co/jELT5q6mWD

    @Crash0verr1d3

    7 Mar 2026

    70 Impressions

    0 Retweets

    0 Likes

    0 Bookmarks

    1 Reply

    0 Quotes

  13. A Race Within A Race: Exploiting CVE-2025-38617 in Linux Packet Sockets https://t.co/cohac2JCu3

    @_r_netsec

    6 Mar 2026

    786 Impressions

    1 Retweet

    7 Likes

    3 Bookmarks

    0 Replies

    0 Quotes

  14. Top 5 Trending CVEs: 1 - CVE-2024-23222 2 - CVE-2026-22719 3 - CVE-2026-25611 4 - CVE-2025-38617 5 - CVE-2026-21902 #cve #cvetrends #cveshield #cybersecurity https://t.co/4Fua3CAN6W

    @CVEShield

    5 Mar 2026

    232 Impressions

    0 Retweets

    1 Like

    0 Bookmarks

    0 Replies

    0 Quotes

  15. #exploit #Kernel_Security A Race Within A Race: Exploiting CVE-2025-38617 in Linux Packet Sockets https://t.co/oavL2He7Ll // A step-by-step guide to exploiting a 20-year-old bug in the Linux kernel to achieve full privilege escalation and container escape, plus a cool bug-hunting

    @ksg93rd

    4 Mar 2026

    531 Impressions

    2 Retweets

    10 Likes

    2 Bookmarks

    0 Replies

    0 Quotes

  16. 20年以上潜伏していたLinuxカーネルの欠陥が、ついに特権昇格とコンテナ脱出を可能にする深刻な脆弱性として明らかになった。単純な競合条件が高度な防御機構を突破する実証も示された。 CVE-2025-38617は、Li

    @yousukezan

    3 Mar 2026

    32362 Impressions

    196 Retweets

    465 Likes

    208 Bookmarks

    3 Replies

    3 Quotes

  17. A Race Within A Race: Exploiting CVE-2025-38617 in Linux Packet Sockets. A step-by-step guide to exploiting a 20-year-old bug in the Linux kernel to achieve full privilege escalation and container escape, plus a cool bug-hunting heuristic. https://t.co/IxURrHpBT0

    @calif_io

    3 Mar 2026

    7382 Impressions

    37 Retweets

    114 Likes

    71 Bookmarks

    3 Replies

    0 Quotes

  18. CVE-2025-38617 In the Linux kernel, the following vulnerability has been resolved: net/packet: fix a race in packet_set_ring() and packet_notifier() When packet_set_ring() release… https://t.co/aKmKSqg5Ei

    @CVEnew

    22 Aug 2025

    261 Impressions

    0 Retweets

    0 Likes

    0 Bookmarks

    0 Replies

    0 Quotes

Configurations

  1. In the Linux kernel, the following vulnerability has been resolved: ipv6: account for fraggap on the paged allocation path In __ip6_append_data(), when the paged-allocation branch is taken (MSG_MORE / NETIF_F_SG / large fraglen), alloclen and pagedlen are computed as alloclen = fragheaderlen + transhdrlen; pagedlen = datalen - transhdrlen; datalen already includes fraggap (datalen = length + fraggap). When fraggap is non-zero, this is not the first skb and transhdrlen is zero. The fraggap bytes carried over from the previous skb are copied just past the fragment headers in the new skb's linear area. The linear area is therefore undersized by fraggap bytes while pagedlen is overstated by the same amount, and the copy writes past skb->end into the trailing skb_shared_info. An unprivileged user can trigger this via a UDPv6 socket using MSG_MORE together with MSG_SPLICE_PAGES. The bad accounting was introduced by commit 773ba4fe9104 ("ipv6: avoid partial copy for zc"). Before commit ce650a166335 ("udp6: Fix __ip6_append_data()'s handling of MSG_SPLICE_PAGES"), the negative copy value caused -EINVAL to be returned. That later commit allowed MSG_SPLICE_PAGES to proceed in this case, making the corruption triggerable. The non-paged branch sets alloclen to fraglen, which already accounts for fraggap because datalen does. Bring the paged branch in line by adding fraggap to alloclen and subtracting it from pagedlen. After this adjustment, copy no longer collapses to -fraggap on the paged path, so remove the stale comment describing that old arithmetic. Since a negative copy is no longer expected for a valid MSG_SPLICE_PAGES case, remove the MSG_SPLICE_PAGES exception from the negative copy check.CVE-2026-53362