Unchecked Return Value Affecting eject package, versions <2.1.5+deb1+cvs20081104-9ubuntu0.1


Severity

Recommended
medium

Based on Ubuntu security rating.

Threat Intelligence

EPSS
0.06% (27th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UBUNTU1204-EJECT-269556
  • published28 Mar 2017
  • disclosed28 Mar 2017

Introduced: 28 Mar 2017

CVE-2017-6964  (opens in a new tab)
CWE-252  (opens in a new tab)

How to fix?

Upgrade Ubuntu:12.04 eject to version 2.1.5+deb1+cvs20081104-9ubuntu0.1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream eject package and not the eject package as distributed by Ubuntu. See How to fix? for Ubuntu:12.04 relevant fixed versions and status.

dmcrypt-get-device, as shipped in the eject package of Debian and Ubuntu, does not check the return value of the (1) setuid or (2) setgid function, which might cause dmcrypt-get-device to execute code, which was intended to run as an unprivileged user, as root. This affects eject through 2.1.5+deb1+cvs20081104-13.1 on Debian, eject before 2.1.5+deb1+cvs20081104-13.1ubuntu0.16.10.1 on Ubuntu 16.10, eject before 2.1.5+deb1+cvs20081104-13.1ubuntu0.16.04.1 on Ubuntu 16.04 LTS, eject before 2.1.5+deb1+cvs20081104-13.1ubuntu0.14.04.1 on Ubuntu 14.04 LTS, and eject before 2.1.5+deb1+cvs20081104-9ubuntu0.1 on Ubuntu 12.04 LTS.

CVSS Scores

version 3.1