Skip to content

RDKCOM-5501: RDKBDEV-3351 Fix for EDNS package size incorrect, CVE-2023-28450#192

Open
owen-lu-sercomm wants to merge 2 commits into
rdkcentral:developfrom
owen-lu-sercomm:RDKBDEV-3351
Open

RDKCOM-5501: RDKBDEV-3351 Fix for EDNS package size incorrect, CVE-2023-28450#192
owen-lu-sercomm wants to merge 2 commits into
rdkcentral:developfrom
owen-lu-sercomm:RDKBDEV-3351

Conversation

@owen-lu-sercomm

Copy link
Copy Markdown
Contributor

Reason for change:
An issue was discovered in Dnsmasq before 2.90. The default maximum EDNS.0 UDP packet size was set to 4096 but should be 1232 because of DNS Flag Day 2020.
Test Procedure:

  1. Capture packages on lan client
  2. Send query with edns from lan client
  3. Check the UDP payload size in the Additional records in DNS response package, which should be 1232 instead of 4096
    Risks: Low

Signed-off-by: Owen Lu owen_lu@sercomm.com

@owen-lu-sercomm owen-lu-sercomm requested review from a team as code owners January 27, 2026 10:28
@pradeeptakdas pradeeptakdas changed the title RDKBDEV-3351:Fix for EDNS package size incorrect, CVE-2023-28450 RDKCOM-5501: RDKBDEV-3351 Fix for EDNS package size incorrect, CVE-2023-28450 Jan 27, 2026

@SanthoshGujulvajagadeesh SanthoshGujulvajagadeesh left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

-P option should be set to 1232 instead of 4096 since the dnsmasq version currently used is 2.83 which doesn't set default EDNS UDP packet size to 1232.
'-P 4096' needs to be replaced with '-P 1232' in many places.

@AkhilaReddyK7 AkhilaReddyK7 added the community-contribution Contribution from community label Mar 17, 2026
@AkhilaReddyK7

Copy link
Copy Markdown

@SanthoshGujulvajagadeesh
Review comments are addressed. Can you please review and merge the PR.

@SanthoshGujulvajagadeesh

Copy link
Copy Markdown
Contributor

@AkhilaReddyK7 Need to know for which platforms this change is applicable

@GoutamD2905 GoutamD2905 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Requested DevQA Tina to validate the test procedure shared in RDKCOM-5501

@tinaelizabeth84

Copy link
Copy Markdown

@GoutamD2905 Could you please check the test results?

@GoutamD2905

Copy link
Copy Markdown
Contributor

@owen-lu-sercomm

Could you please add the pack size changes under the non-Comcast platform–specific flag, as shown in the code below?

else
                if [ non-comcast platform ]
                $SERVER -P 1232 -C $DHCP_CONF $DNS_ADDITIONAL_OPTION  #--enable-dbus
                else
                $SERVER -P 4096 -C $DHCP_CONF $DNS_ADDITIONAL_OPTION  #--enable-dbus
                fi
fi

CC : @tinaelizabeth84

@owen-lu-sercomm

owen-lu-sercomm commented May 14, 2026

Copy link
Copy Markdown
Contributor Author

@GoutamD2905 , I have added non-Comcast platform–specific flag, please help review

@pradeeptakdas

Copy link
Copy Markdown

Hi @owen-lu-sercomm

Thanks for your patience.

We discussed this internally with the component owners , and they’re aligned on accepting this as a generic change without any vendor-specific conditional flag. One suggestion from them is to add a new Custom RFC parameter for the packet size, with the default set to 1232, so we can adjust it at runtime if any issues are observed in field deployments.

Please let us know if you have any question or concern .

CC @anoopchelakkode , @snayak002c , @sshriv323 , @SanthoshGujulvajagadeesh , @GoutamD2905

Copilot AI review requested due to automatic review settings July 16, 2026 05:55
@github-actions

Copy link
Copy Markdown

📋 PR Format Reminder

  • Description missing:
    • Priority (P0 / P1 / P2)

Expected:

TICKET-123 : brief description

Reason for change: why
Test Procedure: how to verify
Risks: Low / Medium / High
Priority: P0 / P1 / P2

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adjusts dnsmasq startup parameters in the DHCP/DNS service script to address the incorrect default EDNS.0 UDP packet size (per DNS Flag Day 2020 / CVE context).

Changes:

  • Reads PartnerID and an edns_packet_size syscfg value when starting dnsmasq in the non-XDNS path.
  • Defaults EDNS packet size to 1232 for non-Comcast partners, while keeping 4096 for Comcast.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +142 to +149
