CVE-2024-26690: net: stmmac: protect updates of 64-bit statistics counters

Published Apr 3, 2024
·
Updated

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

net: stmmac: protect updates of 64-bit statistics counters

As explained by a comment in <linux/u64statssync.h>, write side of struct u64statssync must ensure mutual exclusion, or one seqcount update could be lost on 32-bit platforms, thus blocking readers forever. Such lockups have been observed in real world after stmmacxmit() on one CPU raced with stmmacnapipolltx() on another CPU.

To fix the issue without introducing a new lock, split the statics into three parts:

1. fields updated only under the tx queue lock, 2. fields updated only during NAPI poll, 3. fields updated only from interrupt context,

Updates to fields in the first two groups are already serialized through other locks. It is sufficient to split the existing struct u64statssync so that each group has its own.

Note that txseticbit is updated from both contexts. Split this counter so that each context gets its own, and calculate their sum to get the total value in stmmacgetethtoolstats().

For the third group, multiple interrupts may be processed by different CPUs at the same time, but interrupts on the same CPU will not nest. Move fields from this group to a newly created per-cpu struct stmmacpcpustats.

Affected Software

13 affected componentsFixes available
Linux Kernel
Linux Linux kernel>=6.6<6.6.18
Linux Linux kernel>=6.7<6.7.6
Linux Linux kernel=6.8-rc1
Linux Linux kernel=6.8-rc2
Linux Linux kernel=6.8-rc3
debian/linux*
debian/linux<6.7.7-1
6.7.7-1
debian/linux<6.7.7-1
6.7.7-1
debian/linux<=6.1.176-1, <=6.1.192-2
6.7.7-1
linux/kernel>=6.1.160<6.1.193
6.1.193
linux/kernel>=6.6.0<6.6.18
6.6.18
linux/kernel>=6.7.0<6.7.6
6.7.6

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.7.7-1
  2. Upgrade

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

    Fixed in 6.1.193
  3. Upgrade

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

    Fixed in 6.6.18
  4. Upgrade

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

    Fixed in 6.7.6

Event History

Apr 3, 2024
CVE Published
via MITRE·02:54 PM
Data Sourced
via MITRE·02:54 PM
Description
Data Sourced
via OSV·02:54 PM
DescriptionSeverityAffected Software
Data Sourced
via NVD·03:15 PM
Description
Nov 6, 2024
Data Sourced
via NVD·04:35 PM
Severity
Apr 8, 2025
Data Sourced
via NVD·03:32 PM
RemedyAffected Software
Aug 4, 2026
Data Sourced
via MITRE·09:19 AM
Severity
Event
via MITRE·09:19 AM
Updated
via NVD·11:16 AM
SeverityAffected Software
Nov 15, 2026
Updated
via OSV·06:00 PM
Affected Software
Nov 17, 2026
Updated
via OSV·07:00 AM
Affected Software
Nov 23, 2026
Updated
via OSV·10:00 AM
Affected Software
Updated
via OSV·09:00 PM
Affected Software

Frequently Asked Questions

1

What is the severity of CVE-2024-26690?

CVE-2024-26690 has been assigned a moderate severity level due to potential race conditions in the Linux kernel.

2

How do I fix CVE-2024-26690?

To fix CVE-2024-26690, update to the latest version of the Linux kernel where the vulnerability has been patched.

3

Which software is affected by CVE-2024-26690?

CVE-2024-26690 affects the Linux kernel, specifically versions that include the stmmac network driver.

4

What type of vulnerability is CVE-2024-26690?

CVE-2024-26690 is a race condition vulnerability in the Linux kernel related to 64-bit statistics counters.

5

Can CVE-2024-26690 be exploited remotely?

The potential for remote exploitation of CVE-2024-26690 depends on the specific configurations and usage of the affected systems.

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