CVE-2025-38058 Affecting kernel-uek-debug-devel package, versions <0:5.4.17-2136.346.6.el7uek


Severity

Recommended
high

Based on Oracle Linux 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 IDSNYK-ORACLE7-KERNELUEKDEBUGDEVEL-11778730
  • published12 Aug 2025
  • disclosed18 Jun 2025

Introduced: 18 Jun 2025

CVE-2025-38058  (opens in a new tab)

How to fix?

Upgrade Oracle:7 kernel-uek-debug-devel to version 0:5.4.17-2136.346.6.el7uek or higher.
This issue was patched in ELSA-2025-20521.

NVD Description

Note: Versions mentioned in the description apply only to the upstream kernel-uek-debug-devel package and not the kernel-uek-debug-devel package as distributed by Oracle. See How to fix? for Oracle:7 relevant fixed versions and status.

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

__legitimize_mnt(): check for MNT_SYNC_UMOUNT should be under mount_lock

... or we risk stealing final mntput from sync umount - raising mnt_count after umount(2) has verified that victim is not busy, but before it has set MNT_SYNC_UMOUNT; in that case __legitimize_mnt() doesn't see that it's safe to quietly undo mnt_count increment and leaves dropping the reference to caller, where it'll be a full-blown mntput().

Check under mount_lock is needed; leaving the current one done before taking that makes no sense - it's nowhere near common enough to bother with.

CVSS Base Scores

version 3.1