CVE-2022-50282 json
chardev: fix error handling in cdev_device_add()
published 2025-09-15 13 mo ago modified 2026-11-05 3 d ago also EUVD-2022-55573
- cvss
- 5.5
- 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 8%
- public exploits
- 0
- none known
Summary
In the Linux kernel, the following vulnerability has been resolved:
chardev: fix error handling in cdev_device_add()
While doing fault injection test, I got the following report:
------------[ cut here ]------------ kobject: '(null)' (0000000039956980): is not initialized, yet kobject_put() is being called. WARNING: CPU: 3 PID: 6306 at kobject_put+0x23d/0x4e0 CPU: 3 PID: 6306 Comm: 283 Tainted: G W 6.1.0-rc2-00005-g307c1086d7c9 #1253 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.13.0-1ubuntu1.1 04/01/2014 RIP: 0010:kobject_put+0x23d/0x4e0 Call Trace: <TASK> cdev_device_add+0x15e/0x1b0 __iio_device_register+0x13b4/0x1af0 [industrialio] __devm_iio_device_register+0x22/0x90 [industrialio] max517_probe+0x3d8/0x6b4 [max517] i2c_device_probe+0xa81/0xc00
When device_add() is injected fault and returns error, if dev->devt is not set, cdev_add() is not called, cdev_del() is not needed. Fix this by checking dev->devt in error path.
Patch / fix
- Linux Linux 3.17, 4.5, 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-50282
- 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-50282
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-default SLE Micro 5.2 5.3.18-150300.59.232.1
- kernel-default-base SLE Micro 5.2 5.3.18-150300.59.232.1.150300.18.138.1
- kernel-rt SLE Micro 5.2 5.3.18-150300.232.1
- kernel-source-rt SLE Micro 5.2 5.3.18-150300.232.1
- kernel-rt SLE Micro 5.5 5.14.21-150500.13.109.1
- kernel-source-rt SLE Micro 5.5 5.14.21-150500.13.109.1
- kernel-rt SLE Micro 5.4, SLE Micro 5.3 5.14.21-150400.15.133.1
- kernel-source-rt SLE Micro 5.4, SLE Micro 5.3 5.14.21-150400.15.133.1
suse advisories SUSE-SU-2026:0369-1SUSE-SU-2026:0350-1SUSE-SU-2025:3761-1SUSE-SU-2025:3716-1SUSE-SU-2025:03628-1SUSE-SU-2025:03615-1
- git.kernel.org/stable/c/5d2146889fad4cb9e6c13e790d4cfd871486eca8 commit
- git.kernel.org/stable/c/6acf8597c5b04f455ee0649e11e5f3bcd28f381e commit
- git.kernel.org/stable/c/34d17b39bceef25e4cf9805cd59250ae05d0a139 commit
- git.kernel.org/stable/c/d85b5247a79355b8432bfd9ac871f96117f750d4 commit
- git.kernel.org/stable/c/c46db6088bccff5115674d583fef46ede80077a2 commit
- git.kernel.org/stable/c/28dc61cc49c6e995121c6d86bef4b73df78dda80 commit
- git.kernel.org/stable/c/b5de1eac71fec1af7723f1083d23a24789fd795c commit
- git.kernel.org/stable/c/85a5660491b507d33662b8e81c142e6041e642eb commit
- git.kernel.org/stable/c/11fa7fefe3d8fac7da56bc9aa3dd5fb3081ca797 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-50282 updated cvss 4.1
kernel: chardev: fix error handling in cdev_device_add()
-
Red Hat Enterprise Linux 6 perf, kernel, python-perf, kernel-kdump, kernel-firmware, kernel-bootwrapper, +1 moreaffected: no fix planned “Out of support scope”
-
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 moreaffected: no fix available “Fix deferred”
-
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
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 3 d ago
Exploit prediction
0.18% chance of exploitation in the next 30 days, higher than 8% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
Affected products
- Linux Linux
Classification
- Weakness
-
- CWE-908 Use of Uninitialized Resource
- Technology feeds
References
-
git.kernel.org
/stable/c/5d2146889fad4cb9e6c13e790d4cfd871486eca8
patch
-
git.kernel.org
/stable/c/6acf8597c5b04f455ee0649e11e5f3bcd28f381e
patch
-
git.kernel.org
/stable/c/34d17b39bceef25e4cf9805cd59250ae05d0a139
patch
-
git.kernel.org
/stable/c/d85b5247a79355b8432bfd9ac871f96117f750d4
patch
-
git.kernel.org
/stable/c/c46db6088bccff5115674d583fef46ede80077a2
patch
-
git.kernel.org
/stable/c/28dc61cc49c6e995121c6d86bef4b73df78dda80
patch
-
git.kernel.org
/stable/c/b5de1eac71fec1af7723f1083d23a24789fd795c
patch
-
git.kernel.org
/stable/c/85a5660491b507d33662b8e81c142e6041e642eb
patch
-
git.kernel.org
/stable/c/11fa7fefe3d8fac7da56bc9aa3dd5fb3081ca797
patch
Sources
- CVE List CVE-2022-50282
- NVD CVE-2022-50282
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.