CVE & CISA-KEV Catalog

CVE-2022-48857

MEDIUM
5.5
CVSS v3
NVD

Description

In the Linux kernel, the following vulnerability has been resolved: NFC: port100: fix use-after-free in port100_send_complete Syzbot reported UAF in port100_send_complete(). The root case is in missing usb_kill_urb() calls on error handling path of ->probe function. port100_send_complete() accesses devm allocated memory which will be freed on probe failure. We should kill this urbs before returning an error from probe function to prevent reported use-after-free Fail log: BUG: KASAN: use-after-free in port100_send_complete+0x16e/0x1a0 drivers/nfc/port100.c:935 Read of size 1 at addr ffff88801bb59540 by task ksoftirqd/2/26 ... Call Trace: <TASK> __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106 print_address_description.constprop.0.cold+0x8d/0x303 mm/kasan/report.c:255 __kasan_report mm/kasan/report.c:442 [inline] kasan_report.cold+0x83/0xdf mm/kasan/report.c:459 port100_send_complete+0x16e/0x1a0 drivers/nfc/port100.c:935 __usb_hcd_giveback_urb+0x2b0/0x5c0 drivers/usb/core/hcd.c:1670 ... Allocated by task 1255: kasan_save_stack+0x1e/0x40 mm/kasan/common.c:38 kasan_set_track mm/kasan/common.c:45 [inline] set_alloc_info mm/kasan/common.c:436 [inline] ____kasan_kmalloc mm/kasan/common.c:515 [inline] ____kasan_kmalloc mm/kasan/common.c:474 [inline] __kasan_kmalloc+0xa6/0xd0 mm/kasan/common.c:524 alloc_dr drivers/base/devres.c:116 [inline] devm_kmalloc+0x96/0x1d0 drivers/base/devres.c:823 devm_kzalloc include/linux/device.h:209 [inline] port100_probe+0x8a/0x1320 drivers/nfc/port100.c:1502 Freed by task 1255: kasan_save_stack+0x1e/0x40 mm/kasan/common.c:38 kasan_set_track+0x21/0x30 mm/kasan/common.c:45 kasan_set_free_info+0x20/0x30 mm/kasan/generic.c:370 ____kasan_slab_free mm/kasan/common.c:366 [inline] ____kasan_slab_free+0xff/0x140 mm/kasan/common.c:328 kasan_slab_free include/linux/kasan.h:236 [inline] __cache_free mm/slab.c:3437 [inline] kfree+0xf8/0x2b0 mm/slab.c:3794 release_nodes+0x112/0x1a0 drivers/base/devres.c:501 devres_release_all+0x114/0x190 drivers/base/devres.c:530 really_probe+0x626/0xcc0 drivers/base/dd.c:670

How to fix

Remediation Available
linuxDebian
Fixed in:5.10.106-1CVE-2022-48857
Fixed in:5.16.18-1CVE-2022-48857
Fixed in:5.16.18-1CVE-2022-48857
Fixed in:5.16.18-1CVE-2022-48857
linuxUbuntu
Fixed in:4.4.0-259.293USN-7039-1
linux-awsUbuntu
Fixed in:4.4.0-1136.142USN-7039-1
Fixed in:4.4.0-1174.189USN-7039-1
linux-image-4.4.0-1136-awsUbuntu
Fixed in:4.4.0-1136.142USN-7039-1
linux-image-4.4.0-1137-kvmUbuntu
Fixed in:4.4.0-1137.147USN-7039-1
linux-image-4.4.0-1174-awsUbuntu
Fixed in:4.4.0-1174.189USN-7039-1
linux-image-4.4.0-259-genericUbuntu
Fixed in:4.4.0-259.293~14.04.1USN-7039-1
Fixed in:4.4.0-259.293USN-7039-1
linux-image-4.4.0-259-lowlatencyUbuntu
Fixed in:4.4.0-259.293~14.04.1USN-7039-1
Fixed in:4.4.0-259.293USN-7039-1
linux-image-awsUbuntu
Fixed in:4.4.0.1136.133USN-7039-1
Fixed in:4.4.0.1174.178USN-7039-1
linux-image-genericUbuntu
Fixed in:4.4.0.259.265USN-7039-1
linux-image-generic-lts-utopicUbuntu
Fixed in:4.4.0.259.265USN-7039-1
linux-image-generic-lts-vividUbuntu
Fixed in:4.4.0.259.265USN-7039-1
linux-image-generic-lts-wilyUbuntu
Fixed in:4.4.0.259.265USN-7039-1
linux-image-generic-lts-xenialUbuntu
Fixed in:4.4.0.259.293~14.04.1USN-7039-1
Fixed in:4.4.0.259.265USN-7039-1
linux-image-kvmUbuntu
Fixed in:4.4.0.1137.134USN-7039-1
linux-image-lowlatencyUbuntu
Fixed in:4.4.0.259.265USN-7039-1
linux-image-lowlatency-lts-utopicUbuntu
Fixed in:4.4.0.259.265USN-7039-1
linux-image-lowlatency-lts-vividUbuntu
Fixed in:4.4.0.259.265USN-7039-1
linux-image-lowlatency-lts-wilyUbuntu
Fixed in:4.4.0.259.265USN-7039-1
linux-image-lowlatency-lts-xenialUbuntu
Fixed in:4.4.0.259.293~14.04.1USN-7039-1
Fixed in:4.4.0.259.265USN-7039-1
linux-image-virtualUbuntu
Fixed in:4.4.0.259.265USN-7039-1
linux-image-virtual-lts-utopicUbuntu
Fixed in:4.4.0.259.265USN-7039-1
linux-image-virtual-lts-vividUbuntu
Fixed in:4.4.0.259.265USN-7039-1
linux-image-virtual-lts-wilyUbuntu
Fixed in:4.4.0.259.265USN-7039-1
linux-image-virtual-lts-xenialUbuntu
Fixed in:4.4.0.259.293~14.04.1USN-7039-1
Fixed in:4.4.0.259.265USN-7039-1
linux-kvmUbuntu
Fixed in:4.4.0-1137.147USN-7039-1
linux-lts-xenialUbuntu
Fixed in:4.4.0-259.293~14.04.1USN-7039-1

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorLocal
Attack ComplexityLow
Privileges RequiredLow
User InteractionNone
ScopeUnchanged

Impact

ConfidentialityNone
IntegrityNone
AvailabilityHigh

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Exploit Intelligence

0.21%probability of exploitation in 30 days
11thpercentile

Low risk: more likely to be exploited than 11% of all known CVEs.

References

Related Vulnerabilities

Other CWE-416 (Use After Free) vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2019-0708Critical9.8100%KEV + Ransom-
CVE-2021-31166Critical9.8100%KEVFix
CVE-2015-5119Critical9.899%KEV-
CVE-2010-3962High8.197%KEV-
CVE-2015-0313Critical9.896%KEVFix
CVE-2017-9798High7.595%-Fix
Embed a live status badge for CVE-2022-48857
CVE-2022-48857 severity badge

Markdown

[![CVE-2022-48857](https://tridentstack.com/cve/badge/CVE-2022-48857.svg)](https://tridentstack.com/cve/CVE-2022-48857)

HTML

<a href="https://tridentstack.com/cve/CVE-2022-48857"><img src="https://tridentstack.com/cve/badge/CVE-2022-48857.svg" alt="CVE-2022-48857"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

Start free

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2024-11-21.