# CVE-2022-49741: fbdev: smscufx: fix error handling code in ufx\_usb\_probe

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.28% (percentile 14, 2026-11-26)
- **CWE:** CWE-401
- **Published:** 2025-03-27T16:42:52.994Z
- **Modified:** 2026-06-17T05:19:00.953Z

## Who should check

- Anyone running Linux \>= 5385af2f89bc352fb70753ab41b2bb036190141f, \< 3b3d3127f5b4291ae4caaf50f7b66089ad600480; \>= d9ddfeb01fb95ffbbc7031d46a5ee2a5e45cbb86, \< 3931014367ef31d26af65386a4ca496f50f0cfdf; \>= cc6a7249842fceda7574ceb63275a2d5e99d2862, \< 64fa364ad3245508d393e16ed4886f92d7eb423c; \>= cc67482c9e5f2c80d62f623bcc347c29f9f648e1, \< 1b4c08844628dfc8d72d3f51b657f2a5e63b7b4b; \>= cc67482c9e5f2c80d62f623bcc347c29f9f648e1, \< b76449ee75e21acfe9fa4c653d8598f191ed7d68; 6f2075ea883e5d7730d0c9ebb1bb8e7a1a7e953f; 3f40852d671072836fb7ae331a1f28a24223c4e8; 70faf9d9b6cc74418716bbf76fe75bd2da10ad4a; 8d924b262f3178a9b17c17d4306a9f426c508bd9; \>= 5.4.223, \< 5.4.232; …
- Anyone running Linux 6.1

## Description

In the Linux kernel, the following vulnerability has been resolved:

fbdev: smscufx: fix error handling code in ufx\_usb\_probe

The current error handling code in ufx\_usb\_probe have many unmatching
issues, e.g., missing ufx\_free\_usb\_list, destroy\_modedb label should
only include framebuffer\_release, fb\_dealloc\_cmap only matches
fb\_alloc\_cmap.

My local syzkaller reports a memory leak bug:

memory leak in ufx\_usb\_probe

BUG: memory leak
unreferenced object 0xffff88802f879580 (size 128):
  comm "kworker/0:7", pid 17416, jiffies 4295067474 (age 46.710s)
  hex dump (first 32 bytes):
    80 21 7c 2e 80 88 ff ff 18 d0 d0 0c 80 88 ff ff  .!\|.............
    00 d0 d0 0c 80 88 ff ff e0 ff ff ff 0f 00 00 00  ................
  backtrace:
    \[\<ffffffff814c99a0\>\] kmalloc\_trace+0x20/0x90 mm/slab\_common.c:1045
    \[\<ffffffff824d219c\>\] kmalloc include/linux/slab.h:553 \[inline\]
    \[\<ffffffff824d219c\>\] kzalloc include/linux/slab.h:689 \[inline\]
    \[\<ffffffff824d219c\>\] ufx\_alloc\_urb\_list drivers/video/fbdev/smscufx.c:1873 \[inline\]
    \[\<ffffffff824d219c\>\] ufx\_usb\_probe+0x11c/0x15a0 drivers/video/fbdev/smscufx.c:1655
    \[\<ffffffff82d17927\>\] usb\_probe\_interface+0x177/0x370 drivers/usb/core/driver.c:396
    \[\<ffffffff82712f0d\>\] call\_driver\_probe drivers/base/dd.c:560 \[inline\]
    \[\<ffffffff82712f0d\>\] really\_probe+0x12d/0x390 drivers/base/dd.c:639
    \[\<ffffffff8271322f\>\] \_\_driver\_probe\_device+0xbf/0x140 drivers/base/dd.c:778
    \[\<ffffffff827132da\>\] driver\_probe\_device+0x2a/0x120 drivers/base/dd.c:808
    \[\<ffffffff82713c27\>\] \_\_device\_attach\_driver+0xf7/0x150 drivers/base/dd.c:936
    \[\<ffffffff82710137\>\] bus\_for\_each\_drv+0xb7/0x100 drivers/base/bus.c:427
    \[\<ffffffff827136b5\>\] \_\_device\_attach+0x105/0x2d0 drivers/base/dd.c:1008
    \[\<ffffffff82711d36\>\] bus\_probe\_device+0xc6/0xe0 drivers/base/bus.c:487
    \[\<ffffffff8270e242\>\] device\_add+0x642/0xdc0 drivers/base/core.c:3517
    \[\<ffffffff82d14d5f\>\] usb\_set\_configuration+0x8ef/0xb80 drivers/usb/core/message.c:2170
    \[\<ffffffff82d2576c\>\] usb\_generic\_driver\_probe+0x8c/0xc0 drivers/usb/core/generic.c:238
    \[\<ffffffff82d16ffc\>\] usb\_probe\_device+0x5c/0x140 drivers/usb/core/driver.c:293
    \[\<ffffffff82712f0d\>\] call\_driver\_probe drivers/base/dd.c:560 \[inline\]
    \[\<ffffffff82712f0d\>\] really\_probe+0x12d/0x390 drivers/base/dd.c:639
    \[\<ffffffff8271322f\>\] \_\_driver\_probe\_device+0xbf/0x140 drivers/base/dd.c:778

