CVE-2022-49388
ubi: ubi_create_volume: Fix use-after-free when volume creation failed
Check your servers for CVE-2022-49388
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2022-49388 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
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 (CVSS)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- low: the attacker needs an ordinary user account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.29%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 23.3% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 27 Feb 2025):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- total: full control of the component or of its data
Weakness
- CWE-416 Use After Free
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 493cfaeaa0c9bc0c79ce5751193d49fdac9aaaec, before 25ff1e3a1351c0d936dd1ac2f9e58231ea1510c9 affected from 493cfaeaa0c9bc0c79ce5751193d49fdac9aaaec, before abb67043060f2bf4c03d7c3debb9ae980e2b6db3 affected from 493cfaeaa0c9bc0c79ce5751193d49fdac9aaaec, before 8302620aeb940f386817321d272b12411ae7d39f affected from 493cfaeaa0c9bc0c79ce5751193d49fdac9aaaec, before 6d8d3f68cbecfd31925796f0fb668eb21ab06734 affected from 493cfaeaa0c9bc0c79ce5751193d49fdac9aaaec, before 5ff2514e4fb55dcf3d88294686040ca73ea0c1a2 affected from 493cfaeaa0c9bc0c79ce5751193d49fdac9aaaec, before e27ecf325e51abd06aaefba57a6322a46fa4178b affected from 493cfaeaa0c9bc0c79ce5751193d49fdac9aaaec, before 1174ab8ba36a48025b68b5ff1085000b1e510217 affected from 493cfaeaa0c9bc0c79ce5751193d49fdac9aaaec, before 8c03a1c21d72210f81cb369cc528e3fde4b45411
Other versions: unaffected
|
| Linux |
affected 4.12 unaffected before 4.12 unaffected from 4.14.283 up to and including 4.14.* unaffected from 4.19.247 up to and including 4.19.* unaffected from 5.4.198 up to and including 5.4.* unaffected from 5.10.122 up to and including 5.10.* unaffected from 5.15.47 up to and including 5.15.* unaffected from 5.17.15 up to and including 5.17.* unaffected from 5.18.4 up to and including 5.18.* unaffected 5.19 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2022-49388 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2022-49388
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2022-49388
trivy image --scanners vuln IMAGE | grep CVE-2022-49388
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/25ff1e3a1351c0d936dd1ac2f9e58231ea1510c9 git.kernel.org
- https://git.kernel.org/stable/c/abb67043060f2bf4c03d7c3debb9ae980e2b6db3 git.kernel.org
- https://git.kernel.org/stable/c/8302620aeb940f386817321d272b12411ae7d39f git.kernel.org
- https://git.kernel.org/stable/c/6d8d3f68cbecfd31925796f0fb668eb21ab06734 git.kernel.org
- https://git.kernel.org/stable/c/5ff2514e4fb55dcf3d88294686040ca73ea0c1a2 git.kernel.org
- https://git.kernel.org/stable/c/e27ecf325e51abd06aaefba57a6322a46fa4178b git.kernel.org
- https://git.kernel.org/stable/c/1174ab8ba36a48025b68b5ff1085000b1e510217 git.kernel.org
- https://git.kernel.org/stable/c/8c03a1c21d72210f81cb369cc528e3fde4b45411 git.kernel.org
Source: the record CVE-2022-49388 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse