s390/dasd: fix error checks in dasd_copy_pair_store() (Linux Linux)

CVE-2024-42320
MEDIUM 5.5

At a glance

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

Description

In the Linux kernel, the following vulnerability has been resolved: s390/dasd: fix error checks in dasd_copy_pair_store() dasd_add_busid() can return an error via ERR_PTR() if an allocation fails. However, two callsites in dasd_copy_pair_store() do not check the result, potentially resulting in a NULL pointer dereference. Fix this by checking the result with IS_ERR() and returning the error up the stack.

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:HNVD · nvd@nist.gov (Primary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected a91ff09d39f9b6545254839ac91f1ff7bd21d39e < cc8b7284d5076722e0b8062373b68d8e47c3bace ; affected a91ff09d39f9b6545254839ac91f1ff7bd21d39e < e511167e65d332d07b3c7a3d5a741ee9c19a8c27 ; affected a91ff09d39f9b6545254839ac91f1ff7bd21d39e < 68d4c3722290ad300c295fb3435e835d200d5cb2 ; affected a91ff09d39f9b6545254839ac91f1ff7bd21d39e < 8e64d2356cbc800b4cd0e3e614797f76bcf0cdb8 ; affected 932600a295cc299d470ca7f5d6491bd0dfc99ea7 ; affected 5.15.153 < 5.16
Linux · Linuxaffected 6.1 ; unaffected 0 < 6.1 ; unaffected 6.1.103 ≤ 6.1.* ; unaffected 6.6.44 ≤ 6.6.* ; unaffected 6.10.3 ≤ 6.10.* ; unaffected 6.11 ≤ *

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