{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2022-50271","id":"CVE-2022-50271","title":"vhost/vsock: Use kvmalloc/kvfree for larger packets.","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nvhost/vsock: Use kvmalloc/kvfree for larger packets.\n\nWhen copying a large file over sftp over vsock, data size is usually 32kB,\nand kmalloc seems to fail to try to allocate 32 32kB regions.\n\n vhost-5837: page allocation failure: order:4, mode:0x24040c0\n Call Trace:\n  [<ffffffffb6a0df64>] dump_stack+0x97/0xdb\n  [<ffffffffb68d6aed","descriptionLong":"In the Linux kernel, the following vulnerability has been resolved:\n\nvhost/vsock: Use kvmalloc/kvfree for larger packets.\n\nWhen copying a large file over sftp over vsock, data size is usually 32kB,\nand kmalloc seems to fail to try to allocate 32 32kB regions.\n\n vhost-5837: page allocation failure: order:4, mode:0x24040c0\n Call Trace:\n  [<ffffffffb6a0df64>] dump_stack+0x97/0xdb\n  [<ffffffffb68d6aed>] warn_alloc_failed+0x10f/0x138\n  [<ffffffffb68d868a>] ? __alloc_pages_direct_compact+0x38/0xc8\n  [<ffffffffb664619f>] __alloc_pages_nodemask+0x84c/0x90d\n  [<ffffffffb6646e56>] alloc_kmem_pages+0x17/0x19\n  [<ffffffffb6653a26>] kmalloc_order_trace+0x2b/0xdb\n  [<ffffffffb66682f3>] __kmalloc+0x177/0x1f7\n  [<ffffffffb66e0d94>] ? copy_from_iter+0x8d/0x31d\n  [<ffffffffc0689ab7>] vhost_vsock_handle_tx_kick+0x1fa/0x301 [vhost_vsock]\n  [<ffffffffc06828d9>] vhost_worker+0xf7/0x157 [vhost]\n  [<ffffffffb683ddce>] kthread+0xfd/0x105\n  [<ffffffffc06827e2>] ? vhost_dev_set_owner+0x22e/0x22e [vhost]\n  [<ffffffffb683dcd1>] ? flush_kthread_worker+0xf3/0xf3\n  [<ffffffffb6eb332e>] ret_from_fork+0x4e/0x80\n  [<ffffffffb683dcd1>] ? flush_kthread_worker+0xf3/0xf3\n\nWork around by doing kvmalloc instead.","published":"2025-09-15T14:21:07.563Z","updated":"2026-10-28T02:30:34.013339530Z","reserved":"2025-09-15T13:58:00.975Z","status":"Analyzed","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"},"metrics":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"}],"rating":"medium","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"433fc58e6bf2c8bd97e57153ed28e64fd78207b8","lessThan":"0d720c3f0a03e97867deab7e480ba3d3e19837ba","status":"affected","versionType":"git"},{"version":"433fc58e6bf2c8bd97e57153ed28e64fd78207b8","lessThan":"7aac8c63f604e6a6a46560c0f0188cd0332cf320","status":"affected","versionType":"git"},{"version":"433fc58e6bf2c8bd97e57153ed28e64fd78207b8","lessThan":"e6d0152c95108651f1880c1ddfab47cb9e3e62d0","status":"affected","versionType":"git"},{"version":"433fc58e6bf2c8bd97e57153ed28e64fd78207b8","lessThan":"b4a5905fd2ef841cd61e969ea692c213c2e5c1f7","status":"affected","versionType":"git"},{"version":"433fc58e6bf2c8bd97e57153ed28e64fd78207b8","lessThan":"e28a4e7f0296824c61a81e7fd54ab48bad3e75ad","status":"affected","versionType":"git"},{"version":"433fc58e6bf2c8bd97e57153ed28e64fd78207b8","lessThan":"a99fc6d818161d6f1ff3307de8bf5237f6cc34d8","status":"affected","versionType":"git"},{"version":"433fc58e6bf2c8bd97e57153ed28e64fd78207b8","lessThan":"36c9f340c60413e28f980c0224c4e9d35851526b","status":"affected","versionType":"git"},{"version":"433fc58e6bf2c8bd97e57153ed28e64fd78207b8","lessThan":"0e3f72931fc47bb81686020cc643cde5d9cd0bb8","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.8","status":"affected"},{"version":"0","lessThan":"4.8","status":"unaffected","versionType":"semver"},{"version":"4.14.296","lessThanOrEqual":"4.14.*","status":"unaffected","versionType":"semver"},{"version":"4.19.262","lessThanOrEqual":"4.19.*","status":"unaffected","versionType":"semver"},{"version":"5.4.220","lessThanOrEqual":"5.4.*","status":"unaffected","versionType":"semver"},{"version":"5.10.150","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.75","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"5.19.17","lessThanOrEqual":"5.19.*","status":"unaffected","versionType":"semver"},{"version":"6.0.3","lessThanOrEqual":"6.0.*","status":"unaffected","versionType":"semver"},{"version":"6.1","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":[],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/0d720c3f0a03e97867deab7e480ba3d3e19837ba","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/7aac8c63f604e6a6a46560c0f0188cd0332cf320","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/e6d0152c95108651f1880c1ddfab47cb9e3e62d0","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/b4a5905fd2ef841cd61e969ea692c213c2e5c1f7","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/e28a4e7f0296824c61a81e7fd54ab48bad3e75ad","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/a99fc6d818161d6f1ff3307de8bf5237f6cc34d8","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/36c9f340c60413e28f980c0224c4e9d35851526b","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/0e3f72931fc47bb81686020cc643cde5d9cd0bb8","tags":["Patch","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50271.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50271","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.00166,"epssPercentile":0.05944,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2022-50271","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50271","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2022-50271","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2022-50271","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}