FreeBSD : gpgme -- double free vulnerability (9d113e97-e6db-11f1-8ead-93299b7f89e8)

high Nessus Plugin ID 385367

Synopsis

The remote FreeBSD host is missing one or more security-related updates.

Description

The version of FreeBSD installed on the remote host is prior to tested version. It is, therefore, affected by a vulnerability as referenced in the 9d113e97-e6db-11f1-8ead-93299b7f89e8 advisory.

GnuPG reports:
By using an OpenPGP key containing a crafted very long user id it is possible to trigger a double free. This double free can be used exfiltrate data from applications by sending for example signed data. Exploiting this bug to mount an Remote Code Execution attack (RCE) can't be ruled out.
The root cause for this bug are two GPGME internal functions to read the status lines and key listings from gpg. Initially a buffer of 1024 bytes is allocated which is reallocated if more space is required. When reallocating the pointer to the new buffer, it is used by the function, but it is only assigned back to the context object at the end of the function. Thus if the function returns early due to a read error or other events, the context is not updated and keeps the stale pointer to the freed memory. Eventually, the context is released and the memory is freed a second time. Due to other allocations in between the common double free checks of memory allocators may not be triggered.

Tenable has extracted the preceding description block directly from the FreeBSD security advisory.

Note that Nessus has not tested for this issue but has instead relied only on the application's self-reported version number.

Solution

Update the affected packages.

See Also

https://lists.gnupg.org/pipermail/gnupg-announce/2026q4/000517.html

https://static.dev.gnupg.org/T8557

http://www.nessus.org/u?94ff84e7

Plugin Details

Severity: High

ID: 385367

File Name: freebsd_pkg_9d113e97e6db11f18ead93299b7f89e8.nasl

Version: 1.1

Type: Local

Published: 11/23/2026

Updated: 11/23/2026

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: High

Score: 7.9

Percentile: 99.33

CVSS v2

Risk Factor: High

Base Score: 7.5

Temporal Score: 5.5

Vector: CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P

CVSS Score Source: CVE-2026-129975

CVSS v3

Risk Factor: High

Base Score: 8.1

Temporal Score: 7.1

Vector: CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

Vulnerability Information

CPE: cpe:/o:freebsd:freebsd, p-cpe:/a:freebsd:freebsd:gpgme

Required KB Items: Host/local_checks_enabled, Host/FreeBSD/release, Host/FreeBSD/pkg_info

Exploit Ease: No known exploits are available

Patch Publication Date: 11/22/2026

Vulnerability Publication Date: 11/22/2026

Reference Information

CVE: CVE-2026-129975