CVE-2024-44966
JSON

7.8high

binfmt_flat: Fix corruption when not offsetting data start

Severity
7.8high CVSS:3.1 by Linux
Exploit likelihood
0.33% (higher than 18% of CVEs)
Published
Last changed
Assigned by
Linux

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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 04d82a6d0881ef1ab1e9f66f10805177ee2fb1e8 before 3a684499261d0f7ed5ee72793025c88c2276809c, from 04d82a6d0881ef1ab1e9f66f10805177ee2fb1e8 before af65d5383854cc3f172a7d0843b628758bf462c8, from 04d82a6d0881ef1ab1e9f66f10805177ee2fb1e8 before 49df34d2b7da9e57c839555a2f7877291ce45ad1, from 04d82a6d0881ef1ab1e9f66f10805177ee2fb1e8 before 9350ba06ee61db392c486716ac68ecc20e030f7c, from 04d82a6d0881ef1ab1e9f66f10805177ee2fb1e8 before 3eb3cd5992f7a0c37edc8d05b4c38c98758d8671, 5.13
Not affected: before 5.13, from 5.15.165 up to 5.15.*, from 6.1.106 up to 6.1.*, from 6.6.47 up to 6.6.*, from 6.10.6 up to 6.10.*, from 6.11 up to *
CVE List
linux linux_kernelfrom 5.13 before 5.15.165, from 5.16 before 6.1.106, from 6.2 before 6.6.47, from 6.7 before 6.10.6, 6.11NVD

All scores

Linux7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Classification

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: binfmt_flat: Se corrige la corrupción cuando no se compensa el inicio de los datos. El commit 04d82a6d0881 ("binfmt_flat: permitir no compensar el inicio de los datos") introdujo una variante específica de RISC-V del formato FLAT que no asigna ningún espacio para la matriz (obsoleta) de punteros de librería compartida. Sin embargo, no deshabilitó el código que inicializa la matriz, lo que resultó en la corrupción de sizeof(long) bytes antes del segmento DATA, generalmente el final del segmento TEXT. Introduzca MAX_SHARED_LIBS_UPDATE que depende del estado de CONFIG_BINFMT_FLAT_NO_DATA_START_OFFSET para proteger la inicialización de la región del puntero de la librería compartida de modo que solo se inicialice si se reserva espacio para ella.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-44966 changed 2026-08-05CVE Terms of Use
NVDCVE-2024-44966 changed 2026-08-04Public domain