REDHAT-BUG-2526864: High severity Ericsson Erlang/OTP vulnerability
Missing Release of Resource after Effective Lifetime vulnerability in Erlang/OTP inets httpd allows an unauthenticated remote attacker to cause denial of service by sending a request with a chunked body whose chunk-size line is not a hexadecimal number. The worker serving the connection is never released and no timeout reclaims it, so repeating the request across connections occupies every available worker and denies service to legitimate clients. No authentication is required and the default configuration is affected.
The chunk-size line must arrive in a write separate from the headers. When the body accompanies the headers, httpdrequesthandler:handlebody/3 calls httpchunk:decode/3 inside a try ... catch throw:Error, so the {error, {chunksize, }} thrown by httpchunk:decodesize/4 is answered with 400 Bad Request. When the chunk size arrives later, the decoder is resumed through a bare catch in httpdrequesthandler:handleinfo/2, which converts the throw into a return value rather than raising it; the resulting error tuple is then treated as the next decoder continuation, the socket is re-armed, and the worker waits for data that never comes. The request timeout has already been cancelled at the point the headers were accepted, and the periodic byte-rate check is only armed when minimumbytespersecond is configured, which it is not by default.
This issue affects OTP from OTP 18.1.4 before OTP 27.3.4.17, from OTP 28.0 before OTP 28.5.0.6, and from OTP 29.0 before OTP 29.0.6, corresponding to inets from 6.0.3 before 9.3.2.7, from 9.4 before 9.6.2.3, and from 9.7 before 9.7.2.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 9.3.2.7 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 9.6.2.3 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 9.7.2
Event History
Frequently Asked Questions
What conditions are required to trigger the denial of service?
An unauthenticated remote attacker must send an HTTP request with a chunked body whose chunk-size line is not hexadecimal, and send that chunk-size line in a separate write after the headers. If the body is sent together with the headers, the server returns 400 Bad Request instead.
Are default deployments affected?
Yes. The default configuration is affected, and no authentication is required.
How does repeated exploitation affect service availability?
Each malformed request can leave the worker serving that connection unreleased, with no timeout reclaiming it. Repeating the request on separate connections can consume all available workers and prevent legitimate clients from being served.