REDHAT-BUG-2577917: Low severity Red Hat certmonger vulnerability
A flaw was found in certmonger's SCEP handling. Certificate authority replies fetched over HTTP are buffered in full before any validation, with no size limit or transfer timeout on the download, and the daemon likewise reads submit helper output into a buffer without a cap. A malicious or compromised certificate authority, or a man-in-the-middle on a plaintext SCEP channel, can use this to consume memory on the host running the certmonger daemon (per-buffer growth is bounded at the talloc allocator's 256 MiB maximum, but the data is held in several copies at once across the helper, the daemon, and its postprocessing child), to leave certificate requests permanently stuck with a pinned CPU core once the daemon-side buffer cap is reached, and to hang requests indefinitely by serving replies slowly. The impact is availability only.
Affected Software
Event History
Frequently Asked Questions
Which deployments are exposed to this issue?
Hosts running the certmonger daemon that use SCEP and fetch certificate authority replies over HTTP are exposed. The risk includes connections to a malicious or compromised CA and plaintext SCEP channels where a man-in-the-middle can alter replies.
What does an attacker need to do to trigger the availability impact?
The attacker needs control of the CA response, either as the CA or through interception of a plaintext HTTP SCEP connection. They can send an excessively large response or deliberately serve the response slowly.
What operational symptoms indicate possible exploitation or exposure?
Certificate requests may remain stuck indefinitely, particularly when replies are served slowly. Once the daemon-side buffer cap is reached, requests can become permanently stuck while consuming a pinned CPU core; excessive memory consumption may also occur because response data is held in multiple copies.
What is the maximum size of an individual buffered response?
Per-buffer growth is bounded by the talloc allocator's 256 MiB maximum. However, the response can exist in several copies across the helper, certmonger daemon, and postprocessing child, so total memory consumption can be higher.