media: av7110: prevent underflow in write_ts_to_decoder() (Linux Linux)

CVE-2023-54284
HIGH 7.1

At a glance

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

Description

In the Linux kernel, the following vulnerability has been resolved: media: av7110: prevent underflow in write_ts_to_decoder() The buf[4] value comes from the user via ts_play(). It is a value in the u8 range. The final length we pass to av7110_ipack_instant_repack() is "len - (buf[4] + 1) - 4" so add a check to ensure that the length is not negative. It's not clear that passing a negative len value does anything bad necessarily, but it's not best practice. With the new bounds checking the "if (!len)" condition is no longer possible or required so remove that.

References

Scores

VersionScoreVectorScored by
CVSS 3.1HIGH 7.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:HLinux
CVSS 3.1HIGH 7.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:HNVD · 416baaa9-dc9f-4396-8d5f-8c081fb06d67 (Secondary)

European references

CERT-FR advisories

Affected products

ProductVersions
Linux · Linuxaffected fd46d16d602ab7fd53cef7ff55b9dcb0b47ad3bf < 6680af5be9f08d830567e9118f76d3e64684db8f ; affected fd46d16d602ab7fd53cef7ff55b9dcb0b47ad3bf < 6606e2404ee9e20a3ae5b42fc3660d41b739ed3e ; affected fd46d16d602ab7fd53cef7ff55b9dcb0b47ad3bf < 620b983589e0223876bf1463b01100a9c67b56ba ; affected fd46d16d602ab7fd53cef7ff55b9dcb0b47ad3bf < 86ba65e5357bfbb6c082f68b265a292ee1bdde1d ; affected fd46d16d602ab7fd53cef7ff55b9dcb0b47ad3bf < ca4ce92e3ec9fd3c7c936b912b95c53331d5159c ; affected fd46d16d602ab7fd53cef7ff55b9dcb0b47ad3bf < 423350af9e27f005611bd881b1df2cab66de943d
Linux · Linuxaffected 2.6.31 ; unaffected 0 < 2.6.31 ; unaffected 4.14.315 ≤ 4.14.* ; unaffected 4.19.283 ≤ 4.19.* ; unaffected 5.4.243 ≤ 5.4.* ; unaffected 5.10.211 ≤ 5.10.*

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