CVE-2022-20385

a function called 'nla_parse', do not check the len of para, it will check nla_type (which can be controlled by userspace) with 'maxtype' (in this case, it is…

published September 13, 2022

CVSS
—
EPSS
0%
Percentile
35.8
In the wild
Unconfirmed
What it is

⚠️ An unchecked length in the 'nla_parse' function could let mischief-makers access memory they shouldn't — think of it as a reckless waiter who serves up meals from the wrong table! Imagine a restaurant where a waiter can simply grab any dish from the kitchen without checking if it's actually meant for a customer at their table. In this scenario, the policy array is like a menu that can be accessed incorrectly, leading to some very unpredictable outcomes. An attacker could potentially gain unauthorized access to sensitive memory locations, which could lead to crashes or unexpected behavior in the Android system. While not a direct line to exploitation, the potential for chaos is definitely present, making this a risk to consider seriously!

Put simply

Imagine a restaurant where a waiter can simply grab any dish from the kitchen without checking if it's actually meant for a customer at their table. In this scenario, the policy array is like a menu that can be accessed incorrectly, leading to some very unpredictable outcomes. This vulnerability arises because the 'nla_parse' function does not properly validate the length of the 'para' input before checking the 'nla_type'. This oversight allows for out-of-bounds access to the policy array, leading to potential memory corruption.

What to do

An attacker could potentially gain unauthorized access to sensitive memory locations, which could lead to crashes or unexpected behavior in the Android system. While not a direct line to exploitation, the potential for chaos is definitely present, making this a risk to consider seriously! Developers should implement a check on the length of 'para' before processing it through 'nla_parse'. If you're maintaining affected versions of Android, keep an eye out for updates that address this issue and apply them promptly! You’ve got this! Stay vigilant and proactive in your security measures — the internet is counting on you! 🦸

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.00426 · 35.8th percentile
Published
2022-09-13T19:14Z
EPSS history
Timeline
  • 13 SEP 19:14Z
    a function called 'nla_parse', do not check the len of para, it will check nla_type (which can be controlled by userspace) with 'maxtype' (in this case, it is…
    cvelistv5