Wind River Support Network

HomeDefectsLIN1022-19062
Fixed

LIN1022-19062 : Security Advisory - linux - CVE-2022-50578

Created: Oct 22, 2025    Updated: Oct 26, 2025
Resolved Date: Oct 26, 2025
Found In Version: 10.22.33.1
Fix Version: 10.22.33.5
Severity: Standard
Applicable for: Wind River Linux LTS 22
Component/s: Kernel

Description

In the Linux kernel, the following vulnerability has been resolved:[EOL][EOL]class: fix possible memory leak in __class_register()[EOL][EOL]If class_add_groups() returns error, the 'cp->subsys' need be[EOL]unregister, and the 'cp' need be freed.[EOL][EOL]We can not call kset_unregister() here, because the 'cls' will[EOL]be freed in callback function class_release() and it's also[EOL]freed in caller's error path, it will cause double free.[EOL][EOL]So fix this by calling kobject_del() and kfree_const(name) to[EOL]cleanup kobject. Besides, call kfree() to free the 'cp'.[EOL][EOL]Fault injection test can trigger this:[EOL][EOL]unreferenced object 0xffff888102fa8190 (size 8):[EOL]  comm "modprobe", pid 502, jiffies 4294906074 (age 49.296s)[EOL]  hex dump (first 8 bytes):[EOL]    70 6b 74 63 64 76 64 00                          pktcdvd.[EOL]  backtrace:[EOL]    [<00000000e7c7703d>] __kmalloc_track_caller+0x1ae/0x320[EOL]    [<000000005e4d70bc>] kstrdup+0x3a/0x70[EOL]    [<00000000c2e5e85a>] kstrdup_const+0x68/0x80[EOL]    [<000000000049a8c7>] kvasprintf_const+0x10b/0x190[EOL]    [<0000000029123163>] kobject_set_name_vargs+0x56/0x150[EOL]    [<00000000747219c9>] kobject_set_name+0xab/0xe0[EOL]    [<0000000005f1ea4e>] __class_register+0x15c/0x49a[EOL][EOL]unreferenced object 0xffff888037274000 (size 1024):[EOL]  comm "modprobe", pid 502, jiffies 4294906074 (age 49.296s)[EOL]  hex dump (first 32 bytes):[EOL]    00 40 27 37 80 88 ff ff 00 40 27 37 80 88 ff ff  .@'7.....@'7....[EOL]    00 00 00 00 ad 4e ad de ff ff ff ff 00 00 00 00  .....N..........[EOL]  backtrace:[EOL]    [<00000000151f9600>] kmem_cache_alloc_trace+0x17c/0x2f0[EOL]    [<00000000ecf3dd95>] __class_register+0x86/0x49a

CVEs


Live chat
Online