Security Advisory

CVE-2022-27255: Realtek eCos SIP ALG Overflow

Last updated:
  • CVE-2022-27255

CVE-2022-27255 is a stack-based buffer overflow in the SIP ALG of Realtek's eCos router SDK: a crafted SIP packet with malicious SDP data, sent from the WAN side, can crash the device or run code without authentication. NVD scores it 9.8. Device makers need Realtek's 20220314 SIP ALG patch and a firmware rebuild per model.

Vulnerability summary

CVSS base score

9.8

Critical severity

EPSS score (FIRST)

36.7%

Probability of exploitation in the wild in the next 30 days

CISA KEV catalog

No

Not listed

Published

Vulnerability ID: CVE-2022-27255 · Source: NVD

Affected components

ComponentCPEVersion range
Realtek eCos RSDKcpe:2.3:o:realtek:ecos_rsdk_firmware:1.5.7p1:*:*:*:*:*:*:*1.5.7p1 (NVD); Realtek lists the rtl819x-eCos-v0.x and v1.x series, fixed by patch 20220314_ecos_fix_crash_caused_by_vulnerability_of_sip_alg (Realtek advisory 2022-03-25)
Realtek eCos MSDKcpe:2.3:o:realtek:ecos_msdk_firmware:4.9.4p1:*:*:*:*:*:*:*4.9.4p1 (NVD)
Routers and range extenders built on the Realtek eCos SDK—Per device maker; Faraday Security lists 30 vulnerable devices from 19 brands found in its research (Faraday repository, as of 2026-11-19)

What does this mean for affected devices?

CVE-2022-27255 sits in the SIP ALG of Realtek's eCos SDK, the RTOS branch of the AP-Router SDK that Realtek supplies for low-cost routers and range extenders. NVD's description says: "In Realtek eCos RSDK 1.5.7p1 and MSDK 4.9.4p1, the SIP ALG function that rewrites SDP data has a stack-based buffer overflow", which lets an attacker "remotely execute code without authentication via a crafted SIP packet" (NVD). NVD's Primary score is 9.8, CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H, and NVD maps it to CWE-20 (improper input validation). The CNA, MITRE, published the CVE record on 2022-08-01 with no score and no CWE, and there is no CISA ADP score.

How does the SIP ALG overflow work?

Realtek's advisory, released 2022-03-25, gives the root cause as "insufficient validation on the received buffer, and unsafe calls to strcpy": the SIP ALG module copies parts of SIP packets into a fixed buffer without checking the length. It says a remote attacker can exploit it "through a WAN interface" with overly long arguments in the SDP data or SIP header, causing a crash or remote code execution. Because the ALG rewrites SIP traffic for NAT, the vulnerable code parses packets from the internet even when no management service is exposed.

Which Realtek SDKs and devices are affected?

Realtek lists the rtl819x-eCos-v0.x and rtl819x-eCos-v1.x series. NVD's CPE configuration names ecos_rsdk_firmware 1.5.7p1 and ecos_msdk_firmware 4.9.4p1 only. Realtek names SDK series, not products. Faraday Security, whose researchers reported the flaw and presented it at DEF CON 30, lists 30 vulnerable routers and extenders from 19 brands in its public repository. That list is research testing, not a vendor statement, so confirm each model with its maker. On eCos the firmware is one monolithic image with no file system; Faraday's checker uses binwalk to detect MIPS endianness, finds the load address and runs a Ghidra script over the raw image.

How do you fix CVE-2022-27255?

Realtek names one patch, 20220314_ecos_fix_crash_caused_by_vulnerability_of_sip_alg.rar, which chip customers get through Realtek's SDK channel; the public PDF does not include it. Device makers apply it to their eCos tree, rebuild and ship firmware per model. Our Realtek SDK vulnerabilities guide covers identifying SDK builds, and the memory corruption fix guide covers replacing unbounded copies such as strcpy.

Is CVE-2022-27255 exploited?

