Skip to main content

Over 150 LLM Providers · Over 5,300 Models The most extensible AI-powered pentesting platform. Open source. Star on GitHub

CVE-2024-40978

7.1 · HIGH
Published Jul 12, 2024 linux CWE-125 EPSS 0.32% (24th pctl)

Overview

CVE-2024-40978 is a high-severity vulnerability affecting linux linux_kernel. It was published on July 12, 2024 and has a CVSS 3.1 base score of 7.1 (HIGH).

This vulnerability has a CVSS 3.1 base score of 7.1, rated HIGH. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

Technical Description

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

scsi: qedi: Fix crash while reading debugfs attribute

The qedi_dbg_do_not_recover_cmd_read() function invokes sprintf() directly

on a __user pointer, which results into the crash.

To fix this issue, use a small local stack buffer for sprintf() and then

call simple_read_from_buffer(), which in turns make the copy_to_user()

call.

BUG: unable to handle page fault for address: 00007f4801111000

PGD 8000000864df6067 P4D 8000000864df6067 PUD 864df7067 PMD 846028067 PTE 0

Oops: 0002 [#1] PREEMPT SMP PTI

Hardware name: HPE ProLiant DL380 Gen10/ProLiant DL380 Gen10, BIOS U30 06/15/2023

RIP: 0010:memcpy_orig+0xcd/0x130

RSP: 0018:ffffb7a18c3ffc40 EFLAGS: 00010202

RAX: 00007f4801111000 RBX: 00007f4801111000 RCX: 000000000000000f

RDX: 000000000000000f RSI: ffffffffc0bfd7a0 RDI: 00007f4801111000

RBP: ffffffffc0bfd7a0 R08: 725f746f6e5f6f64 R09: 3d7265766f636572

R10: ffffb7a18c3ffd08 R11: 0000000000000000 R12: 00007f4881110fff

R13:

Remediation

Check the references section for vendor advisories and patches from linux. Update linux_kernel to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Affected Products

Vendor Product Versions Status
linux linux_kernel >= 0, < 4.19.317 Affected

Frequently Asked Questions

What is CVE-2024-40978?

CVE-2024-40978 is a high-severity vulnerability affecting linux linux_kernel. It was published on July 12, 2024 and has a CVSS 3.1 base score of 7.1 (HIGH).

How severe is CVE-2024-40978?

This vulnerability has a CVSS 3.1 base score of 7.1, rated HIGH. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

How do I fix or remediate CVE-2024-40978?

Check the references section for vendor advisories and patches from linux. Update linux_kernel to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2024-40978?

CyberStrike's AI-powered security agents can automatically detect CVE-2024-40978 across your infrastructure using autonomous pentesting, DAST scanning, and HackBrowser. The platform continuously monitors for known vulnerabilities and provides actionable remediation guidance prioritized by real-world exploitability.