
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2023-3297 is a use-after-free vulnerability in Ubuntu's accountsservice package discovered in June 2023. The vulnerability allows an unprivileged local attacker to trigger a use-after-free condition by sending a D-Bus message to the accounts-daemon process. The issue affects multiple Ubuntu versions including 20.04 LTS, 22.04 LTS, 22.10, and 23.04 (Ubuntu Security, NVD).
The vulnerability exists due to incorrect handling of D-Bus messages in accountsservice. After receiving a D-Bus method call, the service incorrectly sends both METHODRETURN and ERROR messages back to the client, when it should only send one or the other. This causes a use-after-free condition because both throwerror and accountsusercompletesetlanguage decrease the reference count on the context object. The issue is more noticeable on Ubuntu 23.04 due to GLib's memory allocation changes, where newer versions use the system allocator instead of the 'slice' allocator, causing a SIGSEGV crash (GitHub Security Lab).
While exploitation is considered difficult, the vulnerability could potentially allow a local unprivileged attacker to gain root privileges. The issue affects the accounts-daemon process and could lead to system crashes or arbitrary code execution (Ubuntu Security Notice, GitHub Security Lab).
The issue has been fixed in multiple Ubuntu versions with the following package updates: Ubuntu 23.04 (22.08.8-1ubuntu7.1), Ubuntu 22.04 LTS (22.07.5-2ubuntu1.4), Ubuntu 20.04 LTS (0.6.55-0ubuntu12~20.04.6). The fix involves properly returning from functions after throw_error() has been called (Launchpad Bug).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."