Menu

Star on GitHub · 3.2k

CVE-2022-48744

7.5 · HIGH

In the Linux kernel, the following vulnerability has been resolved: net/mlx5e: Avoid field-overflowing memcpy() In preparation for FORTIFY_SOURCE performing compile-time and run-time field bounds…

Published Jun 20, 2024CWE-787EPSS 0.60%

Overview

CVE-2022-48744 is a high-severity vulnerability. It was published on June 20, 2024 and has a CVSS 3.1 base score of 7.5 (HIGH).

This vulnerability has a CVSS 3.1 base score of 7.5, rated HIGH. It can be exploited remotely over the network. No authentication or special privileges are required for exploitation.

Technical description

In the Linux kernel, the following vulnerability has been resolved:

net/mlx5e: Avoid field-overflowing memcpy()

In preparation for FORTIFY_SOURCE performing compile-time and run-time

field bounds checking for memcpy(), memmove(), and memset(), avoid

intentionally writing across neighboring fields.

Use flexible arrays instead of zero-element arrays (which look like they

are always overflowing) and split the cross-field memcpy() into two halves

that can be appropriately bounds-checked by the compiler.

We were doing:

#define ETH_HLEN 14

#define VLAN_HLEN 4

...

#define MLX5E_XDP_MIN_INLINE (ETH_HLEN + VLAN_HLEN)

...

struct mlx5e_tx_wqe *wqe = mlx5_wq_cyc_get_wqe(wq, pi);

...

struct mlx5_wqe_eth_seg *eseg = &wqe->eth;

struct mlx5_wqe_data_seg *dseg = wqe->data;

...

memcpy(eseg->inline_hdr.start, xdptxd->data, MLX5E_XDP_MIN_INLINE);

target is wqe->eth.inline_hdr.start (which the compiler sees as being

2 bytes in size), but copying 18, intending

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-2022-48744?

CVE-2022-48744 is a high-severity vulnerability. It was published on June 20, 2024 and has a CVSS 3.1 base score of 7.5 (HIGH).

How severe is CVE-2022-48744?

This vulnerability has a CVSS 3.1 base score of 7.5, rated HIGH. It can be exploited remotely over the network. No authentication or special privileges are required for exploitation.

How do I fix or remediate CVE-2022-48744?

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-2022-48744?

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

View all