Memory Leak Affecting torvalds/linux package, versions [,5.0.3)


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.07% (23rd 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 Learn

Learn about Memory Leak vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-UNMANAGED-TORVALDSLINUX-3005032
  • published26 Jan 2022
  • disclosed21 Mar 2019
  • creditUnknown

Introduced: 21 Mar 2019

CVE-2019-9857  (opens in a new tab)
CWE-401  (opens in a new tab)

How to fix?

Upgrade torvalds/linux to version 5.0.3 or higher.

Overview

Affected versions of this package are vulnerable to Memory Leak. In the Linux kernel through 5.0.2, the function inotify_update_existing_watch() in fs/notify/inotify/inotify_user.c neglects to call fsnotify_put_mark() with IN_MASK_CREATE after fsnotify_find_mark(), which will cause a memory leak (aka refcount leak). Finally, this will cause a denial of service.

References

CVSS Base Scores

version 3.1