can: ems_usb: ems_usb_read_bulk_callback(): check the proper length of a message (Linux Linux)

CVE-2026-23307
MEDIUM 5.5

At a glance

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

Description

In the Linux kernel, the following vulnerability has been resolved: can: ems_usb: ems_usb_read_bulk_callback(): check the proper length of a message When looking at the data in a USB urb, the actual_length is the size of the buffer passed to the driver, not the transfer_buffer_length which is set by the driver as the max size of the buffer. When parsing the messages in ems_usb_read_bulk_callback() properly check the size both at the beginning of parsing the message to make sure it is big enough for the expected structure, and at the end of the message to make sure we don't overflow past the end of the buffer for the next message.

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 702171adeed3607ee9603ec30ce081411e36ae42 < aed172a2e2330131f0977d2acd3ec8883f413ec1 ; affected 702171adeed3607ee9603ec30ce081411e36ae42 < f10177e6c4575aedaea580ce67d792fab7a2235e ; affected 702171adeed3607ee9603ec30ce081411e36ae42 < c703bbf8e9b4947e111c88d2ed09236a6772a471 ; affected 702171adeed3607ee9603ec30ce081411e36ae42 < 1818974e1b5ef200e27f144c8cb8a246420bb54d ; affected 702171adeed3607ee9603ec30ce081411e36ae42 < 18f75b9cbdc3703f15965425ab69dee509b07785 ; affected 702171adeed3607ee9603ec30ce081411e36ae42 < 1cf469026d4a2308eaa91d04dca4a900d07a5c2e
Linux · Linuxaffected 2.6.32 ; unaffected 0 < 2.6.32 ; unaffected 5.10.253 ≤ 5.10.* ; unaffected 5.15.203 ≤ 5.15.* ; unaffected 6.1.167 ≤ 6.1.* ; unaffected 6.6.130 ≤ 6.6.*

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