/

CVE-2026-45354

Severity:

HIGH RISK

(7.5)

Protocol Desynchronization (CWE-444) in Netatalk DSI

CVE-2026-45354

Deferred

Vulnerability type

Category:

Protocol Desynchronization

CWE:

CWE-444

Impact:

Denial of Service and Protocol State Corruption

Severity:

HIGH RISK

(7.5)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

Netatalk can misinterpret a DSI header field as a payload offset for command types where that interpretation does not apply. An unauthenticated client may leave attacker-controlled bytes to be read as the next header, potentially disrupting protocol state or causing denial of service.

Affected context

The issue occurs in Netatalk's DSI stream handling when processing command packets. It affects implementations that interpret the dsi_code/dsi_doff union field as a data offset for command types other than DSIWrite; a nonzero value smaller than the packet's declared payload length can leave residual bytes in the readahead buffer.

Exploit preconditions

  • Attack surface: The DSI network protocol exposed by a Netatalk file server
  • Required access: No authentication is required
  • Trigger point: Processing a non-WRITE DSIFUNC_CMD packet
  • Why exploitation is possible: A nonzero dsi_code smaller than dsi_len can cause the receiver to consume only part of the payload, leaving attacker-controlled bytes to be interpreted as the next DSI header

Why this happens

The stream parser applies a union field's data-offset meaning without first restricting that interpretation to the DSI command type that defines it. This inconsistent handling of protocol fields and message boundaries maps to CWE-444: Inconsistent Interpretation of HTTP Requests (also applicable to inconsistent interpretation of other protocol messages). Residual payload bytes can then be parsed as a separate header.

Potential impact

  • A client may be able to desynchronize the DSI protocol stream
  • Sessions could close or protocol state could become corrupted
  • Repeated or crafted input could trigger an infinite-read denial of service

General mitigation guidance

Defensive approaches focus on enforcing protocol semantics and message boundaries:

  • Interpret command-specific fields only for the command types that define them
  • Validate payload lengths and offsets against the complete frame before consuming data
  • Reject malformed or inconsistent packets rather than carrying residual bytes into subsequent parsing
  • Use a strict, stateful protocol parser with explicit framing rules
  • Apply resource limits and isolate the file server process with least privilege

How teams detect issues like this

  • Review parser code for union fields or header values interpreted without checking the message type
  • Use static analysis and code review checks for unchecked length, offset, and buffer-consumption logic
  • Test protocol parsers with malformed frames, boundary values, and cases where declared lengths differ from consumed lengths
  • Monitor for repeated malformed DSI packets, unexpected session closures, or stalled reads
  • Enforce protocol validation policies at network boundaries where feasible

Sources

SourceLink
github.comgithub.com/Netatalk/netatalk/commit/032d1f1a987d40c26d31ac6c424b129f6697c6f5
github.comgithub.com/Netatalk/netatalk/commit/b80892b6cc15c98a2eec2c8339b09295ebc2417f
github.comgithub.com/Netatalk/netatalk/releases/tag/netatalk-4-4-3
github.comgithub.com/Netatalk/netatalk/security/advisories/GHSA-x7mm-865g-6jp3

Frequently asked

questions

Yes. The described attack uses a DSI packet sent by an unauthenticated client to a reachable Netatalk service.

No authentication is required according to the vulnerability description.

Apply command-specific parsing rules and validate complete frame boundaries before consuming payload data or advancing parser state.

Use strict protocol state machines, test malformed and boundary-case frames, and review parsers for inconsistent interpretations of headers and lengths.

Find out what's already
exploitable in your codebase.