CVE-2021-47401 ipack: ipoctal: fix stack information leak

High 7.1 Published Updated

A local attacker can read uninitialized stack memory via the ipoctal tty driver, potentially exposing sensitive kernel data.

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

What is CVE-2021-47401?

CVE-2021-47401 is a high-severity vulnerability in Linux kernel, published on 21 May 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:

ipack: ipoctal: fix stack information leak

The tty driver name is used also after registering the driver and must specifically not be allocated on the stack to avoid leaking information to user space (or triggering an oops).

Drivers should not try to encode topology information in the tty device name but this one snuck in through staging without anyone noticing and another driver has since copied this malpractice.

Fixing the ABI is a separate issue, but this at least plugs the security hole.

Weakness: CWE-668

Which versions are affected by CVE-2021-47401?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2021-47401?

Apply the vendor's patch.

Is CVE-2021-47401 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as DEBIAN-CVE-2021-47401, GHSA-c227-q7j7-xf88, UBUNTU-CVE-2021-47401.

Is CVE-2021-47401 in your software?

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

Check your SBOMs for free