Cloudanix VulnDB

CVE-2013-1819

None

CVSS

—

EPSS

0.4%

Published

Mar 6, 2013

CISA due date

—

Cloudanix analysis

Schedule a fix SSVC: Track

A long-fixed flaw in how Linux handles certain storage formats can let someone who already has access to the computer crash the whole system by plugging in a specially made drive.

Exploitation
Local Privilege
Attacker needs
Local User
Complexity
Low
Impact
Denial Of Service
Component
OS kernel
Class
Improper Input Validation
Remediation
Upgrade
Effort
Medium
Patch risk
Medium

What it actually does

The _xfs_buf_find function in fs/xfs/xfs_buf.c fails to validate block numbers supplied from a metadata inode's extent map, allowing a crafted XFS filesystem to trigger a NULL pointer dereference on mount.

Why it matters to the business

Local users on unpatched Linux systems using the XFS filesystem can trigger kernel crashes and system downtime; the issue has existed since 2013 with negligible active exploitation risk and no known ransomware use.

How an attack unfolds

An attacker prepares an XFS filesystem image containing a metadata inode whose extent map references an invalid block number, then mounts that image on a vulnerable kernel; the missing validation in _xfs_buf_find dereferences a NULL pointer, causing a crash or potential further impact.

How to fix it

Upgrade the Linux kernel to version 3.7.6 or later; rebuild and reboot with the patched kernel; restrict unprivileged users from mounting arbitrary filesystems via mount options or SELinux/AppArmor policies until the update is complete.

How to confirm the fix worked

Verify the running kernel version is 3.7.6 or newer; attempt to mount a known-good XFS image and confirm no crash occurs; review kernel build configuration to ensure XFS support is present and the fix is included.

Typical attack path

  1. Craft an XFS filesystem image containing a metadata inode with an invalid extent map
  2. Obtain local access to a target system that supports XFS
  3. Mount the malicious image using the mount command or equivalent
  4. Trigger the dereference inside the kernel's XFS buffer lookup path

How to detect it

Search kernel logs and dmesg output for XFS buffer lookup failures or NULL pointer dereference messages around the time of unexpected mounts or crashes; review audit logs for mount syscalls targeting XFS volumes from untrusted sources.

What your security team should do

  • Prioritize kernel upgrade to 3.7.6+ on all systems exposing XFS mounts
  • Apply filesystem mount restrictions for non-root users as an immediate compensating control
  • Monitor kernel logs for XFS-related NULL pointer dereference panics as a temporary detection measure

The record

The _xfs_buf_find function in fs/xfs/xfs_buf.c in the Linux kernel before 3.7.6 does not validate block numbers, which allows local users to cause a denial of service (NULL pointer dereference and system crash) or possibly have unspecified other impact by leveraging the ability to mount an XFS filesystem containing a metadata inode with an invalid extent map.

Affected packages

Ecosystem Package Introduced Fixed
Debian:11 linux 0 3.8-1
Debian:12 linux 0 3.8-1
Debian:13 linux 0 3.8-1
Red Hat:enterprise_mrg:2:server:el6 kernel-rt 0 0:3.6.11.2-rt33.39.el6rt
Red Hat:enterprise_mrg:2:server:el6 kernel-rt-debug 0 0:3.6.11.2-rt33.39.el6rt
Red Hat:enterprise_mrg:2:server:el6 kernel-rt-debug-debuginfo 0 0:3.6.11.2-rt33.39.el6rt
Red Hat:enterprise_mrg:2:server:el6 kernel-rt-debug-devel 0 0:3.6.11.2-rt33.39.el6rt
Red Hat:enterprise_mrg:2:server:el6 kernel-rt-debuginfo 0 0:3.6.11.2-rt33.39.el6rt
Red Hat:enterprise_mrg:2:server:el6 kernel-rt-debuginfo-common-x86_64 0 0:3.6.11.2-rt33.39.el6rt
Red Hat:enterprise_mrg:2:server:el6 kernel-rt-devel 0 0:3.6.11.2-rt33.39.el6rt
Red Hat:enterprise_mrg:2:server:el6 kernel-rt-doc 0 0:3.6.11.2-rt33.39.el6rt
Red Hat:enterprise_mrg:2:server:el6 kernel-rt-firmware 0 0:3.6.11.2-rt33.39.el6rt
Red Hat:enterprise_mrg:2:server:el6 kernel-rt-trace 0 0:3.6.11.2-rt33.39.el6rt
Red Hat:enterprise_mrg:2:server:el6 kernel-rt-trace-debuginfo 0 0:3.6.11.2-rt33.39.el6rt
Red Hat:enterprise_mrg:2:server:el6 kernel-rt-trace-devel 0 0:3.6.11.2-rt33.39.el6rt
Red Hat:enterprise_mrg:2:server:el6 kernel-rt-vanilla 0 0:3.6.11.2-rt33.39.el6rt
Red Hat:enterprise_mrg:2:server:el6 kernel-rt-vanilla-debuginfo 0 0:3.6.11.2-rt33.39.el6rt
Red Hat:enterprise_mrg:2:server:el6 kernel-rt-vanilla-devel 0 0:3.6.11.2-rt33.39.el6rt
Red Hat:enterprise_mrg:2:server:el6 mrg-rt-release 0 0:3.6.11.2-rt33.39.el6rt
Ubuntu:14.04:LTS linux 0 3.11.0-12.19
Ubuntu:Pro:14.04:LTS linux-flo 0 No fix
Ubuntu:Pro:14.04:LTS linux-goldfish 0 No fix
Ubuntu:Pro:14.04:LTS linux-mako 0 No fix
Ubuntu:Pro:14.04:LTS linux-manta 0 No fix

Related vulnerabilities