CVE-2021-46965

7.1 HIGH

📋 TL;DR

This CVE describes an out-of-bounds memory access vulnerability in the Linux kernel's physmap-bt1-rom driver. The bug allows attackers to read kernel stack memory, potentially leaking sensitive information. Systems running affected Linux kernel versions with the physmap-bt1-rom driver enabled are vulnerable.

💻 Affected Systems

Products:
  • Linux kernel
Versions: Specific affected versions not explicitly stated in CVE, but patches exist in stable kernel trees
Operating Systems: Linux distributions using affected kernel versions
Default Config Vulnerable: ✅ No
Notes: Only vulnerable if physmap-bt1-rom driver is compiled and loaded. This is a specific driver for Baikal-T1 SoC ROM controller.

📦 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 →

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 →

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 memory disclosure could lead to information leakage of sensitive kernel data, potentially enabling further exploitation or privilege escalation.

🟠

Likely Case

Information disclosure of kernel stack memory, which could reveal pointers or other sensitive data that aids attackers in developing more sophisticated exploits.

🟢

If Mitigated

Limited impact with proper kernel hardening and memory protection mechanisms in place.

🌐 Internet-Facing: LOW - Requires local access or ability to interact with the specific driver interface.
🏢 Internal Only: MEDIUM - Local attackers or compromised users could exploit this to gather kernel information for privilege escalation attacks.

🎯 Exploit Status

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

Requires local access and ability to interact with the specific driver interface. Exploitation would need to trigger the out-of-bounds access.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Patches available in stable kernel trees (commits referenced in CVE)

Vendor Advisory: https://git.kernel.org/stable/c/34ec706bf0b7c4ca249a729c1bcb91f706c7a7be

Restart Required: Yes

Instructions:

1. Update to a patched Linux kernel version containing the fix commits. 2. Recompile kernel if using custom build. 3. Reboot system to load new kernel.

🔧 Temporary Workarounds

Disable physmap-bt1-rom driver

linux

Remove or blacklist the vulnerable driver module if not needed

echo 'blacklist physmap-bt1-rom' >> /etc/modprobe.d/blacklist.conf
rmmod physmap-bt1-rom

🧯 If You Can't Patch

  • Ensure strict access controls to prevent unauthorized local users from interacting with kernel interfaces
  • Implement kernel hardening features like KASLR and stack protection to reduce impact

🔍 How to Verify

Check if Vulnerable:

Check if physmap-bt1-rom driver is loaded: lsmod | grep physmap-bt1-rom

Check Version:

uname -r

Verify Fix Applied:

Check kernel version against patched releases and verify driver is either updated or disabled

📡 Detection & Monitoring

Log Indicators:

  • Kernel oops messages
  • System crashes related to physmap driver

Network Indicators:

  • None - local vulnerability only

SIEM Query:

Search for kernel panic or oops messages containing 'physmap' or 'bt1-rom'

🔗 References

📤 Share & Export