PatchSiren

PatchSiren cyber security CVE debrief

CVE-2026-31396 Linux CVE debrief

A use-after-free vulnerability was found in the Linux kernel's macb driver. The PTP clock is registered when the interface is opened and destroyed when it is closed. However, it can still be accessed through the ethtool get_ts_info call while the interface is present in the kernel. This vulnerability can lead to a denial of service or potentially allow an attacker to execute arbitrary code. The bug was located in the macb_get_ts_info function, which did not check if the PTP clock was still valid before accessing it. The vulnerability was reported via the syzkaller tool and was fixed by the Linux kernel maintainers.

Vendor
Linux
Product
Unknown
CVSS
HIGH 7.8
CISA KEV
Not listed in stored evidence
Original CVE published
2026-07-14
Original CVE updated
2026-07-28
Advisory published
2026-07-14
Advisory updated
2026-07-28

Who should care

Linux kernel developers and maintainers, Linux distribution maintainers, and users of Linux-based systems should be aware of this vulnerability and take steps to mitigate it. They should review and apply patches provided by the Linux kernel maintainers, restrict access to the ethtool get_ts_info call, and monitor the Linux kernel for any similar vulnerabilities.

Why it matters

A use-after-free vulnerability in the Linux kernel's macb driver can lead to a denial of service or potentially allow an attacker to execute arbitrary code.

  • Verify PTP clock validity before accessing it to prevent use-after-free errors.
  • Apply patches provided by the Linux kernel maintainers to fix the vulnerability.
  • Restrict access to the ethtool get_ts_info call to prevent exploitation.

Technical summary

The vulnerability is caused by the PTP clock being registered and destroyed on every opening and closing of the interface, but it can still be accessed via the ethtool get_ts_info call. This can lead to a use-after-free vulnerability. The bug was located in the macb_get_ts_info function, which did not check if the PTP clock was still valid before accessing it. The vulnerability was reported via the syzkaller tool and was fixed by the Linux kernel maintainers. The fix involves verifying PTP clock validity before accessing it.

Defensive priority

High

Recommended defensive actions

  • Review and apply the patches provided by the Linux kernel maintainers to fix the vulnerability.
  • Restrict access to the ethtool get_ts_info call to prevent exploitation.
  • Monitor the Linux kernel for any similar vulnerabilities and apply patches promptly.
  • Verify PTP clock validity before accessing it to prevent use-after-free errors.
  • Apply compensating controls for exposed systems while remediation is scheduled and verified.
  • Check relevant monitoring, detection, and logs for exposed assets that need extra review.
  • Track exceptions, retest remediated assets, and close the item only after evidence is documented.

Evidence notes

The vulnerability was reported via the syzkaller tool and was fixed by the Linux kernel maintainers. The bug was located in the macb_get_ts_info function, which did not check if the PTP clock was still valid before accessing it. The PTP clock is registered on every opening of the interface and destroyed on every closing. However, it may be accessed via get_ts_info ethtool call which is possible while the interface is just present in the kernel.

Sources and references

Verified primary and authoritative sources

  • CVE-2026-31396 CVE Program record

    Publisher, destination, and source semantics verified

    URL: https://www.cve.org/CVERecord?id=CVE-2026-31396

    CVE Program - Official CVE Program record with source-provided CVE metadata.

  • CVE-2026-31396 NVD vulnerability detail

    Publisher, destination, and source semantics verified

    URL: https://nvd.nist.gov/vuln/detail/CVE-2026-31396

    NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.

Supplemental references

  • net: macb: fix use-after-free access to PTP clock

    Unverified legacy reference

    URL: https://raw.githubusercontent.com/CVEProject/cvelistV5/main/cves/2026/31xxx/CVE-2026-31396.json

    cve_program_cvelist_v5

  • Source reference

    Unverified legacy reference

    URL: https://git.kernel.org/stable/c/8820ffe0975fd2efbe50453e9179c8e1c33a13d3

    Supplemental source

  • Source reference

    Unverified legacy reference

    URL: https://git.kernel.org/stable/c/6b757f345eeea87ed5d8afd6de35b927a1a57a2f

    Supplemental source

  • Source reference

    Unverified legacy reference

    URL: https://git.kernel.org/stable/c/341d01087f821aa0f165fb1ffc8bfe4e50776da7

    Supplemental source

  • Source reference

    Unverified legacy reference

    URL: https://git.kernel.org/stable/c/5653af416a48f6c18f9626ae9df96f814f45ff34

    Supplemental source

  • Source reference

    Unverified legacy reference

    URL: https://git.kernel.org/stable/c/0bb848d8c64938024e45780f8032f1f67d3a3607

    Supplemental source

  • Source reference

    Unverified legacy reference

    URL: https://git.kernel.org/stable/c/1f4714065b2bcbb0a4013fd355b84b848e6cc345

    Supplemental source

  • Source reference

    Unverified legacy reference

    URL: https://git.kernel.org/stable/c/eb652535e9ec795ef5c1078f7578eaaed755268b

    Supplemental source

Methodology and review provenance

AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.