CVE-2026-46221: EDAC/versalnet: Fix device name memory leak

Published May 28, 2026
·
Updated

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

EDAC/versalnet: Fix device name memory leak

The device name allocated via kzalloc() in initonemc() is assigned to dev->initname but never freed on the normal removal path. deviceregister() copies initname and then sets dev->initname to NULL, so the name pointer becomes unreachable from the device. Thus leaking memory.

Use a stack-local char array instead of using kzalloc() for name.

Affected Software

5 affected components
Linux Linux kernel (EDAC/versalnet)
Linux Linux kernel>=6.18<6.18.32
Linux Linux kernel>=6.19<7.0.9
Linux Linux kernel=7.1-rc1
Linux Linux kernel=7.1-rc2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Configuration

    Modify init_one_mc() to use a stack-local char array for the device name rather than allocating it with kzalloc(), so dev->init_name is not leaked (device_register() copies init_name and sets dev->init_name to NULL).

    EDAC/versalnet (Linux kernel) device name allocation = stack-local char array instead of kzalloc()

Event History

May 28, 2026
CVE Published
via MITRE·09:40 AM
Data Sourced
via MITRE·09:40 AM
Description
Data Sourced
via NVD·10:16 AM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2026-46221?

CVE-2026-46221 has a risk rating of 4, indicating a moderate severity level.

2

What is the primary issue addressed by CVE-2026-46221?

CVE-2026-46221 addresses a memory leak caused by the device name not being freed during the normal removal path in the Linux kernel.

3

How do I fix CVE-2026-46221?

To fix CVE-2026-46221, update your Linux kernel to the version that includes the patch for the device name memory leak.

4

Which software is affected by CVE-2026-46221?

CVE-2026-46221 affects the Linux kernel, specifically in the EDAC/versalnet module.

5

When was CVE-2026-46221 published?

CVE-2026-46221 was published on May 28, 2026.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203