# CVE-2021-40648: In man2html 1.6g, a filename can be created to overwrite the previous size parameter of the next chunk and the fd, bk, fdnextsize, bknextsi…

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.34%, higher than 29% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-09-09T17:57:38.000Z
- Modified: 2026-06-17T04:07:12.957Z
- Weaknesses: CWE-20
- Assigned by: mitre

## Description

In man2html 1.6g, a filename can be created to overwrite the previous size parameter of the next chunk and the fd, bk, fd_nextsize, bk_nextsize of the current chunk. The next chunk is then freed later on, causing a freeing of an arbitrary amount of memory.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- man2html_project man2html: 1.6g

## References

- <https://gist.github.com/untaman/cb58123fe89fc65e3984165db5d40933> (exploit, third-party-advisory)

## Sources

- CVE List: [CVE-2021-40648](https://www.cve.org/CVERecord?id=CVE-2021-40648), CVE Terms of Use, modified 2024-08-04
- NVD: [CVE-2021-40648](https://nvd.nist.gov/vuln/detail/CVE-2021-40648), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-40648 · Whole record: https://cve.day/CVE-2021-40648.json · Rebuilt by cve.day 2026-11-25T22:58:07.820Z
