CVE-2025-38173 in Linuxinfo

Summary

by MITRE • 07/03/2025

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

crypto: marvell/cesa - Handle zero-length skcipher requests

Do not access random memory for zero-length skcipher requests. Just return 0.

Be aware that VulDB is the high quality source for vulnerability data.

Analysis

by VulDB Data Team • 04/18/2026

The vulnerability CVE-2025-38173 addresses a critical issue within the Linux kernel's cryptographic subsystem, specifically within the Marvell CESA (Cryptographic Engine Subsystem Architecture) implementation. This flaw exists in the handling of symmetric key cipher operations where the kernel processes requests with zero-length data. The vulnerability represents a potential security risk that could be exploited to access unintended memory regions or cause system instability during cryptographic operations. The issue is classified under the Common Weakness Enumeration category CWE-125, which deals with out-of-bounds read conditions, and specifically relates to improper handling of edge cases in cryptographic processing.

The technical implementation flaw occurs within the Marvell CESA driver when processing skcipher (symmetric key cipher) requests that contain zero-length data. In normal cryptographic operations, the kernel validates input parameters and allocates appropriate memory buffers for processing. However, when a zero-length request is submitted, the kernel's current implementation attempts to access memory locations that should not be accessed, potentially leading to information disclosure or system crashes. The fix implemented addresses this by adding explicit validation for zero-length requests and returning immediately with a success code of zero, preventing any unintended memory access patterns. This approach follows the principle of defensive programming and aligns with the ATT&CK technique T1005 for data from local system.

The operational impact of this vulnerability extends across various Linux distributions that utilize the Marvell CESA cryptographic engine, particularly those implementing hardware-accelerated encryption operations. Systems that frequently process cryptographic requests, including network security appliances, database servers, and virtualization platforms, may be affected by potential memory access violations. Attackers could potentially exploit this weakness to gain information about kernel memory layout or cause denial of service conditions through carefully crafted zero-length cryptographic requests. The vulnerability demonstrates the importance of proper input validation in cryptographic implementations and highlights the need for robust handling of edge cases in security-critical kernel subsystems.

Mitigation strategies for this vulnerability involve applying the relevant kernel security patches that implement the fix for zero-length skcipher request handling. System administrators should prioritize updating their Linux kernel versions to include the patched implementation that properly validates zero-length requests and returns appropriate success codes. Organizations should also consider monitoring cryptographic operations for unusual patterns that might indicate exploitation attempts, particularly focusing on zero-length requests being processed through the Marvell CESA subsystem. Additionally, implementing proper kernel hardening measures and maintaining up-to-date security configurations will help reduce the attack surface and prevent potential exploitation of similar vulnerabilities in other cryptographic implementations. The fix demonstrates the importance of comprehensive testing for edge cases in cryptographic libraries and the necessity of robust input validation in kernel space operations.

Responsible

Linux

Reservation

04/16/2025

Disclosure

07/03/2025

Moderation

accepted

CPE

ready

EPSS

0.00162

KEV

no

Activities

very low

Sources

Do you want to use VulDB in your project?

Use the official API to access entries easily!