CVE-2022-50542

media: si470x: Fix use-after-free in si470x_int_in_callback()

No CVSS score yet EPSS 0.17%

Published 7 Oct 2025 Updated 11 May 2026 CNA: Linux

Check your servers for CVE-2022-50542

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2022-50542 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

Description

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.

Exploitation

EPSS 0.17%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 6.20% of all scored CVEs. Scores of 1 Dec 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 779471110c6f0f7f7c223fc696170ec750ac3531, before 146bd005ebb01ae190c22af050cb98623958c373
affected from 779471110c6f0f7f7c223fc696170ec750ac3531, before 8c6151b8e8dd2d98ad2cd725d26d1e103d989891
affected from 779471110c6f0f7f7c223fc696170ec750ac3531, before 52f54fe78cca24850a30865037250f63eb3d5bf7
affected from 779471110c6f0f7f7c223fc696170ec750ac3531, before 0ca298d548461d29615f9a2b1309e8dcf4a352c6
affected from 779471110c6f0f7f7c223fc696170ec750ac3531, before 1c6447d0fc68650e51586dde79b5090d9d77f13a
affected from 779471110c6f0f7f7c223fc696170ec750ac3531, before 6c8aee0c8fcc6dda94315f7908e8fa9bc75abe75
affected from 779471110c6f0f7f7c223fc696170ec750ac3531, before 63648a7bd1a7599bcc2040a6d1792363ae4c2e1b
affected from 779471110c6f0f7f7c223fc696170ec750ac3531, before 92b0888398e4ba51d93b618a6506781f4e3879c9
affected from 779471110c6f0f7f7c223fc696170ec750ac3531, before 7d21e0b1b41b21d628bf2afce777727bd4479aa5
Other versions: unaffected
Linux
affected 3.6
unaffected before 3.6
unaffected from 4.9.337 up to and including 4.9.*
unaffected from 4.14.303 up to and including 4.14.*
unaffected from 4.19.270 up to and including 4.19.*
unaffected from 5.4.229 up to and including 5.4.*
unaffected from 5.10.163 up to and including 5.10.*
unaffected from 5.15.86 up to and including 5.15.*
unaffected from 6.0.16 up to and including 6.0.*
unaffected from 6.1.2 up to and including 6.1.*
unaffected 6.2 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2022-50542 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2022-50542

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2022-50542
trivy image --scanners vuln IMAGE | grep CVE-2022-50542

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2022-50542 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.