CVE-2022-40297

HIGH

UBports Ubuntu Touch 16.04 - Improper Privilege Management via Sudo Passcode

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2022-40297. PoCs published by filipkarc.

AI-analyzed exploit summary This repository contains a functional proof-of-concept exploit for CVE-2022-40297, demonstrating a privilege escalation vulnerability in Ubuntu Touch 16.04 where a 4-digit passcode can be brute-forced to gain root access via sudo.

Description

UBports Ubuntu Touch 16.04 allows the screen-unlock passcode to be used for a privileged shell via Sudo. This passcode is only four digits, far below typical length/complexity for a user account's password. NOTE: a third party states "The described attack cannot be executed as demonstrated.

Exploits (1)

nomisec WORKING POC 5 stars
by filipkarc · poc
https://github.com/filipkarc/PoC-ubuntutouch-pin-privesc

This repository contains a functional proof-of-concept exploit for CVE-2022-40297, demonstrating a privilege escalation vulnerability in Ubuntu Touch 16.04 where a 4-digit passcode can be brute-forced to gain root access via sudo.

Classification
Working Poc 100%
Attack Type
Lpe
Complexity
Trivial
Reliability
Reliable
Target: Ubuntu Touch 16.04
No auth needed
Prerequisites: Ubuntu Touch 16.04 with a 4-digit passcode set
mistral-large-3 · analyzed Feb 19, 2026 Full analysis →

References (1)

Core 1
Core References
Exploit, Third Party Advisory x_refsource_misc
https://github.com/filipkarc/PoC-ubuntutouch-pin-privesc

Scores

CVSS v3 7.8
EPSS 0.0045
EPSS Percentile 36.6%
Attack Vector LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

CISA SSVC

Vulnrichment
Exploitation poc
Automatable no
Technical Impact partial

Details

CWE
CWE-269
Status published
Products (1)
ubports/ubuntu_touch 16.04
Published Sep 09, 2022
Tracked Since Feb 18, 2026