hwmon: (coretemp) fix pci device refcount leak in nv1a_ram_new() (Linux Linux)

CVE-2022-49011
MEDIUM 5.5

At a glance

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

Description

In the Linux kernel, the following vulnerability has been resolved: hwmon: (coretemp) fix pci device refcount leak in nv1a_ram_new() As comment of pci_get_domain_bus_and_slot() says, it returns a pci device with refcount increment, when finish using it, the caller must decrement the reference count by calling pci_dev_put(). So call it after using to avoid refcount leak.

Weaknesses (CWE)

  • CWE-401 — Missing Release of Memory after Effective Lifetime

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 14513ee696a0cd12a19318e433b75a786808adc3 < bb75a0d1223d43f97089841aecb28a9b4de687a9 ; affected 14513ee696a0cd12a19318e433b75a786808adc3 < 0dd1da5a15eeecb2fe4cf131b3216fb455af783c ; affected 14513ee696a0cd12a19318e433b75a786808adc3 < 2f74cffc7c85f770b1b1833dccb03b8cde3be102 ; affected 14513ee696a0cd12a19318e433b75a786808adc3 < ea5844f946b1ec5c0b7c115cd7684f34fd48021b ; affected 14513ee696a0cd12a19318e433b75a786808adc3 < c40db1e5f316792b557d2be37e447c20d9ac4635 ; affected 14513ee696a0cd12a19318e433b75a786808adc3 < 6e035d5a2a6b907cfce9a80c5f442c2e459cd34e
Linux · Linuxaffected 3.14 ; unaffected 0 < 3.14 ; unaffected 4.9.335 ≤ 4.9.* ; unaffected 4.14.301 ≤ 4.14.* ; unaffected 4.19.268 ≤ 4.19.* ; unaffected 5.4.226 ≤ 5.4.*

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