{"id":"DEBIAN-CVE-2022-49890","details":"In the Linux kernel, the following vulnerability has been resolved:  capabilities: fix potential memleak on error path from vfs_getxattr_alloc()  In cap_inode_getsecurity(), we will use vfs_getxattr_alloc() to complete the memory allocation of tmpbuf, if we have completed the memory allocation of tmpbuf, but failed to call handler-\u003eget(...), there will be a memleak in below logic:    |-- ret = (int)vfs_getxattr_alloc(mnt_userns, ...)     |           /* ^^^ alloc for tmpbuf */     |-- value = krealloc(*xattr_value, error + 1, flags)     |           /* ^^^ alloc memory */     |-- error = handler-\u003eget(handler, ...)     |           /* error! */     |-- *xattr_value = value     |           /* xattr_value is &tmpbuf (memory leak!) */  So we will try to free(tmpbuf) after vfs_getxattr_alloc() fails to fix it.  [PM: subject line and backtrace tweaks]","modified":"2026-09-01T16:05:33.545475111Z","published":"2025-05-01T15:16:14Z","upstream":["CVE-2022-49890"],"references":[{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2022-49890"}],"affected":[{"package":{"name":"linux","ecosystem":"Debian:12","purl":"pkg:deb/debian/linux?arch=source&distro=bookworm"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.0.8-1"}]}],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/osv-test-debian-osv/debian-cve-osv/DEBIAN-CVE-2022-49890.json"}},{"package":{"name":"linux","ecosystem":"Debian:13","purl":"pkg:deb/debian/linux?arch=source&distro=trixie"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.0.8-1"}]}],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/osv-test-debian-osv/debian-cve-osv/DEBIAN-CVE-2022-49890.json"}},{"package":{"name":"linux","ecosystem":"Debian:14","purl":"pkg:deb/debian/linux?arch=source&distro=forky"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.0.8-1"}]}],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/osv-test-debian-osv/debian-cve-osv/DEBIAN-CVE-2022-49890.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"}]}