CVE-2023-6121

Summary

An out-of-bounds read vulnerability was found in the NVMe-oF/TCP subsystem in the Linux kernel. This issue may allow a remote attacker to send a crafted TCP packet, triggering a heap-based buffer overflow that results in kmalloc data being printed and potentially leaked to the kernel ring buffer (dmesg).

Affected Software

VendorProductVersion RangeStatus
Red HatRed Hat Enterprise Linux 80:4.18.0-553.rt7.342.el8_10 < *unaffected
Red HatRed Hat Enterprise Linux 80:4.18.0-553.el8_10 < *unaffected
Red HatRed Hat Enterprise Linux 90:5.14.0-427.13.1.el9_4 < *unaffected
Red HatRed Hat Enterprise Linux 90:5.14.0-427.13.1.el9_4 < *unaffected

Weaknesses

  • CWE-125: Out-of-bounds Read

Workarounds

This flaw can be mitigated by explicitly setting the kernel parameter to restrict unprivileged users from using dmesg:

sudo sysctl -w kernel.dmesg_restrict=1

To make it persistent between system reboots:

echo &#39;kernel.dmesg_restrict=1&#39; | sudo tee -a /etc/sysctl.conf

ADP Enrichment

CISA ADP Vulnrichment

  • SSVC:
  • Exploitation: none
    • Automatable: no
    • Technical Impact: partial

CVE Program Container

Additional References

Additional References

References