erofs: validate the extent length for uncompressed pclusters
In the Linux kernel, the following vulnerability has been resolved: erofs: validate the extent length for uncompressed pclusters syzkaller reported a KASAN use-after-free: https://syzkaller.appspot.com/bug?extid=2ae90e873e97f1faf6f2 The referenced fuzzed image actually has two issues: - m_pa == 0 as a non-inlined pcluster; - The logical length is longer than its physical length. The first issue has already been addressed. This patch addresses the second issue by checking the extent length validity.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 6.0.16, 6.1.2
- CVEs
- CVE-2022-50746
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 3 Nov 2026, 06:48 UTC · Revision 1
Source evidence
erofs: validate the extent length for uncompressed pclusters
core-osv · Original sourcePublished 24 Dec 2025, 13:05 UTC
In the Linux kernel, the following vulnerability has been resolved: erofs: validate the extent length for uncompressed pclusters syzkaller reported a KASAN use-after-free: https://syzkaller.appspot.com/bug?extid=2ae90e873e97f1faf6f2 The referenced fuzzed image actually has two issues: - m_pa == 0 as a non-inlined pcluster; - The logical length is longer than its physical length. The first issue has already been addressed. This patch addresses the second issue by checking the extent length validity.
osv:CVE-2022-50746
Kernel
Fixed versions: 6.0.16, 6.1.2
Complete source record
{
"id": "b658fff0274ae756edc7595664e0eefa4c154a416cce25d8bf2ec3e598345aa8",
"url": "https://osv.dev/vulnerability/CVE-2022-50746",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "erofs: validate the extent length for uncompressed pclusters",
"summary": "In the Linux kernel, the following vulnerability has been resolved: erofs: validate the extent length for uncompressed pclusters syzkaller reported a KASAN use-after-free: https://syzkaller.appspot.com/bug?extid=2ae90e873e97f1faf6f2 The referenced fuzzed image actually has two issues: - m_pa == 0 as a non-inlined pcluster; - The logical length is longer than its physical length. The first issue has already been addressed. This patch addresses the second issue by checking the extent length validity.",
"evidence": "osv:CVE-2022-50746",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "6.0.16",
"evidence": "/affected/1/ranges"
},
{
"value": "6.1.2",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "high",
"structured": {
"id": "CVE-2022-50746",
"aliases": [
"CVE-2022-50746"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "02827e1796b33f1794966f5c3101f8da2dfa9c1d"
},
{
"fixed": "dc8b6bd587b13b85aff6e9d36cdfcd3f955cac9e"
},
{
"fixed": "40c73b2ea9611b5388807be406f30f5e4e1162da"
},
{
"fixed": "c505feba4c0d76084e56ec498ce819f02a7043ae"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50746.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "4.19.0"
},
{
"fixed": "6.0.16"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.1.0"
},
{
"fixed": "6.1.2"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50746.json"
}
}
],
"modified": "2026-10-28T02:30:26.665484692Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/40c73b2ea9611b5388807be406f30f5e4e1162da",
"https://git.kernel.org/stable/c/c505feba4c0d76084e56ec498ce819f02a7043ae",
"https://git.kernel.org/stable/c/dc8b6bd587b13b85aff6e9d36cdfcd3f955cac9e",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50746.json",
"https://nvd.nist.gov/vuln/detail/CVE-2022-50746",
"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/2022/50xxx/CVE-2022-50746.json"
}
},
"related_cves": [
{
"value": "CVE-2022-50746",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 493138,
"published_at": "2025-12-24T13:05:42.628+00:00"
}