s390/dasd: fix error checks in dasd_copy_pair_store()
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.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 6.1.103, 6.10.3, 6.6.44
- CVEs
- CVE-2024-42320
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 7 Nov 2026, 01:05 UTC · Revision 1
Source evidence
s390/dasd: fix error checks in dasd_copy_pair_store()
core-osv · Original sourcePublished 17 Aug 2024, 09:09 UTC
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.
osv:CVE-2024-42320
Kernel
Fixed versions: 6.1.103, 6.6.44, 6.10.3
Complete source record
{
"id": "a38477345a1e80547b9ec55610fe4088e20c26e7065d25cc389aab68f17c6704",
"url": "https://osv.dev/vulnerability/CVE-2024-42320",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "s390/dasd: fix error checks in dasd_copy_pair_store()",
"summary": "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.",
"evidence": "osv:CVE-2024-42320",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "6.1.103",
"evidence": "/affected/1/ranges"
},
{
"value": "6.6.44",
"evidence": "/affected/1/ranges"
},
{
"value": "6.10.3",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "unknown",
"structured": {
"id": "CVE-2024-42320",
"aliases": [
"CVE-2024-42320"
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "a91ff09d39f9b6545254839ac91f1ff7bd21d39e"
},
{
"fixed": "cc8b7284d5076722e0b8062373b68d8e47c3bace"
},
{
"fixed": "e511167e65d332d07b3c7a3d5a741ee9c19a8c27"
},
{
"fixed": "68d4c3722290ad300c295fb3435e835d200d5cb2"
},
{
"fixed": "8e64d2356cbc800b4cd0e3e614797f76bcf0cdb8"
}
]
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "5.15.153"
},
{
"fixed": "5.16"
}
]
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "932600a295cc299d470ca7f5d6491bd0dfc99ea7"
}
]
}
],
"versions": [
"v5.15.223",
"v5.15.222",
"v5.15.221",
"v5.15.220",
"v5.15.219",
"v5.15.218",
"v5.15.217",
"v5.15.216",
"v5.15.215",
"v5.15.214",
"v5.15.213",
"v5.15.212",
"v5.15.211",
"v5.15.210",
"v5.15.209",
"v5.15.208",
"v5.15.207",
"v5.15.206",
"v5.15.205",
"v5.15.204",
"v5.15.203",
"v5.15.202",
"v5.15.201",
"v5.15.200",
"v5.15.199",
"v5.15.198",
"v5.15.197",
"v5.15.196",
"v5.15.195",
"v5.15.194",
"v5.15.193",
"v5.15.192",
"v5.15.191",
"v5.15.190",
"v5.15.189",
"v5.15.188",
"v5.15.187",
"v5.15.186",
"v5.15.185",
"v5.15.184",
"v5.15.183",
"v5.15.182",
"v5.15.181",
"v5.15.180",
"v5.15.179",
"v5.15.178",
"v5.15.177",
"v5.15.176",
"v5.15.175",
"v5.15.174",
"v5.15.173",
"v5.15.172",
"v5.15.171",
"v5.15.170",
"v5.15.169",
"v5.15.168",
"v5.15.167",
"v5.15.166",
"v5.15.165",
"v5.15.164",
"v5.15.163",
"v5.15.162",
"v5.15.161",
"v5.15.160",
"v5.15.159",
"v5.15.158",
"v5.15.157",
"v5.15.156",
"v5.15.155",
"v5.15.154",
"v5.15.153"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-42320.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.1.0"
},
{
"fixed": "6.1.103"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.2.0"
},
{
"fixed": "6.6.44"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.7.0"
},
{
"fixed": "6.10.3"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-42320.json"
}
}
],
"modified": "2026-10-28T02:30:48.772469937Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/68d4c3722290ad300c295fb3435e835d200d5cb2",
"https://git.kernel.org/stable/c/8e64d2356cbc800b4cd0e3e614797f76bcf0cdb8",
"https://git.kernel.org/stable/c/cc8b7284d5076722e0b8062373b68d8e47c3bace",
"https://git.kernel.org/stable/c/e511167e65d332d07b3c7a3d5a741ee9c19a8c27",
"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/42xxx/CVE-2024-42320.json",
"https://nvd.nist.gov/vuln/detail/CVE-2024-42320",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/42xxx/CVE-2024-42320.json"
}
},
"related_cves": [
{
"value": "CVE-2024-42320",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 516842,
"published_at": "2024-08-17T09:09:32.695+00:00"
}