Use After Free Affecting kernel-livepatch-4.14.285-215.501 package, versions <0:1.0-0.amzn2


Severity

Recommended
high

Based on Amazon Linux security rating.

Threat Intelligence

EPSS
0.04% (13th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Use After Free vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-AMZN2-KERNELLIVEPATCH414285215501-9727097
  • published17 Apr 2025
  • disclosed26 Feb 2025

Introduced: 26 Feb 2025

CVE-2022-49388  (opens in a new tab)
CWE-416  (opens in a new tab)

How to fix?

Upgrade Amazon-Linux:2 kernel-livepatch-4.14.285-215.501 to version 0:1.0-0.amzn2 or higher.
This issue was patched in ALAS2-2022-1813.

NVD Description

Note: Versions mentioned in the description apply only to the upstream kernel-livepatch-4.14.285-215.501 package and not the kernel-livepatch-4.14.285-215.501 package as distributed by Amazon-Linux. See How to fix? for Amazon-Linux:2 relevant fixed versions and status.

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].

CVSS Base Scores

version 3.1