CVE-2023-0394: Null Pointer Dereference

Published Jan 17, 2023
·
Updated

A NULL pointer dereference flaw was found in rawv6pushpendingframes in net/ipv6/raw.c in the network subcomponent in the Linux kernel. This flaw causes the system to crash.

Other sources

A null pointer dereference in Linux kernel that affects multiple kernel versions.

The bug is in "rawv6pushpendingframes" function in net/ipv6/raw.c. According to Herbert Xu, who fixed the bug, the root cause is that "totallen = inetsk(sk)->cork.base.length" in this function also counts the length of the extension header (+ the amount of valid data in the socket cork queue). In the vulnerable version of the function, it directly uses the length as the amount of data in the cork queue. In the following code:

struct skbuff csumskb = NULL; ... skbqueuewalk(&sk->skwritequeue, skb) { ... if (offset >= len) { offset -= len; continue; } csumskb = skb; } skb = csumskb;

If the offset is larger than the amount of data in the socket cork queue but smaller than valid data length + extension header length, then the loop shown above will always enter the "if (offset >= len)" branch. As a result, csumskb will never be set. Consequently, the final skb variable will be set to NULL.

Null dereference happens in the following "skbtransportoffset(skb);" call.

Red Hat

Affected Software

10 affected componentsFixes available
redhat/kernel-rt<0:4.18.0-477.10.1.rt7.274.el8_8
0:4.18.0-477.10.1.rt7.274.el8_8
redhat/kernel<0:4.18.0-477.10.1.el8_8
0:4.18.0-477.10.1.el8_8
redhat/kernel<0:5.14.0-284.11.1.el9_2
0:5.14.0-284.11.1.el9_2
redhat/kernel-rt<0:5.14.0-284.11.1.rt14.296.el9_2
0:5.14.0-284.11.1.rt14.296.el9_2
Linux Linux kernel<6.2
Linux Linux kernel=6.2-rc1
Linux Linux kernel=6.2-rc2
Linux Linux kernel=6.2-rc3
debian/linux
5.10.223-15.10.234-16.1.129-16.1.135-16.12.25-16.12.27-1
redhat/Kernel<6.2
6.2

Remediation

Information

Mitigation for this issue is either not available or the currently available options don't meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

Event History

Jan 17, 2023
CVE Published
05:30 PM
Jan 18, 2023
Data Sourced
via Red Hat·08:02 PM
DescriptionSeverityAffected Software
Jan 24, 2023
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
DescriptionWeakness
Jan 12, 2024
Data Sourced
via Launchpad·12:13 AM
Description
May 2, 2025
Data Sourced
via Ubuntu·05:20 AM
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-2023-0394?

CVE-2023-0394 has a high severity due to its potential to cause system crashes.

2

How do I fix CVE-2023-0394?

To fix CVE-2023-0394, update your Linux kernel to the specified versions or later: 0:4.18.0-477.10.1.rt7.274.el8_8, 0:4.18.0-477.10.1.el8_8, 0:5.14.0-284.11.1.el9_2, 0:5.14.0-284.11.1.rt14.296.el9_2, or greater.

3

Which Linux kernel versions are affected by CVE-2023-0394?

CVE-2023-0394 affects multiple kernel versions including versions prior to 6.2.

4

What systems are likely to be impacted by CVE-2023-0394?

Systems running vulnerable versions of the Linux kernel, particularly Red Hat and Debian distributions, are likely to be impacted by CVE-2023-0394.

5

Is there a workaround for CVE-2023-0394?

Currently, the recommended mitigation for CVE-2023-0394 is to update to a patched version of the Linux kernel, as no specific workaround has been provided.

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