- Package:
- src:opendkim
- Source:
- src:opendkim
- Submitter:
- Salvatore Bonaccorso
- Date:
- 2026-11-08 16:21:06 UTC
- Severity:
- normal
- Tags:
Hi, The following vulnerabilities were published for opendkim. CVE-2026-100888[0]: | A weakness has been identified in Trusted Domain Project OpenDKIM up | to 2.11.0. This affects the function dkim_canon_selecthdrs of the | file libopendkim/dkim-canon.c of the component DKIM Signature Header | Selection. Executing a manipulation of the argument h can lead to | out-of-bounds write. The attack can be executed remotely. The | exploit has been made available to the public and could be used for | attacks. The vendor was contacted early about this disclosure but | did not respond in any way. CVE-2026-100889[1]: | A vulnerability was detected in Trusted Domain Project OpenDKIM up | to 2.11.0. Affected is the function dkim_qp_decode of the file | util.c of the component Decoder. The manipulation results in off-by- | one. The attack may be performed from remote. The exploit is now | public and may be used. The vendor was contacted early about this | disclosure but did not respond in any way. CVE-2026-101277[2]: | A security flaw has been discovered in Trusted Domain Project | OpenDKIM up to 2.11.0. The impacted element is the function | dkim_process_set of the file dkim.c of the component Tag Tokenizer. | Performing a manipulation results in use of less trusted source. The | attack may be initiated remotely. The exploit has been released to | the public and may be used for attacks. The vendor was contacted | early about this disclosure but did not respond in any way. If you fix the vulnerabilities please also make sure to include the CVE (Common Vulnerabilities & Exposures) ids in your changelog entry. For further information see: [0] https://security-tracker.debian.org/tracker/CVE-2026-100888 https://www.cve.org/CVERecord?id=CVE-2026-100888 [1] https://security-tracker.debian.org/tracker/CVE-2026-100889 https://www.cve.org/CVERecord?id=CVE-2026-100889 [2] https://security-tracker.debian.org/tracker/CVE-2026-101277 https://www.cve.org/CVERecord?id=CVE-2026-101277 Please adjust the affected versions in the BTS as needed. Regards, Salvatore
Hi, Attached is a small patch for two of the three CVEs in this bug. I found no upstream fix for either: dkim_qp_decode() is the same on upstream's develop branch as in 2.11.0 Beta2, and dkim_canon_selecthdrs() there still has the same loop. The patch applies to 2.11.0~beta2-9.2, 2.11.0~beta2-9.1 and 2.11.0~beta2-8+deb12u1 after their patch series. Bullseye was not checked. CVE-2026-100888, dkim_canon_selecthdrs(): lhdrs has dkim_hdrcnt slots, but the loop stores NULL at lhdrs[shcnt] for every name in h=. Once all headers are used, shcnt equals dkim_hdrcnt, so one more name writes a NULL pointer one slot past the array. The patch stops the loop at that point; no unused header remains to be matched, so the result does not change. CVE-2026-100889, dkim_qp_decode(): the check is q <= end with end = out + outlen, so it stores outlen + 1 bytes. The callers in dkim.c that I read all pass the buffer size minus one, so in those the extra byte is still inside the buffer. It lands on the byte reserved for the terminator, and the callers that ignore the return value can be left with an unterminated string. I did not review other users of this exported function. Testing is limited. I did not reproduce either bug and did not write a trigger for them. I compiled the unpatched and patched functions with ASan and UBSan in a small harness with stubbed types, and ran valid inputs through them: 8 quoted-printable strings and 6 header lists, on all three versions above. Output was identical and the sanitizers reported nothing. That shows no regression on those inputs; it does not demonstrate the fixes. I did not build the full package or run its test suite. CVE-2026-101277 is not covered and I have not assessed it. Regards, Sumit Verma