CVE-2024-23851
Linux Kernel vulnerability analysis and mitigation

Overview

A vulnerability was discovered in the Linux kernel through version 6.7.1, specifically in the copy_params function within drivers/md/dm-ioctl.c. The vulnerability (CVE-2024-23851) allows the function to attempt to allocate more than INT_MAX bytes and crash due to a missing param_kernel->data_size check. This issue is related to the ctl_ioctl functionality (NVD, CVE).

Technical details

The vulnerability exists in the device mapper driver's copy_params function where it can attempt to allocate more than INT_MAX bytes using kvmalloc without proper size validation. The issue stems from insufficient validation of param_kernel->data_size before memory allocation. The vulnerability has been assigned a CVSS v3.1 Base Score of 5.5 (Medium) with vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H (NVD).

Impact

When exploited, this vulnerability can cause a denial of service (system crash) through memory allocation failure. The impact is limited to local attacks and requires CAP_SYS_ADMIN (root) privileges in the initial namespace (Ubuntu).

Mitigation and workarounds

The vulnerability has been fixed in various Linux distributions through security updates. For example, Debian has addressed this in version 5.10.216-1~deb10u1 for Debian 10 (buster), and Ubuntu has released fixes across multiple versions including 5.15.0-102.112 for Ubuntu 22.04 LTS (Debian, Ubuntu).

Community reactions

Linus Torvalds responded to the vulnerability report by emphasizing that the fix should be implemented in the caller with proper limit checking, suggesting either implementing reasonable safe limits or using __GPF_NOWARN with proper error handling (Spinics).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-71142N/AN/A
  • Linux KernelLinux Kernel
  • kernel-64k-modules-internal
NoNoJan 14, 2026
CVE-2025-71137N/AN/A
  • Linux KernelLinux Kernel
  • libperf-devel
NoYesJan 14, 2026
CVE-2025-71135N/AN/A
  • Linux KernelLinux Kernel
  • libperf-devel
NoNoJan 14, 2026
CVE-2025-71134N/AN/A
  • Linux KernelLinux Kernel
  • kernel-64k-devel
NoNoJan 14, 2026
CVE-2025-71133N/AN/A
  • Linux KernelLinux Kernel
  • kernel-64k-debug-modules-partner
NoYesJan 14, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management