CVE-2022-49388 (GCVE-0-2022-49388)
Vulnerability from cvelistv5 – Published: 2025-02-26 02:11 – Updated: 2025-05-04 08:36
VLAI?
Title
ubi: ubi_create_volume: Fix use-after-free when volume creation failed
Summary
In the Linux kernel, the following vulnerability has been resolved:
ubi: ubi_create_volume: Fix use-after-free when volume creation failed
There is an use-after-free problem for 'eba_tbl' in ubi_create_volume()'s
error handling path:
ubi_eba_replace_table(vol, eba_tbl)
vol->eba_tbl = tbl
out_mapping:
ubi_eba_destroy_table(eba_tbl) // Free 'eba_tbl'
out_unlock:
put_device(&vol->dev)
vol_release
kfree(tbl->entries) // UAF
Fix it by removing redundant 'eba_tbl' releasing.
Fetch a reproducer in [Link].
Severity ?
7.8 (High)
CWE
- CWE-416 - Use After Free
Assigner
References
Impacted products
| Vendor | Product | Version | |||||||
|---|---|---|---|---|---|---|---|---|---|
| Linux | Linux |
Affected:
493cfaeaa0c9bc0c79ce5751193d49fdac9aaaec , < 25ff1e3a1351c0d936dd1ac2f9e58231ea1510c9
(git)
Affected: 493cfaeaa0c9bc0c79ce5751193d49fdac9aaaec , < abb67043060f2bf4c03d7c3debb9ae980e2b6db3 (git) Affected: 493cfaeaa0c9bc0c79ce5751193d49fdac9aaaec , < 8302620aeb940f386817321d272b12411ae7d39f (git) Affected: 493cfaeaa0c9bc0c79ce5751193d49fdac9aaaec , < 6d8d3f68cbecfd31925796f0fb668eb21ab06734 (git) Affected: 493cfaeaa0c9bc0c79ce5751193d49fdac9aaaec , < 5ff2514e4fb55dcf3d88294686040ca73ea0c1a2 (git) Affected: 493cfaeaa0c9bc0c79ce5751193d49fdac9aaaec , < e27ecf325e51abd06aaefba57a6322a46fa4178b (git) Affected: 493cfaeaa0c9bc0c79ce5751193d49fdac9aaaec , < 1174ab8ba36a48025b68b5ff1085000b1e510217 (git) Affected: 493cfaeaa0c9bc0c79ce5751193d49fdac9aaaec , < 8c03a1c21d72210f81cb369cc528e3fde4b45411 (git) |
|||||||
|
|||||||||
{
"containers": {
"adp": [
{
"metrics": [
{
"cvssV3_1": {
"attackComplexity": "LOW",
"attackVector": "LOCAL",
"availabilityImpact": "HIGH",
"baseScore": 7.8,
"baseSeverity": "HIGH",
"confidentialityImpact": "HIGH",
"integrityImpact": "HIGH",
"privilegesRequired": "LOW",
"scope": "UNCHANGED",
"userInteraction": "NONE",
"vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
"version": "3.1"
}
},
{
"other": {
"content": {
"id": "CVE-2022-49388",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "total"
}
],
"role": "CISA Coordinator",
"timestamp": "2025-02-27T17:58:38.126339Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-416",
"description": "CWE-416 Use After Free",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2025-02-27T18:02:28.848Z",
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP"
},
"title": "CISA ADP Vulnrichment"
}
],
"cna": {
"affected": [
{
"defaultStatus": "unaffected",
"product": "Linux",
"programFiles": [
"drivers/mtd/ubi/vmt.c"
],
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"versions": [
{
"lessThan": "25ff1e3a1351c0d936dd1ac2f9e58231ea1510c9",
"status": "affected",
"version": "493cfaeaa0c9bc0c79ce5751193d49fdac9aaaec",
"versionType": "git"
},
{
"lessThan": "abb67043060f2bf4c03d7c3debb9ae980e2b6db3",
"status": "affected",
"version": "493cfaeaa0c9bc0c79ce5751193d49fdac9aaaec",
"versionType": "git"
},
{
"lessThan": "8302620aeb940f386817321d272b12411ae7d39f",
"status": "affected",
"version": "493cfaeaa0c9bc0c79ce5751193d49fdac9aaaec",
"versionType": "git"
},
{
"lessThan": "6d8d3f68cbecfd31925796f0fb668eb21ab06734",
"status": "affected",
"version": "493cfaeaa0c9bc0c79ce5751193d49fdac9aaaec",
"versionType": "git"
},
{
"lessThan": "5ff2514e4fb55dcf3d88294686040ca73ea0c1a2",
"status": "affected",
"version": "493cfaeaa0c9bc0c79ce5751193d49fdac9aaaec",
"versionType": "git"
},
{
"lessThan": "e27ecf325e51abd06aaefba57a6322a46fa4178b",
"status": "affected",
"version": "493cfaeaa0c9bc0c79ce5751193d49fdac9aaaec",
"versionType": "git"
},
{
"lessThan": "1174ab8ba36a48025b68b5ff1085000b1e510217",
"status": "affected",
"version": "493cfaeaa0c9bc0c79ce5751193d49fdac9aaaec",
"versionType": "git"
},
{
"lessThan": "8c03a1c21d72210f81cb369cc528e3fde4b45411",
"status": "affected",
"version": "493cfaeaa0c9bc0c79ce5751193d49fdac9aaaec",
"versionType": "git"
}
]
},
{
"defaultStatus": "affected",
"product": "Linux",
"programFiles": [
"drivers/mtd/ubi/vmt.c"
],
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"versions": [
{
"status": "affected",
"version": "4.12"
},
{
"lessThan": "4.12",
"status": "unaffected",
"version": "0",
"versionType": "semver"
},
{
"lessThanOrEqual": "4.14.*",
"status": "unaffected",
"version": "4.14.283",
"versionType": "semver"
},
{
"lessThanOrEqual": "4.19.*",
"status": "unaffected",
"version": "4.19.247",
"versionType": "semver"
},
{
"lessThanOrEqual": "5.4.*",
"status": "unaffected",
"version": "5.4.198",
"versionType": "semver"
},
{
"lessThanOrEqual": "5.10.*",
"status": "unaffected",
"version": "5.10.122",
"versionType": "semver"
},
{
"lessThanOrEqual": "5.15.*",
"status": "unaffected",
"version": "5.15.47",
"versionType": "semver"
},
{
"lessThanOrEqual": "5.17.*",
"status": "unaffected",
"version": "5.17.15",
"versionType": "semver"
},
{
"lessThanOrEqual": "5.18.*",
"status": "unaffected",
"version": "5.18.4",
"versionType": "semver"
},
{
"lessThanOrEqual": "*",
"status": "unaffected",
"version": "5.19",
"versionType": "original_commit_for_fix"
}
]
}
],
"cpeApplicability": [
{
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "4.14.283",
"versionStartIncluding": "4.12",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "4.19.247",
"versionStartIncluding": "4.12",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "5.4.198",
"versionStartIncluding": "4.12",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "5.10.122",
"versionStartIncluding": "4.12",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "5.15.47",
"versionStartIncluding": "4.12",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "5.17.15",
"versionStartIncluding": "4.12",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "5.18.4",
"versionStartIncluding": "4.12",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "5.19",
"versionStartIncluding": "4.12",
"vulnerable": true
}
],
"negate": false,
"operator": "OR"
}
]
}
],
"descriptions": [
{
"lang": "en",
"value": "In the Linux kernel, the following vulnerability has been resolved:\n\nubi: ubi_create_volume: Fix use-after-free when volume creation failed\n\nThere is an use-after-free problem for \u0027eba_tbl\u0027 in ubi_create_volume()\u0027s\nerror handling path:\n\n ubi_eba_replace_table(vol, eba_tbl)\n vol-\u003eeba_tbl = tbl\nout_mapping:\n ubi_eba_destroy_table(eba_tbl) // Free \u0027eba_tbl\u0027\nout_unlock:\n put_device(\u0026vol-\u003edev)\n vol_release\n kfree(tbl-\u003eentries)\t // UAF\n\nFix it by removing redundant \u0027eba_tbl\u0027 releasing.\nFetch a reproducer in [Link]."
}
],
"providerMetadata": {
"dateUpdated": "2025-05-04T08:36:37.085Z",
"orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"shortName": "Linux"
},
"references": [
{
"url": "https://git.kernel.org/stable/c/25ff1e3a1351c0d936dd1ac2f9e58231ea1510c9"
},
{
"url": "https://git.kernel.org/stable/c/abb67043060f2bf4c03d7c3debb9ae980e2b6db3"
},
{
"url": "https://git.kernel.org/stable/c/8302620aeb940f386817321d272b12411ae7d39f"
},
{
"url": "https://git.kernel.org/stable/c/6d8d3f68cbecfd31925796f0fb668eb21ab06734"
},
{
"url": "https://git.kernel.org/stable/c/5ff2514e4fb55dcf3d88294686040ca73ea0c1a2"
},
{
"url": "https://git.kernel.org/stable/c/e27ecf325e51abd06aaefba57a6322a46fa4178b"
},
{
"url": "https://git.kernel.org/stable/c/1174ab8ba36a48025b68b5ff1085000b1e510217"
},
{
"url": "https://git.kernel.org/stable/c/8c03a1c21d72210f81cb369cc528e3fde4b45411"
}
],
"title": "ubi: ubi_create_volume: Fix use-after-free when volume creation failed",
"x_generator": {
"engine": "bippy-1.2.0"
}
}
},
"cveMetadata": {
"assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"assignerShortName": "Linux",
"cveId": "CVE-2022-49388",
"datePublished": "2025-02-26T02:11:22.326Z",
"dateReserved": "2025-02-26T02:08:31.561Z",
"dateUpdated": "2025-05-04T08:36:37.085Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.1",
"vulnerability-lookup:meta": {
"vulnrichment": {
"containers": "{\"adp\": [{\"title\": \"CISA ADP Vulnrichment\", \"metrics\": [{\"cvssV3_1\": {\"scope\": \"UNCHANGED\", \"version\": \"3.1\", \"baseScore\": 7.8, \"attackVector\": \"LOCAL\", \"baseSeverity\": \"HIGH\", \"vectorString\": \"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H\", \"integrityImpact\": \"HIGH\", \"userInteraction\": \"NONE\", \"attackComplexity\": \"LOW\", \"availabilityImpact\": \"HIGH\", \"privilegesRequired\": \"LOW\", \"confidentialityImpact\": \"HIGH\"}}, {\"other\": {\"type\": \"ssvc\", \"content\": {\"id\": \"CVE-2022-49388\", \"role\": \"CISA Coordinator\", \"options\": [{\"Exploitation\": \"none\"}, {\"Automatable\": \"no\"}, {\"Technical Impact\": \"total\"}], \"version\": \"2.0.3\", \"timestamp\": \"2025-02-27T17:58:38.126339Z\"}}}], \"problemTypes\": [{\"descriptions\": [{\"lang\": \"en\", \"type\": \"CWE\", \"cweId\": \"CWE-416\", \"description\": \"CWE-416 Use After Free\"}]}], \"providerMetadata\": {\"orgId\": \"134c704f-9b21-4f2e-91b3-4a467353bcc0\", \"shortName\": \"CISA-ADP\", \"dateUpdated\": \"2025-02-27T17:58:39.394Z\"}}], \"cna\": {\"title\": \"ubi: ubi_create_volume: Fix use-after-free when volume creation failed\", \"affected\": [{\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"493cfaeaa0c9bc0c79ce5751193d49fdac9aaaec\", \"lessThan\": \"25ff1e3a1351c0d936dd1ac2f9e58231ea1510c9\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"493cfaeaa0c9bc0c79ce5751193d49fdac9aaaec\", \"lessThan\": \"abb67043060f2bf4c03d7c3debb9ae980e2b6db3\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"493cfaeaa0c9bc0c79ce5751193d49fdac9aaaec\", \"lessThan\": \"8302620aeb940f386817321d272b12411ae7d39f\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"493cfaeaa0c9bc0c79ce5751193d49fdac9aaaec\", \"lessThan\": \"6d8d3f68cbecfd31925796f0fb668eb21ab06734\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"493cfaeaa0c9bc0c79ce5751193d49fdac9aaaec\", \"lessThan\": \"5ff2514e4fb55dcf3d88294686040ca73ea0c1a2\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"493cfaeaa0c9bc0c79ce5751193d49fdac9aaaec\", \"lessThan\": \"e27ecf325e51abd06aaefba57a6322a46fa4178b\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"493cfaeaa0c9bc0c79ce5751193d49fdac9aaaec\", \"lessThan\": \"1174ab8ba36a48025b68b5ff1085000b1e510217\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"493cfaeaa0c9bc0c79ce5751193d49fdac9aaaec\", \"lessThan\": \"8c03a1c21d72210f81cb369cc528e3fde4b45411\", \"versionType\": \"git\"}], \"programFiles\": [\"drivers/mtd/ubi/vmt.c\"], \"defaultStatus\": \"unaffected\"}, {\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"4.12\"}, {\"status\": \"unaffected\", \"version\": \"0\", \"lessThan\": \"4.12\", \"versionType\": \"semver\"}, {\"status\": \"unaffected\", \"version\": \"4.14.283\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"4.14.*\"}, {\"status\": \"unaffected\", \"version\": \"4.19.247\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"4.19.*\"}, {\"status\": \"unaffected\", \"version\": \"5.4.198\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"5.4.*\"}, {\"status\": \"unaffected\", \"version\": \"5.10.122\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"5.10.*\"}, {\"status\": \"unaffected\", \"version\": \"5.15.47\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"5.15.*\"}, {\"status\": \"unaffected\", \"version\": \"5.17.15\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"5.17.*\"}, {\"status\": \"unaffected\", \"version\": \"5.18.4\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"5.18.*\"}, {\"status\": \"unaffected\", \"version\": \"5.19\", \"versionType\": \"original_commit_for_fix\", \"lessThanOrEqual\": \"*\"}], \"programFiles\": [\"drivers/mtd/ubi/vmt.c\"], \"defaultStatus\": \"affected\"}], \"references\": [{\"url\": \"https://git.kernel.org/stable/c/25ff1e3a1351c0d936dd1ac2f9e58231ea1510c9\"}, {\"url\": \"https://git.kernel.org/stable/c/abb67043060f2bf4c03d7c3debb9ae980e2b6db3\"}, {\"url\": \"https://git.kernel.org/stable/c/8302620aeb940f386817321d272b12411ae7d39f\"}, {\"url\": \"https://git.kernel.org/stable/c/6d8d3f68cbecfd31925796f0fb668eb21ab06734\"}, {\"url\": \"https://git.kernel.org/stable/c/5ff2514e4fb55dcf3d88294686040ca73ea0c1a2\"}, {\"url\": \"https://git.kernel.org/stable/c/e27ecf325e51abd06aaefba57a6322a46fa4178b\"}, {\"url\": \"https://git.kernel.org/stable/c/1174ab8ba36a48025b68b5ff1085000b1e510217\"}, {\"url\": \"https://git.kernel.org/stable/c/8c03a1c21d72210f81cb369cc528e3fde4b45411\"}], \"x_generator\": {\"engine\": \"bippy-1.2.0\"}, \"descriptions\": [{\"lang\": \"en\", \"value\": \"In the Linux kernel, the following vulnerability has been resolved:\\n\\nubi: ubi_create_volume: Fix use-after-free when volume creation failed\\n\\nThere is an use-after-free problem for \u0027eba_tbl\u0027 in ubi_create_volume()\u0027s\\nerror handling path:\\n\\n ubi_eba_replace_table(vol, eba_tbl)\\n vol-\u003eeba_tbl = tbl\\nout_mapping:\\n ubi_eba_destroy_table(eba_tbl) // Free \u0027eba_tbl\u0027\\nout_unlock:\\n put_device(\u0026vol-\u003edev)\\n vol_release\\n kfree(tbl-\u003eentries)\\t // UAF\\n\\nFix it by removing redundant \u0027eba_tbl\u0027 releasing.\\nFetch a reproducer in [Link].\"}], \"cpeApplicability\": [{\"nodes\": [{\"negate\": false, \"cpeMatch\": [{\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"4.14.283\", \"versionStartIncluding\": \"4.12\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"4.19.247\", \"versionStartIncluding\": \"4.12\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"5.4.198\", \"versionStartIncluding\": \"4.12\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"5.10.122\", \"versionStartIncluding\": \"4.12\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"5.15.47\", \"versionStartIncluding\": \"4.12\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"5.17.15\", \"versionStartIncluding\": \"4.12\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"5.18.4\", \"versionStartIncluding\": \"4.12\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"5.19\", \"versionStartIncluding\": \"4.12\"}], \"operator\": \"OR\"}]}], \"providerMetadata\": {\"orgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"shortName\": \"Linux\", \"dateUpdated\": \"2025-05-04T08:36:37.085Z\"}}}",
"cveMetadata": "{\"cveId\": \"CVE-2022-49388\", \"state\": \"PUBLISHED\", \"dateUpdated\": \"2025-05-04T08:36:37.085Z\", \"dateReserved\": \"2025-02-26T02:08:31.561Z\", \"assignerOrgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"datePublished\": \"2025-02-26T02:11:22.326Z\", \"assignerShortName\": \"Linux\"}",
"dataType": "CVE_RECORD",
"dataVersion": "5.1"
}
}
}
Loading…
Loading…
Sightings
| Author | Source | Type | Date |
|---|
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…