Skip to content
OpenAdvisories
Medium · 5.7 Public exploit CVE-2019-7303 EUVD-2019-16847GHSA-hhhq-qgvm-w5hp

Snapd seccomp filter TIOCSTI ioctl bypass

Published Apr 23, 2019 · Updated Sep 17, 2024 · Assigned by canonical

Description

A vulnerability in the seccomp filters of Canonical snapd before version 2.37.4 allows a strict mode snap to insert characters into a terminal on a 64-bit host. The seccomp rules were generated to match 64-bit ioctl(2) commands on a 64-bit platform; however, the Linux kernel only uses the lower 32 bits to determine which ioctl(2) commands to run. This issue affects: Canonical snapd versions prior to 2.37.4.

Affected products

VendorProductAffectedFixed
Canonical snapd unspecified – < 2.37.4 2.37.4

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 snapd 2.37.4-1 —
Debian 13 snapd 2.37.4-1 —
Debian 12 snapd 2.37.4-1 —
ReleasePackageFixed inAdvisory
Ubuntu 18.04 LTS snapd 2.37.4+18.04.1 USN-3917-1
Ubuntu 16.04 LTS snapd 2.37.4ubuntu0.1 USN-3917-1
Ubuntu 14.04 LTS snapd 2.37.4~14.04.1 USN-3917-1

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

Exploit-DB 1

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Advisories 1

References