Menu

Star on GitHub · 3.4k

CVE-2024-46783

5.5 · MEDIUM

In the Linux kernel, the following vulnerability has been resolved: tcp_bpf: fix return value of tcp_bpf_sendmsg() When we cork messages in psock->cork, the last message triggers the flushing wil…

Published Sep 18, 2024EPSS 0.23%

Overview

CVE-2024-46783 is a medium-severity vulnerability. It was published on September 18, 2024 and has a CVSS 3.1 base score of 5.5 (MEDIUM).

This vulnerability has a CVSS 3.1 base score of 5.5, rated MEDIUM. 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:

tcp_bpf: fix return value of tcp_bpf_sendmsg()

When we cork messages in psock->cork, the last message triggers the

flushing will result in sending a sk_msg larger than the current

message size. In this case, in tcp_bpf_send_verdict(), 'copied' becomes

negative at least in the following case:

468 case __SK_DROP:

469 default:

470 sk_msg_free_partial(sk, msg, tosend);

471 sk_msg_apply_bytes(psock, tosend);

472 *copied -= (tosend + delta); // <==== HERE

473 return -EACCES;

Therefore, it could lead to the following BUG with a proper value of

'copied' (thanks to syzbot). We should not use negative 'copied' as a

return value here.

------------[ cut here ]------------

kernel BUG at net/socket.c:733!

Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP

Modules linked in:

CPU: 0 UID: 0 PID: 3265 Comm: syz-executor510 Not taint

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

CVE-2024-46783 is a medium-severity vulnerability. It was published on September 18, 2024 and has a CVSS 3.1 base score of 5.5 (MEDIUM).

How severe is CVE-2024-46783?

This vulnerability has a CVSS 3.1 base score of 5.5, rated MEDIUM. 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-46783?

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

CyberStrike is an open-source, AI-augmented pentesting engine. Rather than flag a version number, it tests whether an issue like CVE-2024-46783 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 MEDIUM CVEs from 2024

View all
LiveWatch live →