Skip to content
Info disclosure Advisory Advanced CVE-2022-42432

Linux Kernel nftables Uninitialized Variable Information Disclosure Vulnerability

The nft_osf_eval function in the Linux kernel accesses memory that has not been properly initialised, allowing a local attacker with high privileges to disclose sensitive information. The attacker could also combine this flaw with other vulnerabilities to execute arbitrary code in the kernel context.

Gwangun Jung Follow

Originally disclosed on Zero Day Initiative

Medium 5.1 View original

This vulnerability allows local attackers to disclose sensitive information on affected installations of the Linux Kernel. An attacker must first obtain the ability to execute high-privileged code on the target system in order to exploit this vulnerability.

Gwangun Jung at THEORI, on the Zero Day Initiative

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely, the nft_osf_eval function reads a memory location before it has been initialised, exposing stale data.

Impact

A local attacker with high privileges could disclose sensitive kernel information and, in conjunction with other vulnerabilities, execute arbitrary code in the kernel context.

What the attacker needed

High-privileged code execution on target

The fix

Linux issued an update to correct this vulnerability.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

When a program uses a piece of memory, it should first put a known value there. Here, the kernel reads memory that was never set up, so it may see leftover data from other parts of the system. Someone who already has high-level access on the machine could use this to read secrets or, with other bugs, run their own code inside the kernel.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More by Gwangun Jung

View all

2 more disclosed reports, best first.

More from Zero Day Initiative

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.