Menu

Star on GitHub · 3.2k

CVE-2022-50477

5.5 · MEDIUM

In the Linux kernel, the following vulnerability has been resolved: rtc: class: Fix potential memleak in devm_rtc_allocate_device() devm_rtc_allocate_device() will alloc a rtc_device first, and t…

Published Oct 4, 2025CWE-401EPSS 0.15%

Overview

CVE-2022-50477 is a medium-severity vulnerability. It was published on October 4, 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:

rtc: class: Fix potential memleak in devm_rtc_allocate_device()

devm_rtc_allocate_device() will alloc a rtc_device first, and then run

dev_set_name(). If dev_set_name() failed, the rtc_device will memleak.

Move devm_add_action_or_reset() in front of dev_set_name() to prevent

memleak.

unreferenced object 0xffff888110a53000 (size 2048):

comm "python3", pid 470, jiffies 4296078308 (age 58.882s)

hex dump (first 32 bytes):

00 00 00 00 00 00 00 00 08 30 a5 10 81 88 ff ff .........0......

08 30 a5 10 81 88 ff ff 00 00 00 00 00 00 00 00 .0..............

backtrace:

[<000000004aac0364>] kmalloc_trace+0x21/0x110

[<000000000ff02202>] devm_rtc_allocate_device+0xd4/0x400

[<000000001bdf5639>] devm_rtc_device_register+0x1a/0x80

[<00000000351bf81c>] rx4581_probe+0xdd/0x110 [rtc_rx4581]

[<00000000f0eba0ae>] spi_probe+0xde/0x130

[<00000000bff89ee8>] really_probe+0x175/0x3f0

[<00000000128e8d8

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

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

How severe is CVE-2022-50477?

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

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

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