CVE-2026-31396
Use-After-Free in Linux macb Driver's PTP Clock Causes Kernel Crash
Publication date: 2026-04-03
Last updated on: 2026-05-20
Assigner: kernel.org
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| linux | linux_kernel | 7.0 |
| linux | linux_kernel | 7.0 |
| linux | linux_kernel | 7.0 |
| linux | linux_kernel | 7.0 |
| linux | linux_kernel | From 6.2 (inc) to 6.6.130 (exc) |
| linux | linux_kernel | From 5.11 (inc) to 5.15.203 (exc) |
| linux | linux_kernel | From 5.16 (inc) to 6.1.167 (exc) |
| linux | linux_kernel | From 6.7 (inc) to 6.12.78 (exc) |
| linux | linux_kernel | From 6.13 (inc) to 6.18.20 (exc) |
| linux | linux_kernel | From 6.19 (inc) to 6.19.10 (exc) |
| linux | linux_kernel | From 4.11 (inc) to 5.10.253 (exc) |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-416 | 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. |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
This vulnerability is a use-after-free bug in the Linux kernel's macb network driver related to the PTP (Precision Time Protocol) clock. The PTP clock is registered each time a network interface is opened and destroyed when it is closed. However, it can still be accessed through an ethtool call (get_ts_info) even after the interface has been closed but still present in the kernel. This leads to accessing memory that has already been freed, causing a use-after-free error.
How can this vulnerability impact me? :
The use-after-free vulnerability can cause the kernel to behave unpredictably, potentially leading to system crashes or instability. It may also be exploited by attackers to execute arbitrary code or escalate privileges by manipulating kernel memory, compromising system security.