CVE-2022-21540 Use after free in Java SE JDK and JRE
An unauthenticated attacker can exploit a use-after-free flaw in Java Hotspot to read sensitive data via network access.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-21540?
CVE-2022-21540 is a medium-severity use after free vulnerability in Debian Debian Linux, published on 19 Jul 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Vulnerability in the Oracle Java SE, Oracle GraalVM Enterprise Edition product of Oracle Java SE (component: Hotspot). Supported versions that are affected are Oracle Java SE: 7u343, 8u333, 11.0.15.1, 17.0.3.1, 18.0.1.1; Oracle GraalVM Enterprise Edition: 20.3.6, 21.3.2 and 22.1.0. Easily exploitable vulnerability allows unauthenticated attacker with network access via multiple protocols to compromise Oracle Java SE, Oracle GraalVM Enterprise Edition. Successful attacks of this vulnerability can result in unauthorized read access to a subset of Oracle Java SE, Oracle GraalVM Enterprise Edition accessible data. Note: This vulnerability applies to Java deployments, typically in clients running sandboxed Java Web Start applications or sandboxed Java applets, that load and run untrusted code (e.g., code that comes from the internet) and rely on the Java sandbox for security. This vulnerability can also be exploited by using APIs in the specified Component, e.g., through a web service which supplies data to the APIs. CVSS 3.1 Base Score 5.3 (Confidentiality impacts). CVSS Vector: (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N).
Weakness: CWE-416
Which versions are affected by CVE-2022-21540?
3 open source packages ship an affected version, including java, java-min and jre. It affects 15 products.
| Package | Affected | Fixed in |
|---|---|---|
java Bitnami | All versions | 1.7.0, 1.8.0, 7.0.351, 8.0.341, 11.0.16, 17.0.4, 18.0.2 |
java-min Bitnami | All versions | 1.7.0, 1.8.0, 7.0.351, 8.0.341, 11.0.16, 17.0.4, 18.0.2 |
jre Bitnami | All versions | 1.7.0, 1.8.0, 7.0.351, 8.0.341, 11.0.16, 17.0.4, 18.0.2 |
Products include Azul Zulu, Debian Debian Linux, Fedoraproject Fedora, Netapp 7-Mode Transition Tool, Netapp Active Iq Unified Manager, Netapp Cloud Insights Acquisition Unit and 9 more.
How do I fix CVE-2022-21540?
Upgrade java to a fixed version for your release line: 1.7.0, 1.8.0, 7.0.351 or 8.0.341.
Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.
Is CVE-2022-21540 being exploited?
There is no known exploitation of CVE-2022-21540 in the wild and no public exploit code.
Other vulnerabilities in Debian Debian Linux
Sources
Also known as BIT-java-2022-21540, BIT-java-min-2022-21540, BIT-jre-2022-21540, CLEANSTART-2026-TG92032, CLEANSTART-2026-WY16675, DEBIAN-CVE-2022-21540 and 10 more.