Fix this bug by rewriting the error handling code in ufx\_usb\_probe.

## Affected and fixed versions

- Linux: \>= 5385af2f89bc352fb70753ab41b2bb036190141f, \< 3b3d3127f5b4291ae4caaf50f7b66089ad600480; \>= d9ddfeb01fb95ffbbc7031d46a5ee2a5e45cbb86, \< 3931014367ef31d26af65386a4ca496f50f0cfdf; \>= cc6a7249842fceda7574ceb63275a2d5e99d2862, \< 64fa364ad3245508d393e16ed4886f92d7eb423c; \>= cc67482c9e5f2c80d62f623bcc347c29f9f648e1, \< 1b4c08844628dfc8d72d3f51b657f2a5e63b7b4b; \>= cc67482c9e5f2c80d62f623bcc347c29f9f648e1, \< b76449ee75e21acfe9fa4c653d8598f191ed7d68; 6f2075ea883e5d7730d0c9ebb1bb8e7a1a7e953f; 3f40852d671072836fb7ae331a1f28a24223c4e8; 70faf9d9b6cc74418716bbf76fe75bd2da10ad4a; 8d924b262f3178a9b17c17d4306a9f426c508bd9; \>= 5.4.223, \< 5.4.232; … (cvelist)
- Linux: 6.1 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2022-49741. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-49741.md
Affected: Linux >= 5385af2f89bc352fb70753ab41b2bb036190141f, < 3b3d3127f5b4291ae4caaf50f7b66089ad600480; >= d9ddfeb01fb95ffbbc7031d46a5ee2a5e45cbb86, < 3931014367ef31d26af65386a4ca496f50f0cfdf; >= cc6a7249842fceda7574ceb63275a2d5e99d2862, < 64fa364ad3245508d393e16ed4886f92d7eb423c; >= cc67482c9e5f2c80d62f623…
Fixed in: Linux 3b3d3127f5b4291ae4caaf50f7b66089ad600480, Linux 3931014367ef31d26af65386a4ca496f50f0cfdf, Linux 64fa364ad3245508d393e16ed4886f92d7eb423c, Linux 1b4c08844628dfc8d72d3f51b657f2a5e63b7b4b, Linux 5.4.232

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2022-49741 being exploited?

There is no confirmed exploitation: CVE-2022-49741 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.28% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2022-49741?

Medium: CVSS 5.5 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2022-49741?

Linux \>= 5385af2f89bc352fb70753ab41b2bb036190141f, \< 3b3d3127f5b4291ae4caaf50f7b66089ad600480; \>= d9ddfeb01fb95ffbbc7031d46a5ee2a5e45cbb86, \< 3931014367ef31d26af65386a4ca496f50f0cfdf; \>= cc6a7249842fceda7574ceb63275a2d5e99d2862, \< 64fa364ad3245508d393e16ed4886f92d7eb423c; \>= cc67482c9e5f2c80d62f623bcc347c29f9f648e1, \< 1b4c08844628dfc8d72d3f51b657f2a5e63b7b4b; \>= cc67482c9e5f2c80d62f623bcc347c29f9f648e1, \< b76449ee75e21acfe9fa4c653d8598f191ed7d68; 6f2075ea883e5d7730d0c9ebb1bb8e7a1a7e953f; 3f40852d671072836fb7ae331a1f28a24223c4e8; 70faf9d9b6cc74418716bbf76fe75bd2da10ad4a; 8d924b262f3178a9b17c17d4306a9f426c508bd9; \>= 5.4.223, \< 5.4.232; …; Linux 6.1.

### Is there a fix for CVE-2022-49741?

Yes. Fixed in Linux 3b3d3127f5b4291ae4caaf50f7b66089ad600480, Linux 3931014367ef31d26af65386a4ca496f50f0cfdf, Linux 64fa364ad3245508d393e16ed4886f92d7eb423c, Linux 1b4c08844628dfc8d72d3f51b657f2a5e63b7b4b, Linux 5.4.232. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2022-49741?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/3b3d3127f5b4291ae4caaf50f7b66089ad600480>
- patch: <https://git.kernel.org/stable/c/3931014367ef31d26af65386a4ca496f50f0cfdf>
- patch: <https://git.kernel.org/stable/c/64fa364ad3245508d393e16ed4886f92d7eb423c>
- patch: <https://git.kernel.org/stable/c/1b4c08844628dfc8d72d3f51b657f2a5e63b7b4b>
- patch: <https://git.kernel.org/stable/c/b76449ee75e21acfe9fa4c653d8598f191ed7d68>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2022-49741>

HTML: <https://flawdb.com/CVE-2022-49741> · JSON: <https://flawdb.com/api/v1/entries/CVE-2022-49741>