It is not in the CISA KEV catalog as of 2026-11-19 (catalog version 2026.11.18). FIRST EPSS gives it 0.36704, the 98.5th percentile, in the 2026-11-18 dataset (FIRST EPSS). Faraday published proof-of-concept code that it says should work on every affected router. The Linux-branch Realtek SDK flaws are CVE-2021-35394 in UDPServer, which is in KEV, and CVE-2021-35393 in the wscd daemon.

How to fix this class of issueNo dedicated SoftWSP guide covers this weakness class; the fix is usually the vendor patch or firmware update referenced above. Our related guide explains how to plan and verify it: NIST SP 800-40 Rev. 4: enterprise patch management planning, explained.

Evidence

  • NVD: [email protected] Primary CVSS 3.1 9.8 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H; CWE-20; CPE ecos_rsdk_firmware 1.5.7p1 and ecos_msdk_firmware 4.9.4p1; published 2022-08-01; status Modified, read 2026-11-19. — NVD
  • Realtek AP-Router SDK Advisory CVE-2022-27255 (2022-03-25): affected rtl819x-eCos-v0.x and v1.x series; SIP ALG calls strcpy into a fixed buffer without length check; exploitable through a WAN interface via SDP data or SIP header; crash or RCE; patch 20220314_ecos_fix_crash_caused_by_vulnerability_of_sip_alg.rar; reported by Faraday researchers. — Realtek
  • Faraday Security repository: DEF CON 30 materials, 30 vulnerable devices listed, PoC said to work on every affected router, firmware analysis via binwalk endianness detection, base address finder and Ghidra script. — Faraday Security (infobyte)
  • CVE record: state PUBLISHED, CNA MITRE, published 2022-08-01, no CNA score or CWE; only the CVE Program ADP container, no CISA ADP. — CVE.org
  • Not listed in CISA KEV catalog version 2026.11.18, checked 2026-11-19. — CISA KEV
  • EPSS 0.36704, percentile 0.98530, dataset 2026-11-18, read 2026-11-19. — FIRST EPSS

Related advisories

Sources

  1. NVD
  2. Realtek AP-Router SDK Advisory (CVE-2022-27255), 2022-03-25
  3. Faraday Security (infobyte): CVE-2022-27255 Realtek eCos SDK SIP ALG buffer overflow, DEF CON 30 materials
  4. DEF CON 30 talk: Exploring the hidden attack surface of OEM IoT devices
  5. CVE.org record CVE-2022-27255 (CNA: MITRE)
  6. CISA KEV
  7. FIRST EPSS

Frequently asked questions

Which Realtek SDK versions are affected by CVE-2022-27255?

Realtek lists the rtl819x-eCos-v0.x and rtl819x-eCos-v1.x series of its AP-Router SDK. NVD's CPE data names eCos RSDK 1.5.7p1 and MSDK 4.9.4p1. The advisory lists only eCos series (per the Realtek advisory of 2022-03-25 and NVD).

Can CVE-2022-27255 be exploited from the internet?

Yes. Realtek states that a remote attacker can exploit it through a WAN interface with a crafted SIP packet, and NVD's vector requires no privileges or user interaction. The SIP ALG processes SIP traffic passing through the router, so no management port has to be open (per the Realtek advisory and NVD).

How does a device maker fix CVE-2022-27255?

Apply Realtek's patch 20220314_ecos_fix_crash_caused_by_vulnerability_of_sip_alg to the eCos SDK tree, rebuild and ship firmware for each model. The patch comes through Realtek's SDK support channel, not the public advisory (per the Realtek advisory of 2022-03-25).

Is CVE-2022-27255 exploited in the wild?

It is not in the CISA KEV catalog as of 2026-11-19 (catalog version 2026.11.18). Faraday Security published proof-of-concept code, and FIRST EPSS gives it 0.36704, the 98.5th percentile, in the 2026-11-18 dataset (per CISA KEV, Faraday Security's repository and FIRST EPSS).