CVE-2024-44966
kernel: binfmt_flat: Fix corruption when not offsetting data start
Severity
ModerateRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · September 4, 2024
Updated · October 30, 2026
Description
In the Linux kernel, the following vulnerability has been resolved:
binfmt_flat: Fix corruption when not offsetting data start
Commit 04d82a6d0881 ("binfmt_flat: allow not offsetting data start") introduced a RISC-V specific variant of the FLAT format which does not allocate any space for the (obsolete) array of shared library pointers. However, it did not disable the code which initializes the array, resulting in the corruption of sizeof(long) bytes before the DATA segment, generally the end of the TEXT segment.
Introduce MAX_SHARED_LIBS_UPDATE which depends on the state of CONFIG_BINFMT_FLAT_NO_DATA_START_OFFSET to guard the initialization of the shared library pointer region so that it will only be initialized if space is reserved for it.
Statement
This vulnerability is rated as Moderate impact because triggering the memory corruption requires local execution privileges to load a binary, limiting the potential blast radius to a local denial of service or process crash. The affected FLAT binary handler configuration targets RISC-V architectures and is not enabled in standard Red Hat Enterprise Linux kernels. Consequently, default enterprise deployments are not exposed to this flaw.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
No mitigation is specified in collected source.
CVSS / CWE
CVSS 3.1 · 6.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:L
CWE-119 · Improper Restriction of Operations within the Bounds of a Memory Buffer