🛡️ CVE-2025-38488 — debian-linux

🔴 CVSS 9.8 — Critical ✅ No Known Exploit CWE-416 NVD
9.8
CVSS Score
0 Low4 Medium7 High9 Critical10

Description

smb: client: fix use-after-free in crypt_message when using async crypto

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

smb: client: fix use-after-free in crypt_message when using async crypto

The CVE-2024-50047 fix removed asynchronous crypto handling from

crypt_message(), assuming all crypto operations are synchronous.

However, when hardware crypto accelerators are used, this can cause

use-after-free crashes:

crypt_message()

// Allocate the creq buffer containing the req

creq = smb2_get_aead_req(..., &req);

// Async encryption returns -EINPROGRESS immediately

rc = enc ? crypto_aead_encrypt(req) : crypto_aead_decrypt(req);

// Free creq while async operation is still in progress

kvfree_sensitive(creq, ...);

Hardware crypto modules often implement async AEAD operations for

performance. When crypto_aead_encrypt/decrypt() returns -EINPROGRESS,

the operation completes asynchronously. Without crypto_wait_req(),

the function immediately frees the request buffer, leading to crashes

when the driver later accesses the freed memory.

This results in a use-after-free condition when the hardware crypto

driver later accesses the freed request structure, leading to kernel

crashes with NULL pointer dereferences.

The issue occurs because crypto_alloc_aead() with mask=0 doesn't

guarantee synchronous operation. Even without CRYPTO_ALG_ASYNC in

the mask, async implementations can be selected.

Fix by restoring the async crypto handling:

  • DECLARE_CRYPTO_WAIT(wait) for completion tracking
  • aead_request_set_callback() for async completion notification
  • crypto_wait_req() to wait for operation completion

This ensures the request buffer isn't freed until the crypto operation

completes, whether synchronous or asynchronous, while preserving the

CVE-2024-50047 fix.

How this vulnerability can be exploited

This issue can be reached over the network, attack complexity is low, an attacker needs no privileges on the target. No user interaction is required. The scope is unchanged, so the impact stays within the vulnerable component. Rated impact: confidentiality high, integrity high, availability high.

Weakness class

CVE-2025-38488 is classified as CWE-416: Use After Free. Memory is used after being released, so its contents may already belong to something else.

Affected software

CVE-2025-38488 is recorded against 3 packages.

  • debian-linux
  • kernel (from 6.12.0 up to 6.15.8)
  • linux-kernel

Timeline and source

Published on 28 July 2025 and last revised on 30 July 2026. No public exploit is currently recorded for this entry. A vendor advisory or fix has been published. Record sourced from NVD.

References

git.kernel.org
git.kernel.org
git.kernel.org
git.kernel.org
git.kernel.org
git.kernel.org
git.kernel.org
lists.debian.org
lists.debian.org

CVE-2025-38488 on other distributions

Each distribution ships its own build and its own fixed version. Pick the one you run:

Details

Severity CRITICAL
CVSS Score 9.8
CVSS Vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CWE CWE-416
Public Exploit ✅ No
Source NVD
Published 2025-07-28
Updated 2026-08-20
Modified 2026-07-30

Affected Packages

Software From version Fixed in
debian-linux
kernel 6.12.0 6.15.8
linux-kernel

Similar Threats

Exploit Protection

Are you running debian-linux?

CVE-2025-38488 carries CVSS 9.8 Critical rating. BotEraser checks your installation against this and other known CVE records, and blocks IPs associated with exploit activity.

Check My Site For CVE-2025-38488 →

No credit card required  ·  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.

Browse related advisories

All advisoriesCVECVE 2025