cxl/acpi: Fix a use-after-free in cxl_parse_cfmws() (Linux Linux)

CVE-2023-53479
HIGH 7.8

At a glance

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

Description

In the Linux kernel, the following vulnerability has been resolved: cxl/acpi: Fix a use-after-free in cxl_parse_cfmws() KASAN and KFENCE detected an user-after-free in the CXL driver. This happens in the cxl_decoder_add() fail path. KASAN prints the following error: BUG: KASAN: slab-use-after-free in cxl_parse_cfmws (drivers/cxl/acpi.c:299) This happens in cxl_parse_cfmws(), where put_device() is called, releasing cxld, which is accessed later. Use the local variables in the dev_err() instead of pointing to the released memory. Since the dev_err() is printing a resource, change the open coded print format to use the %pr format specifier.

Weaknesses (CWE)

References

Scores

VersionScoreVectorScored by
CVSS 3.1HIGH 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HNVD · nvd@nist.gov (Primary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected e50fe01e1f2a4aba2275edee7d5c77ac87674ddb < 748fadc08bcbdaf573b34d9784bb3dbd87441dbf ; affected e50fe01e1f2a4aba2275edee7d5c77ac87674ddb < 316db489647b8ddc381682597e89787eac61a278 ; affected e50fe01e1f2a4aba2275edee7d5c77ac87674ddb < 4cf67d3cc9994a59cf77bb9c0ccf9007fe916afe
Linux · Linuxaffected 6.0 ; unaffected 0 < 6.0 ; unaffected 6.1.43 ≤ 6.1.* ; unaffected 6.4.8 ≤ 6.4.* ; unaffected 6.5 ≤ *

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