Menu

Star on GitHub · 3.4k

CVE-2024-50261

7.8 · HIGH

In the Linux kernel, the following vulnerability has been resolved: macsec: Fix use-after-free while sending the offloading packet KASAN reports the following UAF.

Published Nov 9, 2024CWE-416EPSS 0.22%

Overview

CVE-2024-50261 is a high-severity vulnerability. It was published on November 9, 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:

macsec: Fix use-after-free while sending the offloading packet

KASAN reports the following UAF. The metadata_dst, which is used to

store the SCI value for macsec offload, is already freed by

metadata_dst_free() in macsec_free_netdev(), while driver still use it

for sending the packet.

To fix this issue, dst_release() is used instead to release

metadata_dst. So it is not freed instantly in macsec_free_netdev() if

still referenced by skb.

BUG: KASAN: slab-use-after-free in mlx5e_xmit+0x1e8f/0x4190 [mlx5_core]

Read of size 2 at addr ffff88813e42e038 by task kworker/7:2/714

[...]

Workqueue: mld mld_ifc_work

Call Trace:

<TASK>

dump_stack_lvl+0x51/0x60

print_report+0xc1/0x600

kasan_report+0xab/0xe0

mlx5e_xmit+0x1e8f/0x4190 [mlx5_core]

dev_hard_start_xmit+0x120/0x530

sch_direct_xmit+0x149/0x11e0

__qdisc_run+0x3ad/0x1730

__dev_queue_xmit+0x1196/0x2ed0

vlan_dev_hard_start_xmit+0x32e/0x510 [8021q]

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

CVE-2024-50261 is a high-severity vulnerability. It was published on November 9, 2024 and has a CVSS 3.1 base score of 7.8 (HIGH).

How severe is CVE-2024-50261?

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

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

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