Description
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.
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.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | linux | 4.19.37-1 | — |
| Debian 13 | linux | 4.19.37-1 | — |
| Debian 12 | linux | 4.19.37-1 | — |
References
- https://patchwork.kernel.org/patch/10836283/
- https://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs.git/commit/?h=fsnotify&id=62c9d2674b31d4c8a674bee86b7edc6da2803aea
- 107527 vdb-entry
- https://security.netapp.com/advisory/ntap-20190404-0002/
- FEDORA-2019-65c6d11eba vendor-advisory
- FEDORA-2019-be9add5b77 vendor-advisory