CVE-2024-26851: netfilter: nf_conntrack_h323: Add protection for bmp length out of range

Published Apr 17, 2024
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

netfilter: nfconntrackh323: Add protection for bmp length out of range

The Linux kernel CVE team has assigned CVE-2024-26851 to this issue.

Upstream advisory: https://lore.kernel.org/linux-cve-announce/2024041723-CVE-2024-26851-4652@gregkh/T

Other sources

In the Linux kernel, the following vulnerability has been resolved:

netfilter: nfconntrackh323: Add protection for bmp length out of range

UBSAN load reports an exception of BRK#5515 SHIFTISSUE:Bitwise shifts that are out of bounds for their data type.

vmlinux getbitmap(b=75) + 712

vmlinux decodeseq(bs=0xFFFFFFD008037000, f=0xFFFFFFD008037018, level=134443100) + 1956

vmlinux decodechoice(base=0xFFFFFFD0080370F0, level=23843636) + 1216

vmlinux decodeseq(f=0xFFFFFFD0080371A8, level=134443500) + 812

vmlinux decodechoice(base=0xFFFFFFD008037280, level=0) + 1216

vmlinux DecodeRasMessage() + 304

vmlinux rashelp() + 684

vmlinux nfconfirm() + 188

Due to abnormal data in skb->data, the extension bitmap length exceeds 32 when decoding ras message then uses the length to make a shift operation. It will change into negative after several loop. UBSAN load could detect a negative shift as an undefined behaviour and reports exception. So we add the protection to avoid the length exceeding 32. Or else it will return out of range error and stop decoding.

IBM

In the Linux kernel, the following vulnerability has been resolved:

netfilter: nfconntrackh323: Add protection for bmp length out of range

UBSAN load reports an exception of BRK#5515 SHIFTISSUE:Bitwise shifts that are out of bounds for their data type.

vmlinux getbitmap(b=75) + 712 <net/netfilter/nfconntrackh323asn1.c:0> vmlinux decodeseq(bs=0xFFFFFFD008037000, f=0xFFFFFFD008037018, level=134443100) + 1956 <net/netfilter/nfconntrackh323asn1.c:592> vmlinux decodechoice(base=0xFFFFFFD0080370F0, level=23843636) + 1216 <net/netfilter/nfconntrackh323asn1.c:814> vmlinux decodeseq(f=0xFFFFFFD0080371A8, level=134443500) + 812 <net/netfilter/nfconntrackh323asn1.c:576> vmlinux decodechoice(base=0xFFFFFFD008037280, level=0) + 1216 <net/netfilter/nfconntrackh323asn1.c:814> vmlinux DecodeRasMessage() + 304 <net/netfilter/nfconntrackh323asn1.c:833> vmlinux rashelp() + 684 <net/netfilter/nfconntrackh323main.c:1728> vmlinux nfconfirm() + 188 <net/netfilter/nfconntrackproto.c:137>

Due to abnormal data in skb->data, the extension bitmap length exceeds 32 when decoding ras message then uses the length to make a shift operation. It will change into negative after several loop. UBSAN load could detect a negative shift as an undefined behaviour and reports exception. So we add the protection to avoid the length exceeding 32. Or else it will return out of range error and stop decoding.

NVD

Affected Software

25 affected componentsFixes available
redhat/kernel<4.19.310
4.19.310
redhat/kernel<5.4.272
5.4.272
redhat/kernel<5.10.213
5.10.213
redhat/kernel<5.15.152
5.15.152
redhat/kernel<6.1.82
6.1.82
redhat/kernel<6.6.22
6.6.22
redhat/kernel<6.7.10
6.7.10
redhat/kernel<6.8
6.8
Linux Linux kernel>=2.6.17<4.19.310
Linux Linux kernel>=4.20<5.4.272
Linux Linux kernel>=5.5<5.10.213
Linux Linux kernel>=5.11<5.15.152
Linux Linux kernel>=5.16<6.1.82
Linux Linux kernel>=6.2<6.6.22
Linux Linux kernel>=6.7<6.7.10
Linux Linux kernel=6.8-rc1
Linux Linux kernel=6.8-rc2
Linux Linux kernel=6.8-rc3
Linux Linux kernel=6.8-rc4
Linux Linux kernel=6.8-rc5
Linux Linux kernel=6.8-rc6
Debian Debian Linux=10.0
debian/linux
5.10.223-15.10.234-16.1.129-16.1.135-16.12.27-1
IBM Security Verify Governance<=ISVG 10.0.2
IBM Security Verify Governance - Identity Manager virtual appliance component<=ISVG 10.0.2

Event History

Apr 17, 2024
CVE Published
via MITRE·10:17 AM
Data Sourced
via MITRE·10:17 AM
Description
Data Sourced
via NVD·11:15 AM
RemedyDescriptionSeverityWeaknessAffected Software
Data Sourced
via Red Hat·07:33 PM
DescriptionSeverityAffected Software
Jun 8, 2024
Data Sourced
via Launchpad·01:07 AM
Description
May 6, 2025
Data Sourced
via Ubuntu·02:22 PM
RemedyDescriptionSeverityAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2024-26851?

CVE-2024-26851 has a medium severity rating due to the potential for denial of service attacks via exploit attempts.

2

How do I fix CVE-2024-26851?

To fix CVE-2024-26851, upgrade the Linux kernel to a version that is not affected, such as 4.19.310 or later versions specified by your distribution.

3

What are the affected Linux kernel versions for CVE-2024-26851?

CVE-2024-26851 affects multiple Linux kernel versions, including but not limited to 4.19.x, 5.4.x, 5.10.x, 5.15.x, 6.1.x, and 6.6.x.

4

Is there a patch available for CVE-2024-26851?

Yes, a patch for CVE-2024-26851 is available as part of the kernel updates provided by Red Hat and Debian.

5

What types of systems are vulnerable to CVE-2024-26851?

Systems running affected versions of the Linux kernel, particularly those utilizing netfilter and related networking features, are vulnerable to CVE-2024-26851.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203