UBUNTU-CVE-2026-40199

Source
https://ubuntu.com/security/CVE-2026-40199
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-40199.json
JSON Data
https://api.test.osv.dev/v1/vulns/UBUNTU-CVE-2026-40199
Upstream
Published
2026-04-10T22:16:00Z
Modified
2026-04-27T20:16:33.775262Z
Severity
  • 6.5 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N CVSS Calculator
  • Ubuntu - medium
Summary
[none]
Details

Net::CIDR::Lite versions before 0.23 for Perl mishandles IPv4 mapped IPv6 addresses, which may allow IP ACL bypass. packipv6() includes the sentinel byte from packipv4() when building the packed representation of IPv4 mapped addresses like ::ffff:192.168.1.1. This produces an 18 byte value instead of 17 bytes, misaligning the IPv4 part of the address. The wrong length causes incorrect results in mask operations (bitwise AND truncates to the shorter operand) and in find() / bin_find() which use Perl string comparison (lt/gt). This can cause find() to incorrectly match or miss addresses. Example: my $cidr = Net::CIDR::Lite->new("::ffff:192.168.1.0/120"); $cidr->find("::ffff:192.168.2.0"); # incorrectly returns true This is triggered by valid RFC 4291 IPv4 mapped addresses (::ffff:x.x.x.x). See also CVE-2026-40198, a related issue in the same function affecting malformed IPv6 addresses.

References

Affected packages

Ubuntu:16.04:LTS
libnet-cidr-lite-perl

Package

Name
libnet-cidr-lite-perl
Purl
pkg:deb/ubuntu/libnet-cidr-lite-perl@0.21-1?arch=source&distro=xenial

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

0.*
0.21-1

Ecosystem specific

{
    "binaries": [
        {
            "binary_version": "0.21-1",
            "binary_name": "libnet-cidr-lite-perl"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-40199.json"
Ubuntu:18.04:LTS
libnet-cidr-lite-perl

Package

Name
libnet-cidr-lite-perl
Purl
pkg:deb/ubuntu/libnet-cidr-lite-perl@0.21-1?arch=source&distro=bionic

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

0.*
0.21-1

Ecosystem specific

{
    "binaries": [
        {
            "binary_version": "0.21-1",
            "binary_name": "libnet-cidr-lite-perl"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-40199.json"
Ubuntu:20.04:LTS
libnet-cidr-lite-perl

Package

Name
libnet-cidr-lite-perl
Purl
pkg:deb/ubuntu/libnet-cidr-lite-perl@0.21-2ubuntu0.1?arch=source&distro=focal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

0.*
0.21-2
0.21-2ubuntu0.1

Ecosystem specific

{
    "binaries": [
        {
            "binary_version": "0.21-2ubuntu0.1",
            "binary_name": "libnet-cidr-lite-perl"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-40199.json"
Ubuntu:22.04:LTS
libnet-cidr-lite-perl

Package

Name
libnet-cidr-lite-perl
Purl
pkg:deb/ubuntu/libnet-cidr-lite-perl@0.22-1?arch=source&distro=jammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

0.*
0.22-1

Ecosystem specific

{
    "binaries": [
        {
            "binary_version": "0.22-1",
            "binary_name": "libnet-cidr-lite-perl"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-40199.json"
Ubuntu:24.04:LTS
libnet-cidr-lite-perl

Package

Name
libnet-cidr-lite-perl
Purl
pkg:deb/ubuntu/libnet-cidr-lite-perl@0.22-2?arch=source&distro=noble

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

0.*
0.22-2

Ecosystem specific

{
    "binaries": [
        {
            "binary_version": "0.22-2",
            "binary_name": "libnet-cidr-lite-perl"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-40199.json"
Ubuntu:25.10
libnet-cidr-lite-perl

Package

Name
libnet-cidr-lite-perl
Purl
pkg:deb/ubuntu/libnet-cidr-lite-perl@0.22-2?arch=source&distro=questing

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

0.*
0.22-2

Ecosystem specific

{
    "binaries": [
        {
            "binary_version": "0.22-2",
            "binary_name": "libnet-cidr-lite-perl"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-40199.json"
Ubuntu:26.04
libnet-cidr-lite-perl

Package

Name
libnet-cidr-lite-perl
Purl
pkg:deb/ubuntu/libnet-cidr-lite-perl@0.22-2?arch=source&distro=resolute

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

0.*
0.22-2

Ecosystem specific

{
    "binaries": [
        {
            "binary_version": "0.22-2",
            "binary_name": "libnet-cidr-lite-perl"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-40199.json"