CVE-2024-36917: linux-libc-dev - block: fix overflow in blk_ioctl_discard()

linux Updated 02 Oct 2025

Summary

30/05/2024
No i
Unrated
Not published

CVE-2024-36917: In the Linux kernel, the following vulnerability has been resolved: block: fix overflow in blk_ioctl_discard() There is no check for overflow of 'start + len' in blk_ioctl_discard(). Affects linux versions 5.10.103-1 – 6.9.9-1. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

linux-libc-dev is a package that provides the Linux kernel headers for use by glibc and other C library implementations. It allows developers to compile and build applications that interact with the Linux kernel. The vulnerability in this package, identified as CVE-2024-36917, is related to the blk_ioctl_discard() function in the kernel's block layer. This function lacks proper validation for overflow of the 'start + len' parameters, which can lead to a hung task. The vulnerability has a CVSS score of 5.5, indicating a medium severity level.

Vulnerability Detail

The vulnerability in blk_ioctl_discard() allows an attacker to trigger a hung task by submitting a discard ioctl with specific parameters that cause an overflow. This can potentially lead to a denial of service (DoS) condition. The lack of proper validation for overflow in the function is the root cause of this vulnerability. The issue has been resolved by adding overflow validation to prevent such scenarios.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

There is no specific workaround mentioned for this vulnerability.

Conclusion

The linux-libc-dev package is vulnerable to an overflow issue in the blk_ioctl_discard() function. This can lead to a hung task and potential denial of service. It is recommended to update the package to the latest version to mitigate this vulnerability. For further support on vulnerability remediation, contact DevNack.com.

See every vulnerability recorded for linux →

Share this vulnerability

FAQ

linux-libc-dev is a package that provides the Linux kernel headers for use by glibc and other C library implementations. It allows developers to compile and build applications that interact with the Linux kernel.

blk_ioctl_discard() is a function in the Linux kernel's block layer. It is used for discarding blocks on a block device.

The vulnerability can lead to a hung task and potentially cause a denial of service (DoS) condition.

The CVSS score of this vulnerability is 5.5, indicating a medium severity level.

To fix this vulnerability, update the linux-libc-dev package to version 6.1.90-1 or later.

Related vulnerabilities

Recent vulnerabilities recorded for linux.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback