net: mvpp2: Prevent parser TCAM memory corruption (Linux Linux)

CVE-2025-22060
MEDIUM 4.7

At a glance

Source
NVD
EPSS
EPSS 0.16 % · percentile 5 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Modified

Description

In the Linux kernel, the following vulnerability has been resolved: net: mvpp2: Prevent parser TCAM memory corruption Protect the parser TCAM/SRAM memory, and the cached (shadow) SRAM information, from concurrent modifications. Both the TCAM and SRAM tables are indirectly accessed by configuring an index register that selects the row to read or write to. This means that operations must be atomic in order to, e.g., avoid spreading writes across multiple rows. Since the shadow SRAM array is used to find free rows in the hardware table, it must also be protected in order to avoid TOCTOU errors where multiple cores allocate the same row. This issue was detected in a situation where `mvpp2_set_rx_mode()` ran concurrently on two CPUs. In this particular case the MVPP2_PE_MAC_UC_PROMISCUOUS entry was corrupted, causing the classifier unit to drop all incoming unicast - indicated by the `rx_classifier_drops` counter.

Weaknesses (CWE)

  • CWE-367 — Time-of-check Time-of-use (TOCTOU) Race Condition

References

Scores

VersionScoreVectorScored by
CVSS 3.1MEDIUM 4.7CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:HNVD · nvd@nist.gov (Primary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected 3f518509dedc99f0b755d2ce68d24f610e3a005a < e3711163d14d02af9005e4cdad30899c565f13fb ; affected 3f518509dedc99f0b755d2ce68d24f610e3a005a < b3f48a41a00d6d8d9c6fe09ae47dd21c8c1c8b03 ; affected 3f518509dedc99f0b755d2ce68d24f610e3a005a < 5b0ae1723a7d9574ae1aee7d9cf9757a30069865 ; affected 3f518509dedc99f0b755d2ce68d24f610e3a005a < fcbfb54a0269875cf3cd6a2bff4f85a2e0a0b552 ; affected 3f518509dedc99f0b755d2ce68d24f610e3a005a < e64e9b6e86b39db3baa576fd73da73533b54cb2d ; affected 3f518509dedc99f0b755d2ce68d24f610e3a005a < 46c1e23e34c9d1eaadf37f88216d9d8ce0d0bcee
Linux · Linuxaffected 3.17 ; unaffected 0 < 3.17 ; unaffected 5.15.180 ≤ 5.15.* ; unaffected 6.1.134 ≤ 6.1.* ; unaffected 6.6.87 ≤ 6.6.* ; unaffected 6.12.23 ≤ 6.12.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD