CVE-2022-50542 json
media: si470x: Fix use-after-free in si470x_int_in_callback()
published 2025-10-07 13 mo ago modified 2026-06-17 4 mo ago also EUVD-2025-32010
- cvss
- 7.8
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.2%
- EPSS 0.2% chance of exploitation in 30 days, percentile 5%
- public exploits
- 0
- none known
Summary
In the Linux kernel, the following vulnerability has been resolved:
media: si470x: Fix use-after-free in si470x_int_in_callback()
syzbot reported use-after-free in si470x_int_in_callback() [1]. This indicates that urb->context, which contains struct si470x_device object, is freed when si470x_int_in_callback() is called.
The cause of this issue is that si470x_int_in_callback() is called for freed urb.
si470x_usb_driver_probe() calls si470x_start_usb(), which then calls usb_submit_urb() and si470x_start(). If si470x_start_usb() fails, si470x_usb_driver_probe() doesn't kill urb, but it just frees struct si470x_device object, as depicted below:
si470x_usb_driver_probe() ... si470x_start_usb() ... usb_submit_urb() retval = si470x_start() return retval if (retval < 0) free struct si470x_device object, but don't kill urb
This patch fixes this issue by killing urb when si470x_start_usb() fails and urb is submitted. If si470x_start_usb() fails and urb is not submitted, i.e. submitting usb fails, it just frees struct si470x_device object.
Patch / fix
- Linux Linux 4.9.337, 4.14.303, 4.19.270, 5.4.229, 5.10.163, 5.15.86, 6.0.16, 6.1.2, 6.2
- linux Debian 14, Debian 13, Debian 12 6.1.4-1
debian advisories DEBIAN-CVE-2022-50542
- linux Ubuntu 18.04 LTS 4.15.0-208.220
- linux Ubuntu 20.04 LTS 5.4.0-144.161
- linux Ubuntu 22.04 LTS 5.15.0-69.76
- linux-aws Ubuntu 18.04 LTS 4.15.0-1153.166
- linux-aws Ubuntu 20.04 LTS 5.4.0-1097.105
- linux-aws Ubuntu 22.04 LTS 5.15.0-1033.37
- linux-gcp Ubuntu 20.04 LTS 5.4.0-1101.110
- linux-gcp Ubuntu 22.04 LTS 5.15.0-1031.38
ubuntu advisories UBUNTU-CVE-2022-50542
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- kernel-64kb SLES 15 SP5-LTSS, SLE High Performance Computing 15 SP5-LTSS, SLE High Performance Computing 15 SP5-ESPOS 5.14.21-150500.55.127.1
- kernel-syms SLES for SAP 15 SP5, SLES 15 SP5-LTSS, SLE High Performance Computing 15 SP5-LTSS +1 more 5.14.21-150500.55.127.1
- kernel-source SLES for SAP 15 SP5, SLES 15 SP5-LTSS, SLE Micro 5.5 +2 more 5.14.21-150500.55.127.1
- kernel-default SLES for SAP 15 SP5, SLES 15 SP5-LTSS, SLE Micro 5.5 +3 more 5.14.21-150500.55.127.1
- kernel-obs-build SLES for SAP 15 SP5, SLES 15 SP5-LTSS, SLE High Performance Computing 15 SP5-LTSS +1 more 5.14.21-150500.55.127.1
- kernel-default-base SLES for SAP 15 SP5, SLES 15 SP5-LTSS, SLE Micro 5.5 +2 more 5.14.21-150500.55.127.1.150500.6.61.1
- kernel-rt SLE Micro 5.5 5.14.21-150500.13.112.1
- kernel-source-rt SLE Micro 5.5 5.14.21-150500.13.112.1
suse advisories SUSE-SU-2025:4320-1SUSE-SU-2025:4189-1SUSE-SU-2025:4149-1SUSE-SU-2025:4139-1SUSE-SU-2025:4111-1
- git.kernel.org/stable/c/146bd005ebb01ae190c22af050cb98623958c373 commit
- git.kernel.org/stable/c/8c6151b8e8dd2d98ad2cd725d26d1e103d989891 commit
- git.kernel.org/stable/c/52f54fe78cca24850a30865037250f63eb3d5bf7 commit
- git.kernel.org/stable/c/0ca298d548461d29615f9a2b1309e8dcf4a352c6 commit
- git.kernel.org/stable/c/1c6447d0fc68650e51586dde79b5090d9d77f13a commit
- git.kernel.org/stable/c/6c8aee0c8fcc6dda94315f7908e8fa9bc75abe75 commit
- git.kernel.org/stable/c/63648a7bd1a7599bcc2040a6d1792363ae4c2e1b commit
- git.kernel.org/stable/c/92b0888398e4ba51d93b618a6506781f4e3879c9 commit
- git.kernel.org/stable/c/7d21e0b1b41b21d628bf2afce777727bd4479aa5 commit
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2022-50542 updated cvss 6.3
kernel: media: si470x: Fix use-after-free in si470x_int_in_callback()
-
Red Hat Enterprise Linux 6 perf, kernel, python-perf, kernel-kdump, kernel-firmware, kernel-bootwrapper, +1 moreaffected: workaround, no fix planned “To mitigate this issue, prevent the radio_si470x module from loading. See https://access.redhat.com/solutions/41278 for instructions on blacklisting kernel modules.”
-
Red Hat Enterprise Linux 7 perf, kernel, bpftool, kernel-rt, python-perf, kernel-kdump, +8 more Red Hat Enterprise Linux 8 perf, kernel, bpftool, kernel-rt, kernel-core, kernel-tools, +29 more Red Hat Enterprise Linux 9 rv, perf, rtla, kernel, bpftool, libperf, +83 more Red Hat Enterprise Linux 10 kernelnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
0.17% chance of exploitation in the next 30 days, higher than 5% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected products
- Linux Linux
Classification
- Weakness
-
- CWE-416 Use After Free
- Technology feeds
References
-
git.kernel.org
/stable/c/146bd005ebb01ae190c22af050cb98623958c373
patch
-
git.kernel.org
/stable/c/8c6151b8e8dd2d98ad2cd725d26d1e103d989891
patch
-
git.kernel.org
/stable/c/52f54fe78cca24850a30865037250f63eb3d5bf7
patch
-
git.kernel.org
/stable/c/0ca298d548461d29615f9a2b1309e8dcf4a352c6
patch
-
git.kernel.org
/stable/c/1c6447d0fc68650e51586dde79b5090d9d77f13a
patch
-
git.kernel.org
/stable/c/6c8aee0c8fcc6dda94315f7908e8fa9bc75abe75
patch
-
git.kernel.org
/stable/c/63648a7bd1a7599bcc2040a6d1792363ae4c2e1b
patch
-
git.kernel.org
/stable/c/92b0888398e4ba51d93b618a6506781f4e3879c9
patch
-
git.kernel.org
/stable/c/7d21e0b1b41b21d628bf2afce777727bd4479aa5
patch
Sources
- CVE List CVE-2022-50542
- NVD CVE-2022-50542
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.