PARTNER_ID=$(syscfg get PartnerID)
EDNS_PACKET_SIZE=$(syscfg get edns_packet_size)
EDNS_PACKET_SIZE=${EDNS_PACKET_SIZE:-1232}
if [ "$PARTNER_ID" != "comcast" ]; then
$SERVER -P $EDNS_PACKET_SIZE -C $DHCP_CONF $DNS_ADDITIONAL_OPTION #--enable-dbus
else
$SERVER -P 4096 -C $DHCP_CONF $DNS_ADDITIONAL_OPTION #--enable-dbus
fi
Comment on lines +145 to +149
if [ "$PARTNER_ID" != "comcast" ]; then
$SERVER -P $EDNS_PACKET_SIZE -C $DHCP_CONF $DNS_ADDITIONAL_OPTION #--enable-dbus
else
$SERVER -P 4096 -C $DHCP_CONF $DNS_ADDITIONAL_OPTION #--enable-dbus
fi
Copilot AI review requested due to automatic review settings July 16, 2026 07:08

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 2 comments.

Comment on lines +142 to +149
PARTNER_ID=$(syscfg get PartnerID)
EDNS_PACKET_SIZE=$(syscfg get edns_packet_size)
EDNS_PACKET_SIZE=${EDNS_PACKET_SIZE:-1232}
if [ "$PARTNER_ID" != "comcast" ]; then
$SERVER -P $EDNS_PACKET_SIZE -C $DHCP_CONF $DNS_ADDITIONAL_OPTION #--enable-dbus
else
$SERVER -P 4096 -C $DHCP_CONF $DNS_ADDITIONAL_OPTION #--enable-dbus
fi
Comment on lines +145 to +149
if [ "$PARTNER_ID" != "comcast" ]; then
$SERVER -P $EDNS_PACKET_SIZE -C $DHCP_CONF $DNS_ADDITIONAL_OPTION #--enable-dbus
else
$SERVER -P 4096 -C $DHCP_CONF $DNS_ADDITIONAL_OPTION #--enable-dbus
fi
…for the packet size,add default syscfg edns_packet_size=1232. CVE-2023-28450

        Reason for change:
        Add an RFC option to control the EDNS packet size.
        Test Procedure:
        1. Capture packages on lan client
        2. Send query with edns from lan client
        3. Check the UDP payload size in the Additional records in DNS response package, which should be 1232 instead of 4096
        4. set Device.DeviceInfo.X_RDKCENTRAL-COM_RFC.Feature.EDNSPacketSize to 1800
        5. Send query with edns from lan client
        6. Check the UDP payload size in the Additional records in DNS response package, which should be 1800
       Risks: Low
	Priority:P3
        Signed-off-by: Owen Lu <owen_lu@sercomm.com>
Copilot AI review requested due to automatic review settings July 16, 2026 09:07

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

Comment on lines +1449 to +1450
#Edns Packet Size
$edns_packet_size=1232
Comment on lines +1373 to +1374
#Edns Packet Size
$edns_packet_size=1232
Comment on lines +1524 to +1525
#Edns Packet Size
$edns_packet_size=1232
…for the packet size. CVE-2023-28450

    Reason for change:
    Add an RFC option to control the EDNS packet size.
    Test Procedure:
    1. Capture packages on lan client
    2. Send query with edns from lan client
    3. Check the UDP payload size in the Additional records in DNS response package, which should be 1232 instead of 4096
    4. set Device.DeviceInfo.X_RDKCENTRAL-COM_RFC.Feature.EDNSPacketSize to 1800
    5. Send query with edns from lan client
    6. Check the UDP payload size in the Additional records in DNS response package, which should be 1800
   Risks: Low

    Signed-off-by: Owen Lu <owen_lu@sercomm.com>
Copilot AI review requested due to automatic review settings July 16, 2026 09:31

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

Comment on lines +142 to +149
PARTNER_ID=$(syscfg get PartnerID)
EDNS_PACKET_SIZE=$(syscfg get edns_packet_size)
EDNS_PACKET_SIZE=${EDNS_PACKET_SIZE:-1232}
if [ "$PARTNER_ID" != "comcast" ]; then
$SERVER -P $EDNS_PACKET_SIZE -C $DHCP_CONF $DNS_ADDITIONAL_OPTION #--enable-dbus
else
$SERVER -P 4096 -C $DHCP_CONF $DNS_ADDITIONAL_OPTION #--enable-dbus
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community-contribution Contribution from community

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants