CVE-2025-38183: net: lan743x: fix potential out-of-bounds write in lan743x_ptp_io_event_clock_get()

Published Jul 4, 2025
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

net: lan743x: fix potential out-of-bounds write in lan743xptpioeventclockget()

Before calling lan743xptpioeventclockget(), the 'channel' value is checked against the maximum value of PCI11X1XPTPIOMAXCHANNELS(8). This seems correct and aligns with the PTP interrupt status register (PTPINTSTS) specifications.

However, lan743xptpioeventclockget() writes to ptp->extts[] with only LAN743XPTPNEXTTS(4) elements, using channel as an index:

lan743xptpioeventclockget(..., u8 channel,...) { ... / Update Local timestamp / extts = &ptp->extts[channel]; extts->ts.tvsec = sec; ... }

To avoid an out-of-bounds write and utilize all the supported GPIO inputs, set LAN743XPTPNEXTTS to 8.

Detected using the static analysis tool - Svace.

Affected Software

11 affected componentsFixes available
Linux Linux kernel
Linux Linux kernel>=5.18<6.1.142
Linux Linux kernel>=6.2<6.6.95
Linux Linux kernel>=6.7<6.12.35
Linux Linux kernel>=6.13<6.15.4
Linux Linux kernel=6.16-rc1
Linux Linux kernel=6.16-rc2
Debian Debian Linux=11.0
Microsoft azl3 kernel 6.6.92.2-2
Microsoft azl3 kernel 6.6.96.1-1
debian/linux
6.1.176-16.1.190-16.12.107-16.12.113-17.2.12-17.2.13-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 6.1.176-1Fixed in 6.1.190-1Fixed in 6.12.107-1Fixed in 6.12.113-1Fixed in 7.2.12-1Fixed in 7.2.13-1
  2. Configuration

    Set LAN743X_PTP_N_EXTTS to 8 so lan743x_ptp_io_event_clock_get() allocates entries for all supported GPIO inputs and avoids an out-of-bounds write.

    Linux kernel lan743x PTP driver LAN743X_PTP_N_EXTTS = 8

Event History

Jul 4, 2025
CVE Published
via MITRE·01:37 PM
Data Sourced
via MITRE·01:37 PM
Description
Data Sourced
via NVD·02:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Aug 7, 2025
Data Sourced
via Microsoft·07:00 AM
DescriptionSeverityWeaknessAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is the severity of CVE-2025-38183?

CVE-2025-38183 has been classified as a high severity vulnerability due to the potential for out-of-bounds write which can lead to system instability or security breaches.

2

How do I fix CVE-2025-38183?

To fix CVE-2025-38183, update the Linux kernel to the latest patched version that addresses this vulnerability.

3

What types of systems are affected by CVE-2025-38183?

CVE-2025-38183 affects systems running vulnerable versions of the Linux kernel that include the lan743x driver.

4

What is the impact of CVE-2025-38183?

The impact of CVE-2025-38183 could allow an attacker to exploit an out-of-bounds write, potentially leading to arbitrary code execution.

5

When was CVE-2025-38183 discovered?

CVE-2025-38183 was discovered in the development phases of the Linux kernel and has been resolved in subsequent updates.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203