{"id":"DEBIAN-CVE-2024-26840","details":"In the Linux kernel, the following vulnerability has been resolved:  cachefiles: fix memory leak in cachefiles_add_cache()  The following memory leak was reported after unbinding /dev/cachefiles:  ================================================================== unreferenced object 0xffff9b674176e3c0 (size 192):   comm \"cachefilesd2\", pid 680, jiffies 4294881224   hex dump (first 32 bytes):     01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................   backtrace (crc ea38a44b):     [\u003cffffffff8eb8a1a5\u003e] kmem_cache_alloc+0x2d5/0x370     [\u003cffffffff8e917f86\u003e] prepare_creds+0x26/0x2e0     [\u003cffffffffc002eeef\u003e] cachefiles_determine_cache_security+0x1f/0x120     [\u003cffffffffc00243ec\u003e] cachefiles_add_cache+0x13c/0x3a0     [\u003cffffffffc0025216\u003e] cachefiles_daemon_write+0x146/0x1c0     [\u003cffffffff8ebc4a3b\u003e] vfs_write+0xcb/0x520     [\u003cffffffff8ebc5069\u003e] ksys_write+0x69/0xf0     [\u003cffffffff8f6d4662\u003e] do_syscall_64+0x72/0x140     [\u003cffffffff8f8000aa\u003e] entry_SYSCALL_64_after_hwframe+0x6e/0x76 ==================================================================  Put the reference count of cache_cred in cachefiles_daemon_unbind() to fix the problem. And also put cache_cred in cachefiles_add_cache() error branch to avoid memory leaks.","modified":"2026-09-15T09:03:05.561969981Z","published":"2024-04-17T10:15:09.910Z","upstream":["CVE-2024-26840"],"references":[{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2024-26840"}],"affected":[{"package":{"name":"linux","ecosystem":"Debian:12","purl":"pkg:deb/debian/linux?arch=source&distro=bookworm"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.1.82-1"}]}],"versions":["6.1.27-1","6.1.37-1","6.1.38-1","6.1.38-2","6.1.38-2~bpo11+1","6.1.38-3","6.1.38-4","6.1.38-4~bpo11+1","6.1.52-1","6.1.55-1","6.1.55-1~bpo11+1","6.1.64-1","6.1.66-1","6.1.67-1","6.1.69-1","6.1.69-1~bpo11+1","6.1.76-1","6.1.76-1~bpo11+1"],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/osv-test-debian-osv/debian-cve-osv/DEBIAN-CVE-2024-26840.json"}},{"package":{"name":"linux","ecosystem":"Debian:13","purl":"pkg:deb/debian/linux?arch=source&distro=trixie"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.7.7-1"}]}],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/osv-test-debian-osv/debian-cve-osv/DEBIAN-CVE-2024-26840.json"}},{"package":{"name":"linux","ecosystem":"Debian:14","purl":"pkg:deb/debian/linux?arch=source&distro=forky"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.7.7-1"}]}],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/osv-test-debian-osv/debian-cve-osv/DEBIAN-CVE-2024-26840.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"}]}