CVE-2023-53599

5.5 MEDIUM

📋 TL;DR

A NULL pointer dereference vulnerability in the Linux kernel's crypto subsystem affects the af_alg interface when processing empty ciphertext with the gcm-aes-s390 driver. This causes a kernel oops (crash) on s390x systems, potentially leading to denial of service. Only Linux systems using the affected crypto driver on s390 architecture are impacted.

💻 Affected Systems

Products:
  • Linux kernel
Versions: Kernel versions before the fix commits (specific versions vary by distribution)
Operating Systems: Linux distributions running on s390/s390x architecture
Default Config Vulnerable: ✅ No
Notes: Only vulnerable when: 1) Running on s390/s390x architecture, 2) gcm-aes-s390 crypto module is loaded, 3) Processing empty ciphertext through AF_ALG socket interface

📦 What is this software?

Linux Kernel by Linux

The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...

Learn more about Linux Kernel →

⚠️ Risk & Real-World Impact

🔴

Worst Case

Kernel panic leading to system crash and denial of service, requiring physical or remote console access to reboot.

🟠

Likely Case

System crash when processing specific malformed or empty cryptographic data through the affected interface.

🟢

If Mitigated

No impact if the vulnerable crypto driver is not loaded or not used.

🌐 Internet-Facing: LOW - Requires specific local access to crypto APIs, not directly network-exposed.
🏢 Internal Only: MEDIUM - Local users or processes could trigger the crash, affecting system availability.

🎯 Exploit Status

Public PoC: ✅ No
Weaponized: NO
Unauthenticated Exploit: ✅ No
Complexity: MEDIUM

Requires local access and ability to interact with crypto APIs. No known public exploits.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Fixed in kernel commits 2c9d205040d7c0eaccc473917f9b0bb0a923e440 and 6a4b8aa0a916b39a39175584c07222434fa6c6ef

Vendor Advisory: https://git.kernel.org/stable/c/2c9d205040d7c0eaccc473917f9b0bb0a923e440

Restart Required: Yes

Instructions:

1. Update kernel to version containing the fix. 2. Check distribution-specific security advisories. 3. Reboot system to load patched kernel.

🔧 Temporary Workarounds

Unload vulnerable module

linux

Prevent loading of the gcm-aes-s390 crypto module

rmmod aes_s390
echo 'blacklist aes_s390' >> /etc/modprobe.d/blacklist.conf

Restrict AF_ALG socket access

linux

Limit which users can access the crypto socket interface

chmod 600 /dev/crypto
setfacl -m u:root:rw- /dev/crypto

🧯 If You Can't Patch

  • Restrict local user access to prevent malicious users from triggering the vulnerability
  • Monitor system logs for kernel oops messages related to gcm-aes-s390 or AF_ALG

🔍 How to Verify

Check if Vulnerable:

Check if running on s390x and if aes_s390 module is loaded: 'uname -m' and 'lsmod | grep aes_s390'

Check Version:

uname -r

Verify Fix Applied:

Check kernel version includes the fix commits or is newer than vulnerable versions

📡 Detection & Monitoring

Log Indicators:

  • Kernel oops messages mentioning gcm_walk_start, aes_s390, or AF_ALG
  • System crash/panic logs

Network Indicators:

  • None - this is a local vulnerability

SIEM Query:

source="kernel" AND ("gcm_walk_start" OR "aes_s390" OR "AF_ALG" OR "NULL pointer dereference")

🔗 References

📤 Share & Export