CVE-2023-3297
NixOS vulnerability analysis and mitigation

Overview

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).

Technical details

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).

Impact

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).

Mitigation and workarounds

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).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-61619HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025
CVE-2025-61618HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025
CVE-2025-61617HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025
CVE-2025-61610HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025
CVE-2025-65622MEDIUM5.4
  • PHPPHP
  • snipe-it
NoYesDec 01, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management