Am I affected?

This record states its affected versions in a form that can't be compared automatically.

3.0 and up affected
10.6.2 not affected
10.2.7.4 not affected
9.2.4.11 not affected
every other version: unknown

Description

Generation of Predictable Numbers or Identifiers vulnerability in Erlang/OTP kernel (inet_res, inet_db modules) allows DNS Cache Poisoning.

The built-in DNS resolver (inet_res) uses a sequential, process-global 16-bit transaction ID for UDP queries and does not implement source port randomization. Response validation relies almost entirely on this ID, making DNS cache poisoning practical for an attacker who can observe one query or predict the next ID. This conflicts with RFC 5452 recommendations for mitigating forged DNS answers.

inet_res is intended for use in trusted network environments and with trusted recursive resolvers. Earlier documentation did not clearly state this deployment assumption, which could lead users to deploy the resolver in environments where spoofed DNS responses are possible.

This vulnerability is associated with program files lib/kernel/src/inet_db.erl and lib/kernel/src/inet_res.erl.

This issue affects OTP from OTP 17.0 before OTP 28.4.2, OTP 27.3.4.10 and OTP 26.2.5.19, corresponding to kernel from 3.0 before 10.6.2, 10.2.7.4 and 9.2.4.11.

Weaknesses & attack patterns

Weakness

CWE-340 · Generation of Predictable Numbers or Identifiers in catalog → MITRE ↗

Attack patterns

CAPEC-142 · DNS Cache Poisoning MITRE ↗

Affected — Erlang / kernel Repository ↗

3.0 and up affected
10.6.2 not affected
10.2.7.4 not affected
9.2.4.11 not affected
every other version: unknown
default status unknown
cpe cpe:2.3:a:erlang:erlang/otp:*:*:*:*:*:*:*:*
modules · source files
modules inet_res · inet_db
source files src/inet_db.erl · src/inet_res.erl

Affected — GitHub / erlang/otp Repository ↗

17.0 and up affected
28.4.2 not affected
27.3.4.10 not affected
26.2.5.19 not affected
07b8f44 and up affected
36f23c9 not affected
dd15e8e not affected
b057a9d not affected
every other version: unknown
default status unknown
cpe cpe:2.3:a:erlang:erlang/otp:*:*:*:*:*:*:*:*
modules · source files
modules inet_res · inet_db
source files lib/kernel/src/inet_db.erl · lib/kernel/src/inet_res.erl

Workarounds

Install the Erlang nodes in a trusted network shielded from DNS reply spoofing by firewalls, and configure the inet_res resolver to only talk to trusted recursive name servers within that network.

Configurations

The application must use inet_res for DNS resolution, either by configuring the lookup method to include dns in the kernel inet configuration, or by calling inet_res functions directly. The default Erlang/OTP configuration uses native OS resolution and is not affected.

References

Credits

Luigino Camastra / Aisle Research Finder
Raimo Niskanen Remediation developer

CVSS breakdown

CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N
« All CVEs