Skip to main content
Network Thinking Solutions Logo

CVE-2022-49890

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(.

All CVEs
CVE-2022-49890Published 5/1/2025

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(.

Vendor advisory
CVSS5.5Medium

Overview

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]

Published
5/1/2025
Last modified
6/17/2026
CVE assigner
Not available
NVD analysis
Not available

Exploitation

No CISA KEV flag in the saved record

An absent KEV flag does not establish that exploitation has never occurred. Verify current intelligence before prioritizing work.

EPSS predictions and CISA SSVC assessments are not imported here. Review additional intelligence on Cloudflare

Affected products

Affected-version rules published in the advisory. Conditions and uncertain comparisons require verification.

Vendor / productAffected versionsPlatform / conditionsEvidence
linux kernel
linux
≥ 4.14, < 4.14.299

Verify advisory

Source
linux kernel
linux
≥ 4.15, < 4.19.265

Verify advisory

Source
linux kernel
linux
≥ 4.20, < 5.4.224

Verify advisory

Source
linux kernel
linux
≥ 5.5, < 5.10.154

Verify advisory

Source
linux kernel
linux
≥ 5.11, < 5.15.78

Verify advisory

Source
linux kernel
linux
≥ 5.16, < 6.0.8

Verify advisory

Source
linux kernel
linux
6.1

Verify advisory

The advisory has platform, edition, hardware, or configuration conditions not verified by software inventory.

Source
Linux
Linux
≥ 8db6c34f1dbc8e06aa016a9b829b06902c3e1340, < 6bb00eb21c0fbf18e5d3538c9ff0cf63fd0ace85

Verify advisory

Source
Linux
Linux
≥ 8db6c34f1dbc8e06aa016a9b829b06902c3e1340, < 90577bcc01c4188416a47269f8433f70502abe98

Verify advisory

Source
Linux
Linux
≥ 8db6c34f1dbc8e06aa016a9b829b06902c3e1340, < 0c3e6288da650d1ec911a259c77bc2d88e498603

Verify advisory

Source
Linux
Linux
≥ 8db6c34f1dbc8e06aa016a9b829b06902c3e1340, < cdf01c807e974048c43c7fd3ca574f6086a57906

Verify advisory

Source
Linux
Linux
≥ 8db6c34f1dbc8e06aa016a9b829b06902c3e1340, < 2de8eec8afb75792440b8900a01d52b8f6742fd1

Verify advisory

Source
Linux
Linux
≥ 8db6c34f1dbc8e06aa016a9b829b06902c3e1340, < 7480aeff0093d8c54377553ec6b31110bea37b4d

Verify advisory

Source
Linux
Linux
≥ 8db6c34f1dbc8e06aa016a9b829b06902c3e1340, < 8cf0a1bc12870d148ae830a4ba88cfdf0e879cee

Verify advisory

Source
Linux
Linux
4.14

Verify advisory

Source

Recommended actions

Verify the product, installed version, platform, and advisory prerequisites on each system. Apply the vendor's applicable fixed release or mitigation. An affected-range boundary alone is not a universal update recommendation.

Vendor advisory links

Derived from non-aggregator references because the source record has no vendor tags. Verify the advisory before acting on it.

Severity

CVSS describes technical impact. It is separate from exploitation evidence.

Published headline score: 5.5. Score version, vector, and attribution are not available in this record. Additional score details appear when the source record is next refreshed.

Sources & references

Sources: Official CVE List, NVD and cve.now (summaries CC BY 4.0). Uses NVD data; not endorsed by NVD.