powerpc/pseries: Fix potential memleak in papr_get_attr() (Linux Linux)

CVE-2022-48669
MEDIUM 5.5

At a glance

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

Description

In the Linux kernel, the following vulnerability has been resolved: powerpc/pseries: Fix potential memleak in papr_get_attr() `buf` is allocated in papr_get_attr(), and krealloc() of `buf` could fail. We need to free the original `buf` in the case of failure.

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: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 · 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected 3c14b73454cf9f6e2146443fdfbdfb912c0efed3 < a3f22feb2220a945d1c3282e34199e8bcdc5afc4 ; affected 3c14b73454cf9f6e2146443fdfbdfb912c0efed3 < 1699fb915b9f61794d559b55114c09a390aaf234 ; affected 3c14b73454cf9f6e2146443fdfbdfb912c0efed3 < 7f7d39fe3d80d6143404940b2413010cf6527029 ; affected 3c14b73454cf9f6e2146443fdfbdfb912c0efed3 < d0647c3e81eff62b66d46fd4e475318cb8cb3610 ; affected 3c14b73454cf9f6e2146443fdfbdfb912c0efed3 < cda9c0d556283e2d4adaa9960b2dc19b16156bae
Linux · Linuxaffected 5.18 ; unaffected 0 < 5.18 ; unaffected 6.1.83 ≤ 6.1.* ; unaffected 6.6.23 ≤ 6.6.* ; unaffected 6.7.11 ≤ 6.7.* ; unaffected 6.8.2 ≤ 6.8.*

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