CVE-2022-47942 Memory corruption in n/a

High 8.8 Published Updated

A heap-based buffer overflow in the Linux kernel's ksmbd allows attackers to execute arbitrary code or escalate privileges via malformed SMB commands.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2022-47942?

CVE-2022-47942 is a high-severity memory corruption vulnerability in Linux kernel, published on 23 Dec 2022. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

An issue was discovered in ksmbd in the Linux kernel 5.15 through 5.19 before 5.19.2. There is a heap-based buffer overflow in set_ntacl_dacl, related to use of SMB2_QUERY_INFO_HE after a malformed SMB2_SET_INFO_HE command.

Weakness: CWE-787

Which versions are affected by CVE-2022-47942?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2022-47942?

Apply the vendor's patch.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2022-47942 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as AZL-12097, DEBIAN-CVE-2022-47942, GHSA-g2h7-7gvv-x89v, UBUNTU-CVE-2022-47942.

Is CVE-2022-47942 in your software?

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

Check your SBOMs for free