CyberSecBulletin
CVE-2022-32091NVD status: Modified

Mariadb: Use After Free

CVE-2022-32091 is a high-severity use after free vulnerability in Mariadb, with a CVSS 3.1 base score of 7.5 out of 10. It can be exploited remotely over the network by an unauthenticated attacker, without any action from a user. The record lists versions 10.3.36, 10.4.26, 10.5.17 as the first without the flaw, so updating Mariadb to one of those releases or later removes the exposure. There is no confirmed exploitation so far. EPSS estimates a 2.37% chance of exploitation within 30 days, higher than 84% of scored CVEs.

Next patch cycle

High severity with no evidence of exploitation so far.

What to do

  1. Update Mariadb to 10.3.36 or 10.4.26 or 10.5.17 or 10.6.9, whichever matches your release line, or a later version.
  2. Until you can update, restrict network access to the affected service so it is not reachable from untrusted networks.

Affected products and versions

VendorProductAffected versionsFixed in
MariaDBMariadb10.3.0 up to, but not including, 10.3.36; 10.4.0 up to, but not including, 10.4.26; 10.5.0 up to, but not including, 10.5.17; 10.6.0 up to, but not including, 10.6.9; 10.7.0 up to, but not including, 10.7.5; 10.8.0 up to, but not including, 10.8.4; 10.9.0 up to, but not including, 10.9.210.3.36, 10.4.26, 10.5.17, 10.6.9, 10.7.5, 10.8.4
DebianDebian Linux10.0Not stated
Fedora ProjectFedora35; 36; 37Not stated

Version data comes from NVD's product matching. Confirm against the vendor advisory before deciding you are unaffected.

How the severity score breaks down

Attack vector
NetworkCan be exploited remotely over a network, including the internet.
Attack complexity
LowNo special conditions are needed; the attack works reliably.
Privileges required
NoneNo account or login is needed.
User interaction
NoneNo action by a victim is required.
Scope
UnchangedImpact stays within the vulnerable component.
Confidentiality
NoneNo data is disclosed.
Integrity
NoneNothing can be modified.
Availability
HighThe component can be taken down completely.

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H. Scored by NVD.

Scoring systemScoreSeverityScored by
CVSS 3.17.5HighNVD
CVSS 2.05.0MediumNVD

Official description

MariaDB v10.7 was discovered to contain an use-after-poison in in __interceptor_memset at /libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc.

Source: the CVE record as published by its numbering authority, via NVD and CVE.org.

The underlying weakness: Use After Free

The product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory belongs to the code that operates on the new pointer.

How developers prevent this class of flaw

  • Choose a language that provides automatic memory management.
  • When freeing pointers, be sure to set them to NULL once they are freed. However, the utilization of multiple or complex data structures may lower the usefulness of this strategy.

More Use After Free vulnerabilities (CWE-416)

Timeline

  1. CVE record published.
  2. Record last changed materially (score, affected products, status or references).

References

Third-party and government advisories

Technical write-ups (may include proof of concept)

Other vulnerabilities in Mariadb

All Mariadb vulnerabilities

Recent Use After Free vulnerabilities

Spotted an error? Tell us.