drm/nouveau: prime: fix refcount underflow (Linux Linux)

CVE-2024-43867
MEDIUM 5.5

At a glance

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

Description

In the Linux kernel, the following vulnerability has been resolved: drm/nouveau: prime: fix refcount underflow Calling nouveau_bo_ref() on a nouveau_bo without initializing it (and hence the backing ttm_bo) leads to a refcount underflow. Instead of calling nouveau_bo_ref() in the unwind path of drm_gem_object_init(), clean things up manually. (cherry picked from commit 1b93f3e89d03cfc576636e195466a0d728ad8de5)

Weaknesses (CWE)

  • CWE-191 — Integer Underflow (Wrap or Wraparound)

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 ab9ccb96a6e6f95bcde6b8b2a524370efdbfdcd6 < 3bcb8bba72ce89667fa863054956267c450c47ef ; affected ab9ccb96a6e6f95bcde6b8b2a524370efdbfdcd6 < 906372e753c5027a1dc88743843b6aa2ad1aaecf ; affected ab9ccb96a6e6f95bcde6b8b2a524370efdbfdcd6 < 16998763c62bb465ebc409d0373b9cdcef1a61a6 ; affected ab9ccb96a6e6f95bcde6b8b2a524370efdbfdcd6 < ebebba4d357b6c67f96776a48ddbaf0060fa4c10 ; affected ab9ccb96a6e6f95bcde6b8b2a524370efdbfdcd6 < f23cd66933fe76b84d8e282e5606b4d99068c320 ; affected ab9ccb96a6e6f95bcde6b8b2a524370efdbfdcd6 < 2a1b327d57a8ac080977633a18999f032d7e9e3f
Linux · Linuxaffected 3.9 ; unaffected 0 < 3.9 ; unaffected 5.4.282 ≤ 5.4.* ; unaffected 5.10.224 ≤ 5.10.* ; unaffected 5.15.165 ≤ 5.15.* ; unaffected 6.1.104 ≤ 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