iio: magnetometer: rm3100: add boundary check for the value read from RM3100_REG_TMRC (Linux Linux)

CVE-2024-26702
MEDIUM 5.5

At a glance

Source
NVD
EPSS
EPSS 0.22 % · percentile 13 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Analyzed

Description

In the Linux kernel, the following vulnerability has been resolved: iio: magnetometer: rm3100: add boundary check for the value read from RM3100_REG_TMRC Recently, we encounter kernel crash in function rm3100_common_probe caused by out of bound access of array rm3100_samp_rates (because of underlying hardware failures). Add boundary check to prevent out of bound access.

Weaknesses (CWE)

  • CWE-125 — Out-of-bounds Read

References

Scores

VersionScoreVectorScored by
CVSS 3.1MEDIUM 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HCISA-ADP
CVSS 3.1MEDIUM 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HNVD · 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected 121354b2eceb2669ebdffa76b105ad6c03413966 < 7200170e88e3ec54d9e9c63f07514c3cead11481 ; affected 121354b2eceb2669ebdffa76b105ad6c03413966 < 36a49290d7e6d554020057a409747a092b1d3b56 ; affected 121354b2eceb2669ebdffa76b105ad6c03413966 < 8d5838a473e8e6d812257c69745f5920e4924a60 ; affected 121354b2eceb2669ebdffa76b105ad6c03413966 < 176256ff8abff29335ecff905a09fb49e8dcf513 ; affected 121354b2eceb2669ebdffa76b105ad6c03413966 < 1d8c67e94e9e977603473a543d4f322cf2c4aa01 ; affected 121354b2eceb2669ebdffa76b105ad6c03413966 < 57d05dbbcd0b3dc0c252103b43012eef5d6430d1
Linux · Linuxaffected 5.0 ; unaffected 0 < 5.0 ; unaffected 5.4.269 ≤ 5.4.* ; unaffected 5.10.210 ≤ 5.10.* ; unaffected 5.15.149 ≤ 5.15.* ; unaffected 6.1.79 ≤ 6.1.*

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