usb: dwc3: gadget: Fix looping of queued SG entries (Linux Linux)

CVE-2024-56698
MEDIUM 5.5

At a glance

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

Description

In the Linux kernel, the following vulnerability has been resolved: usb: dwc3: gadget: Fix looping of queued SG entries The dwc3_request->num_queued_sgs is decremented on completion. If a partially completed request is handled, then the dwc3_request->num_queued_sgs no longer reflects the total number of num_queued_sgs (it would be cleared). Correctly check the number of request SG entries remained to be prepare and queued. Failure to do this may cause null pointer dereference when accessing non-existent SG entry.

Weaknesses (CWE)

  • CWE-476 — NULL Pointer Dereference

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 · nvd@nist.gov (Primary)
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 c96e6725db9d6a04ac1bee881e3034b636d9f71c < 8ceb21d76426bbe7072cc3e43281e70c0d664cc7 ; affected c96e6725db9d6a04ac1bee881e3034b636d9f71c < 0247da93bf62d33304b7bf97850ebf2a86e06d28 ; affected c96e6725db9d6a04ac1bee881e3034b636d9f71c < c9e72352a10ae89a430449f7bfeb043e75c255d9 ; affected c96e6725db9d6a04ac1bee881e3034b636d9f71c < 1534f6f69393aac773465d80d31801b554352627 ; affected c96e6725db9d6a04ac1bee881e3034b636d9f71c < b7c3d0b59213ebeedff63d128728ce0b3d7a51ec ; affected c96e6725db9d6a04ac1bee881e3034b636d9f71c < 70777a23a54e359cfdfafc625a57cd56434f3859
Linux · Linuxaffected 4.18 ; unaffected 0 < 4.18 ; unaffected 5.10.231 ≤ 5.10.* ; unaffected 5.15.174 ≤ 5.15.* ; unaffected 6.1.120 ≤ 6.1.* ; unaffected 6.6.64 ≤ 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