Skip to content
Heist/ feed
Back to feed
HighFix available

binfmt_flat: Fix corruption when not offsetting data start

Type: advisorySources: OSV

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.

Products
Kernel
Affected versions
Not specified
Fixed versions
5.15.165, 6.1.106, 6.10.6, 6.6.47
CVEs
CVE-2024-44966
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 23:11 UTC · Revision 1

Source evidence

binfmt_flat: Fix corruption when not offsetting data start

core-osv · Original source

Published 4 Sept 2024, 18:38 UTC

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.

osv:CVE-2024-44966

Kernel

Fixed versions: 5.15.165, 6.1.106, 6.6.47, 6.10.6

Complete source record
{
  "id": "ec26a04ded2b71f7e753d85b95bc6341dbb407cbfce4f0a9c8b9dc76eee25968",
  "url": "https://osv.dev/vulnerability/CVE-2024-44966",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "binfmt_flat: Fix corruption when not offsetting data start",
    "summary": "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.",
    "evidence": "osv:CVE-2024-44966",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "5.15.165",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.1.106",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.6.47",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.10.6",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "high",
    "structured": {
      "id": "CVE-2024-44966",
      "aliases": [
        "CVE-2024-44966"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "04d82a6d0881ef1ab1e9f66f10805177ee2fb1e8"
                },
                {
                  "fixed": "3a684499261d0f7ed5ee72793025c88c2276809c"
                },
                {
                  "fixed": "af65d5383854cc3f172a7d0843b628758bf462c8"
                },
                {
                  "fixed": "49df34d2b7da9e57c839555a2f7877291ce45ad1"
                },
                {
                  "fixed": "9350ba06ee61db392c486716ac68ecc20e030f7c"
                },
                {
                  "fixed": "3eb3cd5992f7a0c37edc8d05b4c38c98758d8671"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-44966.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.13.0"
                },
                {
                  "fixed": "5.15.165"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.16.0"
                },
                {
                  "fixed": "6.1.106"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.2.0"
                },
                {
                  "fixed": "6.6.47"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.7.0"
                },
                {
                  "fixed": "6.10.6"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-44966.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:40.356215217Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/3a684499261d0f7ed5ee72793025c88c2276809c",
        "https://git.kernel.org/stable/c/3eb3cd5992f7a0c37edc8d05b4c38c98758d8671",
        "https://git.kernel.org/stable/c/49df34d2b7da9e57c839555a2f7877291ce45ad1",
        "https://git.kernel.org/stable/c/9350ba06ee61db392c486716ac68ecc20e030f7c",
        "https://git.kernel.org/stable/c/af65d5383854cc3f172a7d0843b628758bf462c8",
        "https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/44xxx/CVE-2024-44966.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2024-44966",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/44xxx/CVE-2024-44966.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2024-44966",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 507895,
  "published_at": "2024-09-04T18:38:45.625+00:00"
}