Use of NullPointerException Catch to Detect NULL Pointer Dereference Affecting kernel-selftests-internal package, versions *


Severity

Recommended
0.0
medium
0
10

Based on CentOS security rating.

Threat Intelligence

EPSS
0.02% (3rd 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 IDSNYK-CENTOS9-KERNELSELFTESTSINTERNAL-9670047
  • published8 Apr 2025
  • disclosed8 Apr 2025

Introduced: 8 Apr 2025

NewCVE-2025-22016  (opens in a new tab)
CWE-395  (opens in a new tab)

How to fix?

There is no fixed version for Centos:9 kernel-selftests-internal.

NVD Description

Note: Versions mentioned in the description apply only to the upstream kernel-selftests-internal package and not the kernel-selftests-internal 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:

dpll: fix xa_alloc_cyclic() error handling

In case of returning 1 from xa_alloc_cyclic() (wrapping) ERR_PTR(1) will be returned, which will cause IS_ERR() to be false. Which can lead to dereference not allocated pointer (pin).

Fix it by checking if err is lower than zero.

This wasn't found in real usecase, only noticed. Credit to Pierre.

CVSS Base Scores

version 3.1