Menu

Star on GitHub · 3.3k

CVE-2024-56642

7.8 · HIGH

In the Linux kernel, the following vulnerability has been resolved: tipc: Fix use-after-free of kernel socket in cleanup_bearer().

Published Dec 27, 2024CWE-416EPSS 0.24%

Overview

CVE-2024-56642 is a high-severity vulnerability. 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, patches, and mitigation guidance. 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.

Frequently asked questions

What is CVE-2024-56642?

CVE-2024-56642 is a high-severity vulnerability. 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, patches, and mitigation guidance. 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 is an open-source, AI-augmented pentesting engine. Rather than flag a version number, it tests whether an issue like CVE-2024-56642 is actually reachable in your own applications and APIs, then verifies each finding before reporting it. That tells you if the weakness is a real, exploitable risk in your environment or a false positive you can safely deprioritize.

Related HIGH CVEs from 2024

View all
LiveWatch live →