fbdev: omapfb: Add 'plane' value check (Linux Linux)

CVE-2025-37851
MEDIUM 5.5

At a glance

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

Description

In the Linux kernel, the following vulnerability has been resolved: fbdev: omapfb: Add 'plane' value check Function dispc_ovl_setup is not intended to work with the value OMAP_DSS_WB of the enum parameter plane. The value of this parameter is initialized in dss_init_overlays and in the current state of the code it cannot take this value so it's not a real problem. For the purposes of defensive coding it wouldn't be superfluous to check the parameter value, because some functions down the call stack process this value correctly and some not. For example, in dispc_ovl_setup_global_alpha it may lead to buffer overflow. Add check for this value. Found by Linux Verification Center (linuxtesting.org) with SVACE static analysis tool.

Weaknesses (CWE)

  • CWE-674 — Uncontrolled Recursion

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:HNVD · nvd@nist.gov (Primary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected 559d67018950ced65c73358cd69c4bdd2b0c5dd6 < a570efb4d877adbf3db2dc95487f2ba6bfdd148a ; affected 559d67018950ced65c73358cd69c4bdd2b0c5dd6 < cdf41d72e8b015d9ea68f5a1c0a79624e7c312aa ; affected 559d67018950ced65c73358cd69c4bdd2b0c5dd6 < 09dbf22fd68c2f1a81ab89670ffa1ec3033436c4 ; affected 559d67018950ced65c73358cd69c4bdd2b0c5dd6 < 660a53a0694d1f3789802509fe729dd4656fc5e0 ; affected 559d67018950ced65c73358cd69c4bdd2b0c5dd6 < fda15c5b96b883d62fb2d84a3a1422aa87717897 ; affected 559d67018950ced65c73358cd69c4bdd2b0c5dd6 < 52eafaa56f8f6d6a0cdff9282b25b4acbde34edc
Linux · Linuxaffected 2.6.33 ; unaffected 0 < 2.6.33 ; unaffected 5.4.293 ≤ 5.4.* ; unaffected 5.10.237 ≤ 5.10.* ; unaffected 5.15.181 ≤ 5.15.* ; unaffected 6.1.135 ≤ 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