CVE-2022-50724

Severity CVSS v4.0:
Pending analysis
Type:
Unavailable / Other
Publication date:
24/12/2025
Last modified:
29/12/2025

Description

In the Linux kernel, the following vulnerability has been resolved:<br /> <br /> regulator: core: fix resource leak in regulator_register()<br /> <br /> I got some resource leak reports while doing fault injection test:<br /> <br /> OF: ERROR: memory leak, expected refcount 1 instead of 100,<br /> of_node_get()/of_node_put() unbalanced - destroy cset entry:<br /> attach overlay node /i2c/pmic@64/regulators/buck1<br /> <br /> unreferenced object 0xffff88810deea000 (size 512):<br /> comm "490-i2c-rt5190a", pid 253, jiffies 4294859840 (age 5061.046s)<br /> hex dump (first 32 bytes):<br /> 00 00 00 00 ad 4e ad de ff ff ff ff 00 00 00 00 .....N..........<br /> ff ff ff ff ff ff ff ff a0 1e 00 a1 ff ff ff ff ................<br /> backtrace:<br /> [] kmalloc_trace+0x21/0x110<br /> [] device_private_init+0x32/0xd0<br /> [] device_add+0xb2d/0x1030<br /> [] regulator_register+0xaf2/0x12a0<br /> [] devm_regulator_register+0x57/0xb0<br /> [] rt5190a_probe+0x52a/0x861 [rt5190a_regulator]<br /> <br /> unreferenced object 0xffff88810b617b80 (size 32):<br /> comm "490-i2c-rt5190a", pid 253, jiffies 4294859904 (age 5060.983s)<br /> hex dump (first 32 bytes):<br /> 72 65 67 75 6c 61 74 6f 72 2e 32 38 36 38 2d 53 regulator.2868-S<br /> 55 50 50 4c 59 00 ff ff 29 00 00 00 2b 00 00 00 UPPLY...)...+...<br /> backtrace:<br /> [] __kmalloc_node_track_caller+0x44/0x1b0<br /> [] kstrdup+0x3a/0x70<br /> [] create_regulator+0xc0/0x4e0<br /> [] regulator_resolve_supply+0x2d4/0x440<br /> [] regulator_register+0x10b3/0x12a0<br /> [] devm_regulator_register+0x57/0xb0<br /> [] rt5190a_probe+0x52a/0x861 [rt5190a_regulator]<br /> <br /> After calling regulator_resolve_supply(), the &amp;#39;rdev-&gt;supply&amp;#39; is set<br /> by set_supply(), after this set, in the error path, the resources<br /> need be released, so call regulator_put() to avoid the leaks.

Impact