
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-31396 is a use-after-free vulnerability in the Linux kernel's macb (Cadence MAC) network driver affecting PTP (Precision Time Protocol) clock handling. The flaw arises because the PTP clock is registered on every interface open and destroyed on every close, but can still be accessed via the ethtool get_ts_info ioctl while the interface exists in the kernel — even after the clock has been freed. Affected kernel versions span from 4.11 through multiple stable branches, with fixes targeting versions before 5.10.253, 5.15.203, 6.1.167, 6.6.130, 6.12.78, 6.18.20, and 6.19.10, as well as 7.0 release candidates (GitHub Advisory). It carries a CVSS v3.1 base score of 7.8 (High) (GitHub Advisory).
The root cause is a use-after-free (CWE-416) in drivers/net/ethernet/cadence/macb_main.c. The PTP clock object is allocated during macb_open() via gem_ptp_init() → ptp_clock_register(), and freed during macb_close() via gem_ptp_remove() → ptp_clock_unregister(). However, macb_get_ts_info() / gem_get_ts_info() — invoked through the ethtool ETHTOOL_GET_TS_INFO ioctl path — can access the now-freed PTP clock structure by calling ptp_clock_index(), resulting in a KASAN-detected use-after-free read. Exploitation requires local access and low privileges (e.g., ability to issue ioctl calls on a network socket), and the race condition is triggered by closing the network interface while a concurrent get_ts_info call is in progress (GitHub Advisory).
Successful exploitation can result in kernel memory disclosure (confidentiality impact), kernel memory corruption (integrity impact), or a kernel panic/crash causing denial of service (availability impact). In a worst-case scenario, if the freed PTP clock memory is reallocated and controlled by an attacker, arbitrary kernel code execution may be achievable, potentially enabling full system compromise or privilege escalation. The vulnerability is confined to systems using Cadence GEM/macb network hardware or drivers, limiting the affected asset scope primarily to embedded Linux systems, certain ARM-based platforms, and QEMU environments emulating this hardware (GitHub Advisory).
There is no public proof-of-concept exploit and no evidence of in-the-wild exploitation at this time (GitHub Advisory). The vulnerability was discovered via kernel fuzzing (syzbot, as indicated by the syz.0.6 task in the KASAN trace). The EPSS score is approximately 0.024% (0.000240), indicating a very low near-term exploitation probability. The CVE is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. No threat actor attribution is available.
ip link set eth0 up) to trigger macb_open(), which registers the PTP clock via gem_ptp_init().ip link set eth0 down) to trigger macb_close() → gem_ptp_remove() → ptp_clock_unregister(), freeing the PTP clock object.ethtool ETHTOOL_GET_TS_INFO ioctl (e.g., ethtool -T eth0) on the interface. This calls macb_get_ts_info() → gem_get_ts_info() → ptp_clock_index(), accessing the freed PTP clock memory.dmesg) showing BUG: KASAN: use-after-free in ptp_clock_index+0x47/0x50 drivers/ptp/ptp_clock.c:426; kernel panic or oops traces referencing gem_get_ts_info, macb_get_ts_info, or __ethtool_get_ts_info.ethtool invocations (process name ethtool or syz.*) coinciding with interface up/down cycling on macb/GEM interfaces.NETDEV_UP/NETDEV_DOWN events visible in kernel logs)./dev/net or issuing SIOCETHTOOL ioctls on the system.Apply the latest Linux kernel stable updates containing the fix for this vulnerability. Patched versions include 5.10.253, 5.15.203, 6.1.167, 6.6.130, 6.12.78, 6.18.20, and 6.19.10; patches are available via the kernel stable tree (GitHub Advisory). The fix implements proper reference counting and lifecycle management of the PTP clock object to prevent premature deallocation. As a temporary workaround where patching is not immediately possible, restrict access to ethtool operations via filesystem permissions (e.g., limiting CAP_NET_ADMIN) or use network namespaces to reduce exposure to untrusted local users. Debian has also issued updated kernel packages incorporating this fix (Debian Tracker).
The vulnerability was announced via the Linux kernel CVE announcement mailing list (lore.kernel.org) on April 3, 2026, and subsequently tracked by Yocto Project security advisories across multiple messages. Tenable published Nessus detection plugins (IDs 304976 and 318288) for this CVE. No significant public researcher commentary or social media discussion beyond standard vulnerability tracking has been observed.
Fix availability across major Linux distributions and their releases.
bionic (fips-updates)
linux-fips
bionic (fips)
linux-fips
devel
linux
focal
linux-azure-fde-5.15
focal (esm-infra)
linux-hwe-5.15: 5.15.0-186.196~20.04.1
focal (fips-updates)
linux-fips
focal (fips)
linux-fips
jammy
linux: 5.15.0-186.196
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."