Menu

Star on GitHub · 3.2k

CVE-2022-49390

7.8 · HIGH

In the Linux kernel, the following vulnerability has been resolved: macsec: fix UAF bug for real_dev Create a new macsec device but not get reference to real_dev.

Published Feb 26, 2025CWE-416EPSS 0.27%

Overview

CVE-2022-49390 is a high-severity vulnerability. It was published on February 26, 2025 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 UAF bug for real_dev

Create a new macsec device but not get reference to real_dev. That can

not ensure that real_dev is freed after macsec. That will trigger the

UAF bug for real_dev as following:

==================================================================

BUG: KASAN: use-after-free in macsec_get_iflink+0x5f/0x70 drivers/net/macsec.c:3662

Call Trace:

...

macsec_get_iflink+0x5f/0x70 drivers/net/macsec.c:3662

dev_get_iflink+0x73/0xe0 net/core/dev.c:637

default_operstate net/core/link_watch.c:42 [inline]

rfc2863_policy+0x233/0x2d0 net/core/link_watch.c:54

linkwatch_do_dev+0x2a/0x150 net/core/link_watch.c:161

Allocated by task 22209:

...

alloc_netdev_mqs+0x98/0x1100 net/core/dev.c:10549

rtnl_create_link+0x9d7/0xc00 net/core/rtnetlink.c:3235

veth_newlink+0x20e/0xa90 drivers/net/veth.c:1748

Freed by task 8:

...

kfree+0xd6/0x4d0 mm/slub.c:4552

kvfree+0x42/0x50 mm/util.c:615

device_release

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

CVE-2022-49390 is a high-severity vulnerability. It was published on February 26, 2025 and has a CVSS 3.1 base score of 7.8 (HIGH).

How severe is CVE-2022-49390?

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

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

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