Upstream information

CVE-2026-40198 at MITRE

Description

Net::CIDR::Lite versions before 0.23 for Perl does not validate IPv6 group count, which may allow IP ACL bypass.

_pack_ipv6() does not check that uncompressed IPv6 addresses (without ::) have exactly 8 hex groups. Inputs like "abcd", "1:2:3", or "1:2:3:4:5:6:7" are accepted and produce packed values of wrong length (3, 7, or 15 bytes instead of 17).

The packed values are used internally for mask and comparison operations. find() and bin_find() use Perl string comparison (lt/gt) on these values, and comparing strings of different lengths gives wrong results. This can cause find() to incorrectly report an address as inside or outside a range.

Example:

my $cidr = Net::CIDR::Lite->new("::/8");
$cidr->find("1:2:3"); # invalid input, incorrectly returns true

This is the same class of input validation issue as CVE-2021-47154 (IPv4 leading zeros) previously fixed in this module.

See also CVE-2026-40199, a related issue in the same function affecting IPv4 mapped IPv6 addresses.

SUSE information

Overall state of this security issue: Does not affect SUSE products

SUSE Bugzilla entry: 1262088 [NEW]

No SUSE Security Announcements cross referenced.

List of packages in QA

Product(s) Package(s)
SUSE Linux Enterprise Module for Development Tools 15 SP7
  • perl-Net-CIDR-Lite >= 0.21-150100.6.6.1
SUSE Linux Enterprise Server 15 SP7
  • perl-Net-CIDR-Lite >= 0.21-150100.6.6.1
SUSE Linux Enterprise Desktop 15 SP7
  • perl-Net-CIDR-Lite >= 0.21-150100.6.6.1
SUSE Linux Enterprise Server for SAP Applications 15 SP7
  • perl-Net-CIDR-Lite >= 0.21-150100.6.6.1
SUSE Linux Enterprise High Performance Computing 15 SP7
  • perl-Net-CIDR-Lite >= 0.21-150100.6.6.1


Status of this issue by product and package

Please note that this evaluation state might be work in progress, incomplete or outdated. Also information for service packs in the LTSS phase is only included for issues meeting the LTSS criteria. If in doubt, feel free to contact us for clarification. The updates are grouped by state of their lifecycle. SUSE product lifecycles are documented on the lifecycle page.

Product(s) Source package State
Products under general support and receiving all security fixes.
SUSE Linux Enterprise Desktop 15 SP7 perl-Net-CIDR-Lite In progress
SUSE Linux Enterprise High Performance Computing 15 SP7 perl-Net-CIDR-Lite In progress
SUSE Linux Enterprise Module for Development Tools 15 SP7 perl-Net-CIDR-Lite In progress
SUSE Linux Enterprise Server 15 SP7 perl-Net-CIDR-Lite In progress
SUSE Linux Enterprise Server for SAP Applications 15 SP7 perl-Net-CIDR-Lite In progress


SUSE Timeline for this CVE

CVE page created: Sat Apr 11 02:00:50 2026
CVE page last modified: Fri May 8 12:08:58 2026