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-56631

7.8 · HIGH
Published Dec 27, 2024 linux CWE-416 EPSS 0.29% (21th pctl)

Overview

CVE-2024-56631 is a high-severity vulnerability affecting linux linux_kernel. It was published on December 27, 2024 and has a CVSS 3.1 base score of 7.8 (HIGH).

This vulnerability has a CVSS 3.1 base score of 7.8, 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: sg: Fix slab-use-after-free read in sg_release()

Fix a use-after-free bug in sg_release(), detected by syzbot with KASAN:

BUG: KASAN: slab-use-after-free in lock_release+0x151/0xa30

kernel/locking/lockdep.c:5838

__mutex_unlock_slowpath+0xe2/0x750 kernel/locking/mutex.c:912

sg_release+0x1f4/0x2e0 drivers/scsi/sg.c:407

In sg_release(), the function kref_put(&sfp->f_ref, sg_remove_sfp) is

called before releasing the open_rel_lock mutex. The kref_put() call may

decrement the reference count of sfp to zero, triggering its cleanup

through sg_remove_sfp(). This cleanup includes scheduling deferred work

via sg_remove_sfp_usercontext(), which ultimately frees sfp.

After kref_put(), sg_release() continues to unlock open_rel_lock and may

reference sfp or sdp. If sfp has already been freed, this results in a

slab-use-after-free error.

Move the kref_put(&sfp->f_ref, sg_remove_sfp) call after unlocking the

open_rel_lock

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 >= 3.16.85, < 6.6.66 Affected

Frequently Asked Questions

What is CVE-2024-56631?

CVE-2024-56631 is a high-severity vulnerability affecting linux linux_kernel. It was published on December 27, 2024 and has a CVSS 3.1 base score of 7.8 (HIGH).

How severe is CVE-2024-56631?

This vulnerability has a CVSS 3.1 base score of 7.8, 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-56631?

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-56631?

CyberStrike's AI-powered security agents can automatically detect CVE-2024-56631 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.