CVE-2022-50313 (GCVE-0-2022-50313)
Vulnerability from cvelistv5 – Published: 2025-09-15 14:46 – Updated: 2026-05-11 19:16
VLAI
EPSS
VEX
Title
erofs: fix order >= MAX_ORDER warning due to crafted negative i_size
Summary
In the Linux kernel, the following vulnerability has been resolved:
erofs: fix order >= MAX_ORDER warning due to crafted negative i_size
As syzbot reported [1], the root cause is that i_size field is a
signed type, and negative i_size is also less than EROFS_BLKSIZ.
As a consequence, it's handled as fast symlink unexpectedly.
Let's fall back to the generic path to deal with such unusual i_size.
[1] https://lore.kernel.org/r/000000000000ac8efa05e7feaa1f@google.com
Severity
5.5 (Medium)
Assigner
References
6 references
Impacted products
2 products
| Vendor | Product | Version | |
|---|---|---|---|
| Linux | Linux |
Affected:
431339ba90423a038914c6032bfd71f0ba7ef2f2 , < 17a0cdbd7b0cf0fc0d7ca4187a67f8f1c18c291f
(git)
Affected: 431339ba90423a038914c6032bfd71f0ba7ef2f2 , < 0ab621fcdff1a58ff4de51a8590fa92a0ecd34be (git) Affected: 431339ba90423a038914c6032bfd71f0ba7ef2f2 , < acc2f40b980c61a9178b72cdedd150b829064997 (git) Affected: 431339ba90423a038914c6032bfd71f0ba7ef2f2 , < b6c8330f5b0f22149957a2e4977fd0f01a9db7cd (git) Affected: 431339ba90423a038914c6032bfd71f0ba7ef2f2 , < 6235fb899b25fd287d5e42635ff82196395708cc (git) Affected: 431339ba90423a038914c6032bfd71f0ba7ef2f2 , < 1dd73601a1cba37a0ed5f89a8662c90191df5873 (git) |
|
| Linux | Linux |
Affected:
4.19
Unaffected: 0 , < 4.19 (semver) Unaffected: 5.4.289 , ≤ 5.4.* (semver) Unaffected: 5.10.233 , ≤ 5.10.* (semver) Unaffected: 5.15.82 , ≤ 5.15.* (semver) Unaffected: 5.19.17 , ≤ 5.19.* (semver) Unaffected: 6.0.3 , ≤ 6.0.* (semver) Unaffected: 6.1 , ≤ * (original_commit_for_fix) |
{
"containers": {
"cna": {
"affected": [
{
"defaultStatus": "unaffected",
"product": "Linux",
"programFiles": [
"fs/erofs/inode.c"
],
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"versions": [
{
"lessThan": "17a0cdbd7b0cf0fc0d7ca4187a67f8f1c18c291f",
"status": "affected",
"version": "431339ba90423a038914c6032bfd71f0ba7ef2f2",
"versionType": "git"
},
{
"lessThan": "0ab621fcdff1a58ff4de51a8590fa92a0ecd34be",
"status": "affected",
"version": "431339ba90423a038914c6032bfd71f0ba7ef2f2",
"versionType": "git"
},
{
"lessThan": "acc2f40b980c61a9178b72cdedd150b829064997",
"status": "affected",
"version": "431339ba90423a038914c6032bfd71f0ba7ef2f2",
"versionType": "git"
},
{
"lessThan": "b6c8330f5b0f22149957a2e4977fd0f01a9db7cd",
"status": "affected",
"version": "431339ba90423a038914c6032bfd71f0ba7ef2f2",
"versionType": "git"
},
{
"lessThan": "6235fb899b25fd287d5e42635ff82196395708cc",
"status": "affected",
"version": "431339ba90423a038914c6032bfd71f0ba7ef2f2",
"versionType": "git"
},
{
"lessThan": "1dd73601a1cba37a0ed5f89a8662c90191df5873",
"status": "affected",
"version": "431339ba90423a038914c6032bfd71f0ba7ef2f2",
"versionType": "git"
}
]
},
{
"defaultStatus": "affected",
"product": "Linux",
"programFiles": [
"fs/erofs/inode.c"
],
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"versions": [
{
"status": "affected",
"version": "4.19"
},
{
"lessThan": "4.19",
"status": "unaffected",
"version": "0",
"versionType": "semver"
},
{
"lessThanOrEqual": "5.4.*",
"status": "unaffected",
"version": "5.4.289",
"versionType": "semver"
},
{
"lessThanOrEqual": "5.10.*",
"status": "unaffected",
"version": "5.10.233",
"versionType": "semver"
},
{
"lessThanOrEqual": "5.15.*",
"status": "unaffected",
"version": "5.15.82",
"versionType": "semver"
},
{
"lessThanOrEqual": "5.19.*",
"status": "unaffected",
"version": "5.19.17",
"versionType": "semver"
},
{
"lessThanOrEqual": "6.0.*",
"status": "unaffected",
"version": "6.0.3",
"versionType": "semver"
},
{
"lessThanOrEqual": "*",
"status": "unaffected",
"version": "6.1",
"versionType": "original_commit_for_fix"
}
]
}
],
"cpeApplicability": [
{
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "5.4.289",
"versionStartIncluding": "4.19",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "5.10.233",
"versionStartIncluding": "4.19",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "5.15.82",
"versionStartIncluding": "4.19",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "5.19.17",
"versionStartIncluding": "4.19",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "6.0.3",
"versionStartIncluding": "4.19",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "6.1",
"versionStartIncluding": "4.19",
"vulnerable": true
}
],
"negate": false,
"operator": "OR"
}
]
}
],
"descriptions": [
{
"lang": "en",
"value": "In the Linux kernel, the following vulnerability has been resolved:\n\nerofs: fix order \u003e= MAX_ORDER warning due to crafted negative i_size\n\nAs syzbot reported [1], the root cause is that i_size field is a\nsigned type, and negative i_size is also less than EROFS_BLKSIZ.\nAs a consequence, it\u0027s handled as fast symlink unexpectedly.\n\nLet\u0027s fall back to the generic path to deal with such unusual i_size.\n\n[1] https://lore.kernel.org/r/000000000000ac8efa05e7feaa1f@google.com"
}
],
"providerMetadata": {
"dateUpdated": "2026-05-11T19:16:53.874Z",
"orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"shortName": "Linux"
},
"references": [
{
"url": "https://git.kernel.org/stable/c/17a0cdbd7b0cf0fc0d7ca4187a67f8f1c18c291f"
},
{
"url": "https://git.kernel.org/stable/c/0ab621fcdff1a58ff4de51a8590fa92a0ecd34be"
},
{
"url": "https://git.kernel.org/stable/c/acc2f40b980c61a9178b72cdedd150b829064997"
},
{
"url": "https://git.kernel.org/stable/c/b6c8330f5b0f22149957a2e4977fd0f01a9db7cd"
},
{
"url": "https://git.kernel.org/stable/c/6235fb899b25fd287d5e42635ff82196395708cc"
},
{
"url": "https://git.kernel.org/stable/c/1dd73601a1cba37a0ed5f89a8662c90191df5873"
}
],
"title": "erofs: fix order \u003e= MAX_ORDER warning due to crafted negative i_size",
"x_generator": {
"engine": "bippy-1.2.0"
}
}
},
"cveMetadata": {
"assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"assignerShortName": "Linux",
"cveId": "CVE-2022-50313",
"datePublished": "2025-09-15T14:46:08.357Z",
"dateReserved": "2025-09-15T14:18:36.813Z",
"dateUpdated": "2026-05-11T19:16:53.874Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2",
"vulnerability-lookup:meta": {
"epss": {
"cve": "CVE-2022-50313",
"date": "2026-11-16",
"epss": "0.00166",
"percentile": "0.05929"
},
"nvd": {
"cve": {
"affected": [
{
"affectedData": [
{
"defaultStatus": "unaffected",
"product": "Linux",
"programFiles": [
"fs/erofs/inode.c"
],
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"versions": [
{
"lessThan": "17a0cdbd7b0cf0fc0d7ca4187a67f8f1c18c291f",
"status": "affected",
"version": "431339ba90423a038914c6032bfd71f0ba7ef2f2",
"versionType": "git"
},
{
"lessThan": "0ab621fcdff1a58ff4de51a8590fa92a0ecd34be",
"status": "affected",
"version": "431339ba90423a038914c6032bfd71f0ba7ef2f2",
"versionType": "git"
},
{
"lessThan": "acc2f40b980c61a9178b72cdedd150b829064997",
"status": "affected",
"version": "431339ba90423a038914c6032bfd71f0ba7ef2f2",
"versionType": "git"
},
{
"lessThan": "b6c8330f5b0f22149957a2e4977fd0f01a9db7cd",
"status": "affected",
"version": "431339ba90423a038914c6032bfd71f0ba7ef2f2",
"versionType": "git"
},
{
"lessThan": "6235fb899b25fd287d5e42635ff82196395708cc",
"status": "affected",
"version": "431339ba90423a038914c6032bfd71f0ba7ef2f2",
"versionType": "git"
},
{
"lessThan": "1dd73601a1cba37a0ed5f89a8662c90191df5873",
"status": "affected",
"version": "431339ba90423a038914c6032bfd71f0ba7ef2f2",
"versionType": "git"
}
]
},
{
"defaultStatus": "affected",
"product": "Linux",
"programFiles": [
"fs/erofs/inode.c"
],
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"versions": [
{
"status": "affected",
"version": "4.19"
},
{
"lessThan": "4.19",
"status": "unaffected",
"version": "0",
"versionType": "semver"
},
{
"lessThanOrEqual": "5.4.*",
"status": "unaffected",
"version": "5.4.289",
"versionType": "semver"
},
{
"lessThanOrEqual": "5.10.*",
"status": "unaffected",
"version": "5.10.233",
"versionType": "semver"
},
{
"lessThanOrEqual": "5.15.*",
"status": "unaffected",
"version": "5.15.82",
"versionType": "semver"
},
{
"lessThanOrEqual": "5.19.*",
"status": "unaffected",
"version": "5.19.17",
"versionType": "semver"
},
{
"lessThanOrEqual": "6.0.*",
"status": "unaffected",
"version": "6.0.3",
"versionType": "semver"
},
{
"lessThanOrEqual": "*",
"status": "unaffected",
"version": "6.1",
"versionType": "original_commit_for_fix"
}
]
}
],
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
}
],
"configurations": [
{
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"matchCriteriaId": "46A5E223-5899-4E46-B76B-C78D39EB0277",
"versionEndExcluding": "5.4.289",
"versionStartIncluding": "4.19",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"matchCriteriaId": "44569A17-FE4C-4BE3-9C0C-74AC54C7B51B",
"versionEndExcluding": "5.10.233",
"versionStartIncluding": "5.5",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"matchCriteriaId": "0DC20DB6-73C1-4465-B931-117BFB8EBB02",
"versionEndExcluding": "5.15.82",
"versionStartIncluding": "5.11",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"matchCriteriaId": "19B4C3A4-E5C3-41DC-BB14-BE72858E7D35",
"versionEndExcluding": "5.19.17",
"versionStartIncluding": "5.16",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"matchCriteriaId": "5BCD8201-B847-4442-B894-70D430128DEF",
"versionEndExcluding": "6.0.3",
"versionStartIncluding": "6.0",
"vulnerable": true
}
],
"negate": false,
"operator": "OR"
}
]
}
],
"cveTags": [],
"descriptions": [
{
"lang": "en",
"value": "In the Linux kernel, the following vulnerability has been resolved:\n\nerofs: fix order \u003e= MAX_ORDER warning due to crafted negative i_size\n\nAs syzbot reported [1], the root cause is that i_size field is a\nsigned type, and negative i_size is also less than EROFS_BLKSIZ.\nAs a consequence, it\u0027s handled as fast symlink unexpectedly.\n\nLet\u0027s fall back to the generic path to deal with such unusual i_size.\n\n[1] https://lore.kernel.org/r/000000000000ac8efa05e7feaa1f@google.com"
}
],
"id": "CVE-2022-50313",
"lastModified": "2026-06-17T05:23:12.797",
"metrics": {
"cvssMetricV31": [
{
"cvssData": {
"attackComplexity": "LOW",
"attackVector": "LOCAL",
"availabilityImpact": "HIGH",
"baseScore": 5.5,
"baseSeverity": "MEDIUM",
"confidentialityImpact": "NONE",
"integrityImpact": "NONE",
"privilegesRequired": "LOW",
"scope": "UNCHANGED",
"userInteraction": "NONE",
"vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H",
"version": "3.1"
},
"exploitabilityScore": 1.8,
"impactScore": 3.6,
"source": "nvd@nist.gov",
"type": "Primary"
}
]
},
"published": "2025-09-15T15:15:43.120",
"references": [
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"tags": [
"Patch"
],
"url": "https://git.kernel.org/stable/c/0ab621fcdff1a58ff4de51a8590fa92a0ecd34be"
},
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"tags": [
"Patch"
],
"url": "https://git.kernel.org/stable/c/17a0cdbd7b0cf0fc0d7ca4187a67f8f1c18c291f"
},
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"tags": [
"Patch"
],
"url": "https://git.kernel.org/stable/c/1dd73601a1cba37a0ed5f89a8662c90191df5873"
},
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"tags": [
"Patch"
],
"url": "https://git.kernel.org/stable/c/6235fb899b25fd287d5e42635ff82196395708cc"
},
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"tags": [
"Patch"
],
"url": "https://git.kernel.org/stable/c/acc2f40b980c61a9178b72cdedd150b829064997"
},
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"tags": [
"Patch"
],
"url": "https://git.kernel.org/stable/c/b6c8330f5b0f22149957a2e4977fd0f01a9db7cd"
}
],
"sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"vulnStatus": "Analyzed",
"weaknesses": [
{
"description": [
{
"lang": "en",
"value": "NVD-CWE-noinfo"
}
],
"source": "nvd@nist.gov",
"type": "Primary"
}
]
}
},
"redhat_vex": {
"aggregate_severity": "Moderate",
"current_release_date": "2026-11-07T03:37:16+00:00",
"cve": "CVE-2022-50313",
"id": "CVE-2022-50313",
"initial_release_date": "2022-01-01T00:00:00+00:00",
"product_status:fixed": "279",
"product_status:known_affected": "22",
"product_status:known_not_affected": "91",
"source": "Red Hat CSAF VEX",
"status": "final",
"title": "kernel: erofs: fix order \u003e= MAX_ORDER warning due to crafted negative i_size",
"url": "https://security.access.redhat.com/data/csaf/v2/vex/2022/cve-2022-50313.json",
"version": "3"
},
"suse_vex": {
"aggregate_severity": "moderate",
"current_release_date": "2026-10-16T14:06:47Z",
"cve": "CVE-2022-50313",
"id": "CVE-2022-50313",
"initial_release_date": "2025-09-15T23:29:19Z",
"product_status:known_affected": "130",
"product_status:known_not_affected": "390",
"product_status:recommended": "58",
"source": "SUSE CSAF VEX",
"status": "interim",
"title": "SUSE CVE CVE-2022-50313",
"url": "https://ftp.suse.com/pub/projects/security/csaf-vex/2025/cve-2022-50313.json",
"version": "12"
}
}
}
Loading…
Loading…
Experimental. This forecast is provided for visualization only and may change without notice. Do not use it for operational decisions.
Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
Loading…
The MITRE ATT&CK techniques below are AI-generated suggestions, inferred from the description of the
vulnerability by the CIRCL/vulnerability-attack-technique-classification-roberta-base
model, served locally by ML-Gateway.
They have not been verified by an analyst and are provided for guidance only.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Loading…
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.
Loading…