CVE-2026-100027 (GCVE-0-2026-100027)

Vulnerability from cvelistv5 – Published: 2026-11-30 13:23 – Updated: 2026-12-01 05:39
VLAI
Title
lib/buildid: reject file offsets that do not fit in pgoff_t
Summary
In the Linux kernel, the following vulnerability has been resolved: lib/buildid: reject file offsets that do not fit in pgoff_t On a 32-bit kernel, parsing the build ID of a crafted ELF file can copy far more than the intended bytes into a 64-byte on-stack buffer in __build_id_parse(), corrupting the stack of whatever context fetches the build ID. This might be reachable without privilege: perf records a build ID for PERF_RECORD_MMAP2 on the no-fault path when a process mmaps its own file (build_id_parse_nofault() from perf_event_mmap()), and BPF build-id stack maps do the same. freader_get_folio() turns a 64-bit file offset into a page cache index with file_off >> PAGE_SHIFT and passes it to filemap_get_folio(). pgoff_t is unsigned long, 32-bit on a 32-bit kernel, so an ELF64 e_phoff of 2^44 + k * PAGE_SIZE truncates to index k. filemap_get_folio() returns the cached folio at index k, whose folio_pos() is far below the requested file_off. In freader_fetch() the folio does not contain file_off, so the "crossing folio boundaries" path computes part_sz = folio_off + folio_sz - file_off as a large u64 (file_off is much larger), and the following memcpy() truncates it to size_t and copies a page into the 64-byte buffer. On a 64-bit kernel the index is not truncated, the folio is not cached and the fetch returns -EFAULT, so only 32-bit kernels are affected. Reject a file offset that cannot be represented as a page cache index before the lookup, so such a file fails the build ID parse cleanly as it already does on 64-bit. Reproduced on i386 under QEMU with CONFIG_STACKPROTECTOR_STRONG: mmapping a crafted ELF (ELFCLASS64, e_phoff = 2^44) while a perf event with attr.build_id is open panics with "stack-protector: Kernel stack is corrupted in: __build_id_parse"; with this patch the parse returns -EFAULT and the mmap completes cleanly. Built for i386 with W=1, no new warnings.
Assigner
Linux CNA under the mitre root
CNA scorecard D 52/100 over 8585 records in the last 180 days details
Impacted products
Vendor Product Version CPE status
Linux Linux Affected: de3ec364c3c37971dbba1e37a55ae5b646c6f24e , < 3e385811176cd7968b0ad687a4118e90632018f4 (git)
Affected: de3ec364c3c37971dbba1e37a55ae5b646c6f24e , < 78b8738d6656acec8a0d812bf826a9a412f16971 (git)
Affected: de3ec364c3c37971dbba1e37a55ae5b646c6f24e , < 34bd3e5f44a327e15c1a6513bae8267bda19b43f (git)
Affected: de3ec364c3c37971dbba1e37a55ae5b646c6f24e , < 0007654a7bf13ef2a19afd398bbc6507087f19fd (git)
guessed Create a notification for this product.
Linux Linux Affected: 6.12
Unaffected: 0 , < 6.12 (semver)
Unaffected: 6.12.117 , ≤ 6.12.* (semver)
Unaffected: 6.18.63 , ≤ 6.18.* (semver)
Unaffected: 7.3.4 , ≤ 7.3.* (semver)
Unaffected: 7.4-rc1 , ≤ * (original_commit_for_fix)
guessed Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "lib/buildid.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "3e385811176cd7968b0ad687a4118e90632018f4",
              "status": "affected",
              "version": "de3ec364c3c37971dbba1e37a55ae5b646c6f24e",
              "versionType": "git"
            },
            {
              "lessThan": "78b8738d6656acec8a0d812bf826a9a412f16971",
              "status": "affected",
              "version": "de3ec364c3c37971dbba1e37a55ae5b646c6f24e",
              "versionType": "git"
            },
            {
              "lessThan": "34bd3e5f44a327e15c1a6513bae8267bda19b43f",
              "status": "affected",
              "version": "de3ec364c3c37971dbba1e37a55ae5b646c6f24e",
              "versionType": "git"
            },
            {
              "lessThan": "0007654a7bf13ef2a19afd398bbc6507087f19fd",
              "status": "affected",
              "version": "de3ec364c3c37971dbba1e37a55ae5b646c6f24e",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "lib/buildid.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "6.12"
            },
            {
              "lessThan": "6.12",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.12.*",
              "status": "unaffected",
              "version": "6.12.117",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.18.*",
              "status": "unaffected",
              "version": "6.18.63",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "7.3.*",
              "status": "unaffected",
              "version": "7.3.4",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "7.4-rc1",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.12.117",
                  "versionStartIncluding": "6.12",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.18.63",
                  "versionStartIncluding": "6.12",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.3.4",
                  "versionStartIncluding": "6.12",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.4-rc1",
                  "versionStartIncluding": "6.12",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nlib/buildid: reject file offsets that do not fit in pgoff_t\n\nOn a 32-bit kernel, parsing the build ID of a crafted ELF file can copy\nfar more than the intended bytes into a 64-byte on-stack buffer in\n__build_id_parse(), corrupting the stack of whatever context fetches the\nbuild ID.  This might be reachable without privilege: perf records a build ID\nfor PERF_RECORD_MMAP2 on the no-fault path when a process mmaps its own file\n(build_id_parse_nofault() from perf_event_mmap()), and BPF build-id stack\nmaps do the same.\n\nfreader_get_folio() turns a 64-bit file offset into a page cache index\nwith file_off \u003e\u003e PAGE_SHIFT and passes it to filemap_get_folio().\npgoff_t is unsigned long, 32-bit on a 32-bit kernel, so an ELF64 e_phoff\nof 2^44 + k * PAGE_SIZE truncates to index k.  filemap_get_folio()\nreturns the cached folio at index k, whose folio_pos() is far below the\nrequested file_off.  In freader_fetch() the folio does not contain\nfile_off, so the \"crossing folio boundaries\" path computes\npart_sz = folio_off + folio_sz - file_off as a large u64 (file_off is\nmuch larger), and the following memcpy() truncates it to size_t and\ncopies a page into the 64-byte buffer.  On a 64-bit kernel the index is\nnot truncated, the folio is not cached and the fetch returns -EFAULT, so\nonly 32-bit kernels are affected.\n\nReject a file offset that cannot be represented as a page cache index\nbefore the lookup, so such a file fails the build ID parse cleanly as it\nalready does on 64-bit.\n\nReproduced on i386 under QEMU with CONFIG_STACKPROTECTOR_STRONG: mmapping\na crafted ELF (ELFCLASS64, e_phoff = 2^44) while a perf event with\nattr.build_id is open panics with \"stack-protector: Kernel stack is\ncorrupted in: __build_id_parse\"; with this patch the parse returns\n-EFAULT and the mmap completes cleanly.  Built for i386 with W=1, no new\nwarnings."
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "baseScore": 7.8,
            "baseSeverity": "HIGH",
            "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
            "version": "3.1"
          },
          "scenarios": [
            {
              "lang": "en",
              "value": "AV:L - The malformed ELF64 e_phoff comes from a file the local user writes and maps with mmap(); __mmap_complete() -\u003e perf_event_mmap() -\u003e perf_event_mmap_event() -\u003e build_id_parse_nofault() -\u003e __build_id_parse() -\u003e freader_fetch()/freader_get_folio() parse it. No remote protocol carries the data.\nAC:L - On an affected 32-bit kernel the attacker sets up every condition: e_phoff = 2^44 + j, pre-reading the file so filemap_get_folio() finds the truncated index\u0027s folio uptodate, and opening their own build_id perf event. After that the truncated-pgoff_t lookup and memcpy happen deterministically on mmap().\nPR:L - At the default sysctl_perf_event_paranoid=2, an unprivileged user can open a per-task perf event on themselves with exclude_kernel=1, mmap=1 and build_id=1 (neither perf_allow_kernel() nor perf_allow_cpu() applies), which raises nr_build_id_events. Mapping their own file needs only a normal account.\nUI:N - The attacker does everything with their own syscalls (write the crafted ELF, read it into the page cache, perf_event_open, mmap); no other user or administrator has to act or mount anything.\nS:U - The overflow corrupts the kernel stack of the task calling mmap(). That is an ordinary local kernel compromise inside the same security authority, with no VM, IOMMU or sandbox boundary crossed.\nC:H - In freader_fetch() the truncated part_sz makes memcpy copy up to 4096-j attacker-chosen file bytes into the 64-byte buf[] in __build_id_parse(). A stack overflow with controlled length and content can corrupt saved registers and caller frames, which can lead to arbitrary kernel read.\nI:H - Overwriting __build_id_parse()\u0027s frame and caller frames (saved registers, return address, caller locals) with fully attacker-controlled bytes is a control-flow-hijack primitive, so kernel integrity is fully exposed.\nA:H - Even with CONFIG_STACKPROTECTOR (default y) the overflow reliably panics with \u0027stack-protector: Kernel stack is corrupted in: __build_id_parse\u0027, and an unprivileged user can repeat it at will by mmapping the file."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-12-01T05:39:38.012Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/3e385811176cd7968b0ad687a4118e90632018f4"
        },
        {
          "url": "https://git.kernel.org/stable/c/78b8738d6656acec8a0d812bf826a9a412f16971"
        },
        {
          "url": "https://git.kernel.org/stable/c/34bd3e5f44a327e15c1a6513bae8267bda19b43f"
        },
        {
          "url": "https://git.kernel.org/stable/c/0007654a7bf13ef2a19afd398bbc6507087f19fd"
        }
      ],
      "title": "lib/buildid: reject file offsets that do not fit in pgoff_t",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2026-100027",
    "datePublished": "2026-11-30T13:23:12.416Z",
    "dateReserved": "2026-09-25T10:25:14.453Z",
    "dateUpdated": "2026-12-01T05:39:38.012Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2026-100027",
      "date": "2026-12-04",
      "epss": "0.00175",
      "percentile": "0.07295"
    },
    "nvd": {
      "cve": {
        "affected": [
          {
            "affectedData": [
              {
                "defaultStatus": "unaffected",
                "product": "Linux",
                "programFiles": [
                  "lib/buildid.c"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "lessThan": "3e385811176cd7968b0ad687a4118e90632018f4",
                    "status": "affected",
                    "version": "de3ec364c3c37971dbba1e37a55ae5b646c6f24e",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "78b8738d6656acec8a0d812bf826a9a412f16971",
                    "status": "affected",
                    "version": "de3ec364c3c37971dbba1e37a55ae5b646c6f24e",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "34bd3e5f44a327e15c1a6513bae8267bda19b43f",
                    "status": "affected",
                    "version": "de3ec364c3c37971dbba1e37a55ae5b646c6f24e",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "0007654a7bf13ef2a19afd398bbc6507087f19fd",
                    "status": "affected",
                    "version": "de3ec364c3c37971dbba1e37a55ae5b646c6f24e",
                    "versionType": "git"
                  }
                ]
              },
              {
                "defaultStatus": "affected",
                "product": "Linux",
                "programFiles": [
                  "lib/buildid.c"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "status": "affected",
                    "version": "6.12"
                  },
                  {
                    "lessThan": "6.12",
                    "status": "unaffected",
                    "version": "0",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "6.12.*",
                    "status": "unaffected",
                    "version": "6.12.117",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "6.18.*",
                    "status": "unaffected",
                    "version": "6.18.63",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "7.3.*",
                    "status": "unaffected",
                    "version": "7.3.4",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "*",
                    "status": "unaffected",
                    "version": "7.4-rc1",
                    "versionType": "original_commit_for_fix"
                  }
                ]
              }
            ],
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
          }
        ],
        "cveTags": [],
        "descriptions": [
          {
            "lang": "en",
            "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nlib/buildid: reject file offsets that do not fit in pgoff_t\n\nOn a 32-bit kernel, parsing the build ID of a crafted ELF file can copy\nfar more than the intended bytes into a 64-byte on-stack buffer in\n__build_id_parse(), corrupting the stack of whatever context fetches the\nbuild ID.  This might be reachable without privilege: perf records a build ID\nfor PERF_RECORD_MMAP2 on the no-fault path when a process mmaps its own file\n(build_id_parse_nofault() from perf_event_mmap()), and BPF build-id stack\nmaps do the same.\n\nfreader_get_folio() turns a 64-bit file offset into a page cache index\nwith file_off \u003e\u003e PAGE_SHIFT and passes it to filemap_get_folio().\npgoff_t is unsigned long, 32-bit on a 32-bit kernel, so an ELF64 e_phoff\nof 2^44 + k * PAGE_SIZE truncates to index k.  filemap_get_folio()\nreturns the cached folio at index k, whose folio_pos() is far below the\nrequested file_off.  In freader_fetch() the folio does not contain\nfile_off, so the \"crossing folio boundaries\" path computes\npart_sz = folio_off + folio_sz - file_off as a large u64 (file_off is\nmuch larger), and the following memcpy() truncates it to size_t and\ncopies a page into the 64-byte buffer.  On a 64-bit kernel the index is\nnot truncated, the folio is not cached and the fetch returns -EFAULT, so\nonly 32-bit kernels are affected.\n\nReject a file offset that cannot be represented as a page cache index\nbefore the lookup, so such a file fails the build ID parse cleanly as it\nalready does on 64-bit.\n\nReproduced on i386 under QEMU with CONFIG_STACKPROTECTOR_STRONG: mmapping\na crafted ELF (ELFCLASS64, e_phoff = 2^44) while a perf event with\nattr.build_id is open panics with \"stack-protector: Kernel stack is\ncorrupted in: __build_id_parse\"; with this patch the parse returns\n-EFAULT and the mmap completes cleanly.  Built for i386 with W=1, no new\nwarnings."
          }
        ],
        "id": "CVE-2026-100027",
        "lastModified": "2026-12-01T06:17:19.527",
        "metrics": {
          "cvssMetricV31": [
            {
              "cvssData": {
                "attackComplexity": "LOW",
                "attackVector": "LOCAL",
                "availabilityImpact": "HIGH",
                "baseScore": 7.8,
                "baseSeverity": "HIGH",
                "confidentialityImpact": "HIGH",
                "integrityImpact": "HIGH",
                "privilegesRequired": "LOW",
                "scope": "UNCHANGED",
                "userInteraction": "NONE",
                "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
                "version": "3.1"
              },
              "exploitabilityScore": 1.8,
              "impactScore": 5.9,
              "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
              "type": "Secondary"
            }
          ]
        },
        "published": "2026-11-30T14:17:18.297",
        "references": [
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/0007654a7bf13ef2a19afd398bbc6507087f19fd"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/34bd3e5f44a327e15c1a6513bae8267bda19b43f"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/3e385811176cd7968b0ad687a4118e90632018f4"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/78b8738d6656acec8a0d812bf826a9a412f16971"
          }
        ],
        "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "vulnStatus": "Received"
      }
    },
    "redhat_vex": {
      "aggregate_severity": "Important",
      "current_release_date": "2026-12-01T06:04:42+00:00",
      "cve": "CVE-2026-100027",
      "id": "CVE-2026-100027",
      "initial_release_date": "2026-11-30T13:23:12.416000+00:00",
      "product_status:known_affected": "187",
      "product_status:known_not_affected": "93",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: kernel: Denial of Service via stack buffer overflow in build ID parser",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-100027.json",
      "version": "3"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline

Sightings and recorded dates, grouped by day · UTC

JSON
How durations are calculated

Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation. The method is described in a publication.

Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.

Events included in the timeline

Loading timeline…


    Loading…

    Loading…

    Loading…

    Related by attack behaviour

    Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.