Menu

Star on GitHub · 3.2k

CVE-2022-49312

5.5 · MEDIUM

In the Linux kernel, the following vulnerability has been resolved: staging: rtl8712: fix a potential memory leak in r871xu_drv_init() In r871xu_drv_init(), if r8712_init_drv_sw() fails, then the…

Published Feb 26, 2025CWE-401EPSS 0.27%

Overview

CVE-2022-49312 is a medium-severity vulnerability. It was published on February 26, 2025 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:

staging: rtl8712: fix a potential memory leak in r871xu_drv_init()

In r871xu_drv_init(), if r8712_init_drv_sw() fails, then the memory

allocated by r8712_alloc_io_queue() in r8712_usb_dvobj_init() is not

properly released as there is no action will be performed by

r8712_usb_dvobj_deinit().

To properly release it, we should call r8712_free_io_queue() in

r8712_usb_dvobj_deinit().

Besides, in r871xu_dev_remove(), r8712_usb_dvobj_deinit() will be called

by r871x_dev_unload() under condition `padapter->bup` and

r8712_free_io_queue() is called by r8712_free_drv_sw().

However, r8712_usb_dvobj_deinit() does not rely on `padapter->bup` and

calling r8712_free_io_queue() in r8712_free_drv_sw() is negative for

better understading the code.

So I move r8712_usb_dvobj_deinit() into r871xu_dev_remove(), and remove

r8712_free_io_queue() from r8712_free_drv_sw().

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

CVE-2022-49312 is a medium-severity vulnerability. It was published on February 26, 2025 and has a CVSS 3.1 base score of 5.5 (MEDIUM).

How severe is CVE-2022-49312?

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

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

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

View all