Home › CVE › Vulnerabilities
CVE-2026-107189 — GNU m4
Research article
GNU m4 integer overflow in frozen-state reload (CVE-2026-107189) enables denial of service
| CVE | CVE-2026-107189 |
|---|---|
| Vendor and product | GNU m4 |
| Published | November 28, 2026 22:45 UTC |
| Research cut-off | November 28, 2026 22:40 UTC |
| Sources reviewed | 4: NVD record (last modified 2026-11-27); CISA KEV catalog; vendor advisory page (cert.pl); FIRST EPSS (2026-11-28) |
Executive summary
CVE-2026-107189 is an integer overflow (CWE-190) in the frozen-state reload routine of GNU m4, triggered when a crafted frozen-state file is processed with the -R option, causing an oversized allocation request that terminates the program [1, 3]. NVD records a CVSS 4.0 base score of 4.6 (MEDIUM) with vector CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X, scored by cvd@cert.pl as a secondary scorer [1]. The CVE record lists GNU m4 versions up to and including 1.4.21 as affected, and the pack does not give a fixed release version [1]. The reviewed evidence describes a local attack vector, no privileges required and active user interaction, with impact limited to availability (denial of service) [1, 3]. The CVE is not listed in the CISA KEV catalog as of 2026-11-28, and EPSS estimates a 0.26% probability of exploitation activity in the next 30 days; neither is evidence of exploitation or its absence [2, 4]. Exploitation in the wild is not confirmed by the reviewed sources. The most important immediate action is to stop processing frozen-state files from untrusted sources with -R and to apply the upstream fix commit 69aef802fb25ab600d37210f44e5128633cbc432 to any m4 build [1, 3].
Key points
- CVE-2026-107189 is an integer overflow (CWE-190) in GNU m4's frozen-state reload routine, triggered by a crafted file used with -R, causing denial of service [1, 3].
- NVD records CVSS 4.0 4.6 (MEDIUM), vector CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X, scored by cvd@cert.pl (Secondary) [1].
- The CVE record lists GNU m4 up to and including 1.4.21 as affected; no fixed release version is published in the pack [1].
- Fix commit 69aef802fb25ab600d37210f44e5128633cbc432 is the vendor-referenced fix [1, 3].
- Not in CISA KEV as of 2026-11-28; EPSS 0.0026 (0.26%); no confirmed exploitation in the reviewed sources [2, 4].
Vulnerability identification
| Field | Value | Source |
|---|---|---|
| CVE ID | CVE-2026-107189 | [1] |
| Vendor and product | GNU m4 | [1, 3] |
| Component | Frozen-state reload routine in src/freeze.c, reached through the -R option | [1, 3] |
| Published / last modified | 2026-11-27T13:17:21 / 2026-11-27T13:17:21 | [1] |
| Record status | Received | [1] |
| CWE | CWE-190, Integer Overflow or Wraparound | [1] |
| CVSS 4.0 base score | 4.6, MEDIUM | [1] |
| CVSS 4.0 vector | CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X | [1] |
| CVSS scorer | cvd@cert.pl (Secondary) | [1] |
| CVSS 3.x score | Not present in the pack | [1] |
| Fix reference | Commit 69aef802fb25ab600d37210f44e5128633cbc432 | [1, 3] |
| Vendor-side bulletin | cert.pl bulletin for CVE-2026-107189 | [3] |
| CISA KEV status | Not listed as of 2026-11-28 | [2] |
| EPSS | 0.0026 (0.26%), percentile 0.1084, dated 2026-11-28 | [4] |
The CWE name indicates that an arithmetic result exceeded the range of its numeric type and wrapped, so a later value, here an allocation size, differed from what the code intended [1]. The CVSS score is a secondary score from cvd@cert.pl, not a score from the CVE Numbering Authority or NVD analysis [1].
The sources disagree on the function name. The NVD record names reloadfrozenstate() [1], while the cert.pl bulletin names reload_frozen_state() [3]. Both place the flaw in src/freeze.c, and both cite the same fix commit [1, 3]. Because the commit is the most specific reference, check the function name against that commit.
Vulnerability description
The flaw is an integer overflow in the routine that reloads a frozen state in GNU m4 [1, 3]. A malicious frozen-state file processed with -R causes the program to request an allocation of excessive size, and the program terminates. The reported outcome is denial of service [1, 3].
The reviewed sources report availability impact only. The CVSS 4.0 vector sets confidentiality and integrity impact to none and availability impact to low for the vulnerable system, and sets no impact on subsequent systems [1]. Neither source describes code execution, memory disclosure or privilege change, so these are not established as consequences of this CVE.
The bulletin states that CERT Polska received the report and coordinated disclosure, and it credits Michał Majchrowicz and Marcin Wyczechowski of the AFINE Team as reporters [3].
Attack surface and exploitation prerequisites
| Prerequisite | Evidence | Source |
|---|---|---|
| Access vector | Local (AV:L) per the CVSS 4.0 vector; the pack does not describe a remote path | [1] |
| Authentication and privilege | None required (PR:N) per the vector | [1] |
| User interaction | Active (UI:A) per the vector; the interaction itself is not described | [1] |
| Required feature | The -R option, with a frozen-state file as input | [1, 3] |
| Attacker position | Must supply a crafted frozen-state file that the m4 process reads; delivery method not described | [3] |
| Attack complexity and attack requirements | Low (AC:L) and none (AT:N) per the vector | [1] |
The vector values for access, privileges and user interaction are the only source for those prerequisites [1]. The pack does not show how a file reaches a victim's m4 process, whether the -R option is common in default workflows, or whether any real deployment passes untrusted files to it. These points are not established by the reviewed sources.
Impact analysis
| Impact area | Assessment | Source |
|---|---|---|
| Confidentiality | None per the vector | [1] |
| Integrity | None per the vector | [1] |
| Availability | Low per the vector; the demonstrated effect is program termination and denial of service | [1, 3] |
| Authentication and authorization | No change stated in the pack | [1] |
| Privilege boundary | The vector requires no privileges; no privilege change is described | [1] |
| Data and privacy | No data exposure described | [1, 3] |
| Regulatory or contractual | Not established by the pack | n/a |
Analyst assessment: the direct effect is a failed m4 run. Any wider disruption depends on how a given system invokes m4, such as in a build or automation job, and the pack does not describe such usage.
Affected products and versions
| Vendor | Product | Affected versions | Fixed version | Source and qualification |
|---|---|---|---|---|
| GNU | m4 | Affected up to and including 1.4.21, as published in the CVE record | Not published in the pack; fix commit 69aef802fb25ab600d37210f44e5128633cbc432 | [1] for the range, [1, 3] for the commit |
The range comes from the CVE Numbering Authority's record and has no stated lower bound [1]. The pack contains no GNU vendor advisory or release note. A version above 1.4.21 should not be treated as fixed until the commit is confirmed in that build.
Exploitation and threat intelligence status
Exploitation in the wild is not confirmed by the reviewed sources. The CVE is not in the CISA KEV catalog as of 2026-11-28, and the website notes that this absence is not evidence of non-exploitation [2]. EPSS gives a probability of 0.0026 (0.26%) of exploitation activity in the next 30 days, with percentile 0.1084 [4]. EPSS is a statistical estimate, not observed exploitation [4].
The pack lists no public proof-of-concept exploit and no threat actor or campaign attribution. Its references are the NVD record, the cert.pl bulletin and the fix commit [1, 3]. The lack of public evidence in this pack does not show that exploitation has not occurred.
Detection and exposure assessment
- Version inventory: run m4 --version on each host and record the reported version. A reported version of 1.4.21 or earlier falls within the range in the CVE record [1]. Distribution builds may include the fix without changing the version string, so this check does not prove the fix is present, and it does not prove exploitability.
- Commit check on a source build: in a checkout of the m4 source, run git -C <m4-source-directory> merge-base --is-ancestor 69aef802fb25ab600d37210f44e5128633cbc432 HEAD. Prerequisite: a Git clone of the m4 source that contains the commit. Expected result: exit status 0 if the commit is in the checked-out history. The check covers the source tree only, not an installed binary.
- Usage review: search build scripts, CI pipelines and configuration for invocations of m4 that include -R. The -R option with a frozen-state file is the stated trigger [1, 3]. The pack gives no detection signature for a malicious file.
- Failure review: review logs of m4 runs for abnormal termination. Analyst assessment: an unexpected m4 termination in a job that uses -R is a lead to investigate, not confirmation of this flaw. The pack gives no log events or indicators to match.
Remediation
Immediate mitigation (analyst assessment, following from the documented trigger [1, 3]):
| Measure | Protects against | Limitation and side effects | Verification |
|---|---|---|---|
| Stop using -R with frozen-state files from untrusted sources; use only files produced by a trusted, controlled process | The stated trigger, a crafted frozen-state file [3] | Does not correct the flaw; jobs that rely on external frozen states will fail | Review invocations of m4 with -R in scripts and CI configuration |
| Restrict write access to directories that hold frozen-state files used with -R | Substitution of files by an unprivileged user | Does not address files already present; limits who can change them | Check directory permissions on the affected hosts |
Permanent fix (vendor-referenced fix commit):
- Apply the upstream fix commit 69aef802fb25ab600d37210f44e5128633cbc432 [1, 3]. Build m4 from a source tree that contains this commit, or install a distribution package whose maintainer confirms it includes the commit. The pack gives no distributor statement.
- A fixed release version is not published in the pack, so do not use a version number alone to confirm the fix. Use the commit check in the detection section.
- After updating, confirm the new binary is the one on the search path, for example with which m4 and m4 --version, and re-run the commit check against the source used to build it.
- Keep the previous m4 binary until the replacement is validated, so the change can be rolled back. m4 is a command-line tool, so no service restart is documented for it.
Vendor-referenced: the fix commit [1, 3]. Analyst recommendation: input restriction and the usage review above.
Remediation checklist
- Inventory every host and build pipeline running m4, and record the output of m4 --version for each [1].
- Search scripts, CI pipelines and configuration for m4 invocations that include -R, and list those that read frozen-state files from outside a trusted process [1, 3].
- Stop passing untrusted frozen-state files to m4 -R; use only files generated by a controlled process until the fix is applied [3].
- Restrict write access to directories holding frozen-state files used with -R, and confirm permissions with ls -ld on each directory [3].
- Apply the upstream fix commit 69aef802fb25ab600d37210f44e5128633cbc432 by building m4 from a source tree containing it, or by installing a distribution package whose maintainer confirms the commit [1, 3].
- Verify the fix on each source build with git -C <m4-source-directory> merge-base --is-ancestor 69aef802fb25ab600d37210f44e5128633cbc432 HEAD and confirm exit status 0 [1].
- Do not treat a version above 1.4.21 as fixed without the commit check, because the pack publishes no fixed release version [1].
- Keep the previous m4 binary until the replacement is validated, then remove it once rollback is no longer needed.
- If an m4 process terminates abnormally in a job that uses -R, preserve its logs and the input file, and compare the file against the trusted source before reuse [1, 3].
- Recheck the NVD record and cert.pl bulletin for updates, including the record status, which is Received at the cut-off [1, 3].
Evidence gaps
- Not established by the reviewed sources: the fixed release version of GNU m4. Confirm it from the GNU release announcements or the upstream repository tags after commit 69aef802fb25ab600d37210f44e5128633cbc432.
- Not established by the reviewed sources: the lower bound of the affected range; the CVE record gives only up to and including 1.4.21. Confirm it from the upstream history of src/freeze.c.
- Not established by the reviewed sources: the root cause, meaning which size calculation overflows and why bounds checks did not prevent it. Confirm from the diff in commit 69aef802fb25ab600d37210f44e5128633cbc432.
- Not established by the reviewed sources: the correct function name, since the NVD record says reloadfrozenstate() and the cert.pl bulletin says reload_frozen_state(). Confirm from the commit contents.
- Not established by the reviewed sources: a GNU vendor advisory or release note for this CVE. Only the CVE record, the cert.pl bulletin and the fix commit are in the pack.
- Not established by the reviewed sources: how a malicious frozen-state file would be delivered to a victim, and whether typical deployments use -R with untrusted input.
- Not established by the reviewed sources: exploitation in the wild, public proof-of-concept code, threat actor attribution, or indicators of compromise. Check CISA KEV, vendor telemetry and public exploit repositories after the cut-off.
- Not established by the reviewed sources: distribution-specific fix status. Confirm with each Linux or BSD distributor's security tracker for the package.
- Not established by the reviewed sources: a CVSS 3.x score or any other scorer's assessment; only the cvd@cert.pl CVSS 4.0 score is present. Confirm whether NVD analysis adds scores once the record moves beyond Received.
References
- CVE-2026-107189 record. NIST National Vulnerability Database (NVD), 2026-11-27. https://nvd.nist.gov/vuln/detail/CVE-2026-107189. Accessed 2026-11-28.
- Known Exploited Vulnerabilities Catalog. Cybersecurity and Infrastructure Security Agency (CISA), 2026-11-28. https://www.cisa.gov/known-exploited-vulnerabilities-catalog. Accessed 2026-11-28.
- Vendor bulletin page (cert.pl). cert.pl. https://cert.pl/en/posts/2026/11/CVE-2026-107189/. Accessed 2026-11-28.
- EPSS score for CVE-2026-107189. FIRST, 2026-11-28. https://api.first.org/data/v1/epss?cve=CVE-2026-107189. Accessed 2026-11-28.
Summary
GNU m4 contains an integer overflow vulnerability in reload_frozen_state() in src/freeze.c. When processing a malicious frozen-state file via the -R option, an attacker can trigger an oversized allocation request that crashes the program, causing denial of service. This issue was fixed in commit 69aef802fb25ab600d37210f44e5128633cbc432.
Severity breakdown
Medium · 4.6
An attacker without an account can exploit this with local access if a user is tricked into an action.
- Attack from
- local access (a logged-in user, or a malicious file opened on the device)
- Attack complexity
- low (no special conditions)
- Special conditions
- none
- Login needed
- no
- User action needed
- yes, a user must deliberately do something
- Impact
- low on availability, none on confidentiality and integrity
- Impact on other systems
- none
Weakness
- CWE-190: Integer Overflow or Wraparound
Affected and fixed versions
| Product | Affected versions | Fixed in |
|---|---|---|
| GNU m4 | ≤ 1.4.21 | — |
References by type
Other references
Affected
- GNU m4
Frequently asked questions
What is CVE-2026-107189?
CVE-2026-107189 is an integer overflow (CWE-190) in the frozen-state reload routine of GNU m4, triggered when a crafted frozen-state file is processed with the -R option, causing an oversized allocation request that terminates the program. Weakness type: Integer Overflow or Wraparound (CWE-190).
How severe is CVE-2026-107189?
CVE-2026-107189 has a CVSS 4.0 base score of 4.6 (medium), from the CNA (cert.pl). An attacker without an account can exploit this with local access if a user is tricked into an action.
Is CVE-2026-107189 being exploited?
Not as far as is known: CVE-2026-107189 is not in CISA's Known Exploited Vulnerabilities catalog as of November 29, 2026. EPSS estimates a 0.3% chance that it is exploited in the next 30 days.
Which versions are affected by CVE-2026-107189?
GNU m4 ≤ 1.4.21.
How do I fix CVE-2026-107189?
Inventory every host and build pipeline running m4, and record the output of m4 --version for each. Search scripts, CI pipelines and configuration for m4 invocations that include -R, and list those that read frozen-state files from outside a trusted process. Stop passing untrusted frozen-state files to m4 -R; use only files generated by a controlled process until the fix is applied.