CVE-2021-47096 ALSA: rawmidi - fix the uninitalized user_pversion

Medium 4.0 Published Updated

An uninitialized memory flaw in the Linux kernel ALSA rawmidi driver could allow local attackers to read sensitive kernel memory.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2021-47096?

CVE-2021-47096 is a medium-severity vulnerability in Linux kernel, published on 4 Mar 2024. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

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

ALSA: rawmidi - fix the uninitalized user_pversion

The user_pversion was uninitialized for the user space file structure in the open function, because the file private structure use kmalloc for the allocation.

The kernel ALSA sequencer code clears the file structure, so no additional fixes are required.

BugLink: https://github.com/alsa-project/alsa-lib/issues/178

Weakness: CWE-908

Which versions are affected by CVE-2021-47096?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2021-47096?

Apply the vendor's patch.

Is CVE-2021-47096 being exploited?

There is no known exploitation of CVE-2021-47096 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as DEBIAN-CVE-2021-47096, GHSA-5gr3-55rj-mm4c, UBUNTU-CVE-2021-47096.

Is CVE-2021-47096 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free