CVE-2022-48065
Published: 22 August 2023
GNU Binutils before 2.40 was discovered to contain a memory leak vulnerability var the function find_abstract_instance in dwarf2.c.
Notes
Author | Note |
---|---|
seth-arnold | binutils isn't safe for untrusted inputs. |
ccdm94 | binutils in bionic and earlier does not include commit 422f3d3d. In this commit, function 'find_abstract_instance' was included, and with it, the 'DW_AT_decl_file' case, which is where the memory leak occurs. The patch provided by upstream also fixes function 'scan_unit_for_symbols', which could also cause a memory leak for similar reasons as the other function. Fixing 'find_abstract_instance' in bionic and earlier is not possible as the code being fixed is not present. Fixing 'scan_unit_for_symbols' would only introduce possibly undefined behavior, as the patch frees a variable that in bionic and earlier, is not initialized by 'find_abstract_instance' and is not initialized by the alternative there present, 'find_abstract_instance_name', that doesn't even consider a filename for an argument. |
Priority
Status
Package | Release | Status |
---|---|---|
binutils Launchpad, Ubuntu, Debian |
bionic |
Not vulnerable
(code not present)
|
focal |
Released
(2.34-6ubuntu1.9)
|
|
jammy |
Released
(2.38-4ubuntu2.6)
|
|
lunar |
Not vulnerable
(2.40-2ubuntu4)
|
|
mantic |
Not vulnerable
(2.41-5ubuntu1)
|
|
trusty |
Not vulnerable
(code not present)
|
|
upstream |
Released
(2.39)
|
|
xenial |
Not vulnerable
(code not present)
|
|
Patches: upstream: https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=d28fbc7197ba0e021a43f873eff90b05dcdcff6a |
Severity score breakdown
Parameter | Value |
---|---|
Base score | 5.5 |
Attack vector | Local |
Attack complexity | Low |
Privileges required | None |
User interaction | Required |
Scope | Unchanged |
Confidentiality | None |
Integrity impact | None |
Availability impact | High |
Vector | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |