First published: Thu May 01 2025(Updated: )
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->get(...), 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->get(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]
Credit: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Affected Software | Affected Version | How to fix |
---|---|---|
Linux Kernel | ||
Linux Kernel | >=4.14<4.14.299 | |
Linux Kernel | >=4.15<4.19.265 | |
Linux Kernel | >=4.20<5.4.224 | |
Linux Kernel | >=5.5<5.10.154 | |
Linux Kernel | >=5.11<5.15.78 | |
Linux Kernel | >=5.16<6.0.8 | |
Linux Kernel | =6.1-rc1 | |
Linux Kernel | =6.1-rc2 | |
Linux Kernel | =6.1-rc3 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
The CVE-2022-49890 vulnerability has a low severity rating due to the specific conditions needed for exploitation.
To mitigate CVE-2022-49890, update to the latest version of the Linux Kernel where the vulnerability has been patched.
CVE-2022-49890 could potentially lead to a memory leak in the Linux kernel during the execution of specific operations.
CVE-2022-49890 is not considered to be remotely exploitable as it requires local access to the affected system.
CVE-2022-49890 affects multiple versions of the Linux Kernel prior to the security patch release.