Use After Free Affecting kernel-64k-debug-modules package, versions <0:5.14.0-284.11.1.el9_2


Severity

Recommended
medium

Based on CentOS security rating.

Threat Intelligence

EPSS
0.04% (10th 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-CENTOS9-KERNEL64KDEBUGMODULES-10409664
  • published19 Jun 2025
  • disclosed18 Jun 2025

Introduced: 18 Jun 2025

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

How to fix?

Upgrade Centos:9 kernel-64k-debug-modules to version 0:5.14.0-284.11.1.el9_2 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream kernel-64k-debug-modules package and not the kernel-64k-debug-modules package as distributed by Centos. See How to fix? for Centos:9 relevant fixed versions and status.

In the Linux kernel, the following vulnerability has been resolved:

firmware_loader: Fix use-after-free during unregister

In the following code within firmware_upload_unregister(), the call to device_unregister() could result in the dev_release function freeing the fw_upload_priv structure before it is dereferenced for the call to module_put(). This bug was found by the kernel test robot using CONFIG_KASAN while running the firmware selftests.

device_unregister(&fw_sysfs->dev); module_put(fw_upload_priv->module);

The problem is fixed by copying fw_upload_priv->module to a local variable for use when calling device_unregister().

CVSS Base Scores

version 3.1