CVE-2022-49388

Severity CVSS v4.0:
Pending analysis
Type:
CWE-416 Use After Free
Publication date:
26/02/2025
Last modified:
25/03/2025

Description

In the Linux kernel, the following vulnerability has been resolved:<br /> <br /> ubi: ubi_create_volume: Fix use-after-free when volume creation failed<br /> <br /> There is an use-after-free problem for &amp;#39;eba_tbl&amp;#39; in ubi_create_volume()&amp;#39;s<br /> error handling path:<br /> <br /> ubi_eba_replace_table(vol, eba_tbl)<br /> vol-&gt;eba_tbl = tbl<br /> out_mapping:<br /> ubi_eba_destroy_table(eba_tbl) // Free &amp;#39;eba_tbl&amp;#39;<br /> out_unlock:<br /> put_device(&amp;vol-&gt;dev)<br /> vol_release<br /> kfree(tbl-&gt;entries) // UAF<br /> <br /> Fix it by removing redundant &amp;#39;eba_tbl&amp;#39; releasing.<br /> Fetch a reproducer in [Link].

Vulnerable products and versions

CPE From Up to
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 4.12 (including) 4.14.283 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 4.15 (including) 4.19.247 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 4.20 (including) 5.4.198 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 5.5 (including) 5.10.122 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 5.11 (including) 5.15.47 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 5.16 (including) 5.17.15 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 5.18 (including) 5.18.4 (excluding)