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

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

Overview

CVE-2024-56642 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:

tipc: Fix use-after-free of kernel socket in cleanup_bearer().

syzkaller reported a use-after-free of UDP kernel socket

in cleanup_bearer() without repro. [0][1]

When bearer_disable() calls tipc_udp_disable(), cleanup

of the UDP kernel socket is deferred by work calling

cleanup_bearer().

tipc_exit_net() waits for such works to finish by checking

tipc_net(net)->wq_count. However, the work decrements the

count too early before releasing the kernel socket,

unblocking cleanup_net() and resulting in use-after-free.

Let's move the decrement after releasing the socket in

cleanup_bearer().

[0]:

ref_tracker: net notrefcnt@000000009b3d1faf has 1/1 users at

sk_alloc+0x438/0x608

inet_create+0x4c8/0xcb0

__sock_create+0x350/0x6b8

sock_create_kern+0x58/0x78

udp_sock_create4+0x68/0x398

udp_sock_create+0x88/0xc8

tipc_udp_enable+0x5e8/0x848

__tipc_nl_bearer_enable+0x84c/0xed8

tipc_nl_b

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 >= 4.2, < 5.4.287 Affected

Frequently Asked Questions

What is CVE-2024-56642?

CVE-2024-56642 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-56642?

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

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

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