U.S. flag   An official website of the United States government
Dot gov

Official websites use .gov
A .gov website belongs to an official government organization in the United States.

Https

Secure .gov websites use HTTPS
A lock (Dot gov) or https:// means you've safely connected to the .gov website. Share sensitive information only on official, secure websites.

CVE-2026-31520 Detail

Description

In the Linux kernel, the following vulnerability has been resolved: HID: apple: avoid memory leak in apple_report_fixup() The apple_report_fixup() function was returning a newly kmemdup()-allocated buffer, but never freeing it. The caller of report_fixup() does not take ownership of the returned pointer, but it *is* permitted to return a sub-portion of the input rdesc, whose lifetime is managed by the caller.


Metrics

NVD enrichment efforts reference publicly available information to associate vector strings. CVSS information contributed by other sources is also displayed.
CVSS 4.0 Severity and Vector Strings:

NIST CVSS score
NIST: NVD
N/A
NVD assessment not yet provided.

References to Advisories, Solutions, and Tools

By selecting these links, you will be leaving NIST webspace. We have provided these links to other web sites because they may have information that would be of interest to you. No inferences should be drawn on account of other sites being referenced, or not, from this page. There may be other web sites that are more appropriate for your purpose. NIST does not necessarily endorse the views expressed, or concur with the facts presented on these sites. Further, NIST does not endorse any commercial products that may be mentioned on these sites. Please address comments about this page to [email protected].

URL Source(s) Tag(s)
https://git.kernel.org/stable/c/239c15116d80f67d32f00acc34575f1a6b699613 kernel.org Patch 
https://git.kernel.org/stable/c/2635d0c715f3fb177e0f80ecd5fa48feb6bf3884 kernel.org Patch 
https://git.kernel.org/stable/c/31860c3f7ac66ab897a8c90dc4e74fa17ca0b624 kernel.org Patch 
https://git.kernel.org/stable/c/be1a341c161430282acdfe2ac99b413271575cf1 kernel.org Patch 
https://git.kernel.org/stable/c/e2f090aeb7b9930a964e151910f4d45b04c8a7e5 kernel.org Patch 
https://git.kernel.org/stable/c/e652ebd29928181c3e6820e303da25873e9917d4 kernel.org Patch 

Weakness Enumeration

CWE-ID CWE Name Source
CWE-401 Missing Release of Memory after Effective Lifetime cwe source acceptance level NIST  

Known Affected Software Configurations Switch to CPE 2.2

CPEs loading, please wait.

Denotes Vulnerable Software
Are we missing a CPE here? Please let us know.

Change History

2 change records found show changes

Quick Info

CVE Dictionary Entry:
CVE-2026-31520
NVD Published Date:
04/22/2026
NVD Last Modified:
04/28/2026
Source:
kernel.org