cve.bz

CVE-2019-19816 Out-of-bounds Write

7.8 highExploit referenceEPSS 3.3%

High (7.8). EPSS 3.3% estimated probability of exploitation activity in the next 30 days.

On this page
In the Linux kernel 5.0.21, mounting a crafted btrfs filesystem image and performing some operations can cause slab-out-of-bounds write access in __btrfs_map_block in fs/btrfs/volumes.c, because a value of 1 for the number of data stripes is mishandled.

Severity

CVSS 3.1

7.8 high
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS
3.3% (unchanged from 3.3% a week ago; 3.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 89th percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-787 Out-of-bounds Write
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2019-19816 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2019-19816?via=ask-ai-copy and https://cve.bz/cve/CVE-2019-19816?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2019-19816 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
linux:linux_kernelfrom 2.6.12 before 4.4.247
linux:linux_kernelfrom 4.5 before 4.9.247
linux:linux_kernelfrom 4.10 before 4.14.210
linux:linux_kernelfrom 4.15 before 4.19.137
linux:linux_kernelfrom 4.20 before 5.2
canonical:ubuntu_linux14.04
canonical:ubuntu_linux16.04
canonical:ubuntu_linux18.04
debian:debian_linux9.0
netapp:active_iq_unified_manager9.5 and later

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian9linux4.9.258-1DLA-2586-1
Debian9linux-4.194.19.146-1~deb9u1DLA-2385-1
Debian9linux-4.194.19.160-2~deb9u1DLA-2483-1
Debian12, 13, 14linux5.2.6-1DEBIAN-CVE-2019-19816
Ubuntu16.04:LTSlinux4.4.0-201.233UBUNTU-CVE-2019-19816 USN-4708-1
Ubuntu16.04:LTSlinux-aws4.4.0-1121.135UBUNTU-CVE-2019-19816 USN-4709-1
Ubuntu16.04:LTSlinux-aws-hwe4.15.0-1079.83~16.04.1UBUNTU-CVE-2019-19816 USN-4414-1
Ubuntu16.04:LTSlinux-azure4.15.0-1091.101~16.04.1UBUNTU-CVE-2019-19816 USN-4414-1
Ubuntu16.04:LTSlinux-gcp4.15.0-1080.90~16.04.1UBUNTU-CVE-2019-19816 USN-4414-1
Ubuntu16.04:LTSlinux-hwe4.15.0-112.113~16.04.1UBUNTU-CVE-2019-19816 USN-4414-1
Ubuntu16.04:LTSlinux-hwe-edgeno fix listedUBUNTU-CVE-2019-19816
Ubuntu16.04:LTSlinux-kvm4.4.0-1087.96UBUNTU-CVE-2019-19816 USN-4709-1
Ubuntu16.04:LTSlinux-oracle4.15.0-1050.54~16.04.1UBUNTU-CVE-2019-19816 USN-4414-1
Ubuntu16.04:LTSlinux-raspi24.4.0-1145.155UBUNTU-CVE-2019-19816 USN-4709-1
Ubuntu16.04:LTSlinux-snapdragon4.4.0-1149.159UBUNTU-CVE-2019-19816 USN-4709-1
Ubuntu18.04:LTSlinux4.15.0-109.110UBUNTU-CVE-2019-19816 USN-4414-1
25 more for Ubuntu in the JSON and on Ubuntu's page.

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

The vulnerability is considered moderate rather than important because it requires specific conditions to be exploited. An attacker must have physical access to the system and be able to mount a crafted BTRFS filesystem, which limits the potential attack vectors and also a local account to abuse the use-after-free. Additionally, the flaw involves an out-of-bounds write when handling RAID56 metadata, which could lead to memory corruption, but exploitation for privilege escalation is not straightforward due to mitigations like kernel address space layout randomization (KASLR). As a result, the impact is more constrained, affecting system stability rather than directly allowing unauthorized access or significant data compromise.

Red Hat's mitigation

As the BTRFS module will be auto-loaded when required, its use can be disabled by preventing the module from loading with the following instructions:

# echo "install btrfs /bin/true" >> /etc/modprobe.d/disable-btrfs.conf

The system will need to be restarted if the BTRFS modules are loaded, it may be possible to unload them. In most circumstances, the BTRFS kernel modules will be unable to be unloaded while any BTRFS filesystems are mounted or in use.

If the system requires this module to work correctly, this mitigation may not be suitable.

If you need further assistance, see KCS article https://access.redhat.com/solutions/41278 or contact Red Hat Global Support Services.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 5kernelNot affected
Red Hat Enterprise Linux 6kernelOut of support scope
Red Hat Enterprise Linux 7kernelWill not fix
Red Hat Enterprise Linux 7kernel-altWill not fix
Red Hat Enterprise Linux 7kernel-rtWill not fix
Red Hat Enterprise Linux 8kernelNot affected
Red Hat Enterprise Linux 8kernel-rtWill not fix
Red Hat Enterprise MRG 2kernel-rtWill not fix

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2019-19816.

References

Check your stackJSON