Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2024-50231— iio: gts-helper: Fix memory leaks in iio_gts_build_avail_scale_table()

Quick assessment

Affected
Linux Linux
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Linux kernel是美国Linux基金会的开源操作系统Linux所使用的内核。 Linux kernel存在安全漏洞,该漏洞源于iio_gts_build_avail_scale_table函数存在内存泄漏问题。

AI Predicted 3.3 Difficulty: Theoretical EPSS 0.22% · P12

Possible ATT&CK Techniques 1 AI

T1496 · Resource Hijacking

Affected Version Matrix 8

VendorProduct Version RangeStatus
Linux Linux 38416c28e16890b52fdd5eb73479299ec3f062f3< 38d6e8be234d87b0eedca50309e25051888b39d1 affected
38416c28e16890b52fdd5eb73479299ec3f062f3< 16e41593825c3044efca0eb34b2d6ffba306e4ec affected
38416c28e16890b52fdd5eb73479299ec3f062f3< 691e79ffc42154a9c91dc3b7e96a307037b4be74 affected
6.4 affected
< 6.4 unaffected
6.6.60≤ 6.6.* unaffected
6.11.7≤ 6.11.* unaffected
6.12≤ * unaffected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2024-50231

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
iio: gts-helper: Fix memory leaks in iio_gts_build_avail_scale_table()
Source: CVE Program / CVE List V5
Vulnerability Description
In the Linux kernel, the following vulnerability has been resolved: iio: gts-helper: Fix memory leaks in iio_gts_build_avail_scale_table() modprobe iio-test-gts and rmmod it, then the following memory leak occurs: unreferenced object 0xffffff80c810be00 (size 64): comm "kunit_try_catch", pid 1654, jiffies 4294913981 hex dump (first 32 bytes): 02 00 00 00 08 00 00 00 20 00 00 00 40 00 00 00 ........ ...@... 80 00 00 00 00 02 00 00 00 04 00 00 00 08 00 00 ................ backtrace (crc a63d875e): [<0000000028c1b3c2>] kmemleak_alloc+0x34/0x40 [<000000001d6ecc87>] __kmalloc_noprof+0x2bc/0x3c0 [<00000000393795c1>] devm_iio_init_iio_gts+0x4b4/0x16f4 [<0000000071bb4b09>] 0xffffffdf052a62e0 [<000000000315bc18>] 0xffffffdf052a6488 [<00000000f9dc55b5>] kunit_try_run_case+0x13c/0x3ac [<00000000175a3fd4>] kunit_generic_run_threadfn_adapter+0x80/0xec [<00000000f505065d>] kthread+0x2e8/0x374 [<00000000bbfb0e5d>] ret_from_fork+0x10/0x20 unreferenced object 0xffffff80cbfe9e70 (size 16): comm "kunit_try_catch", pid 1658, jiffies 4294914015 hex dump (first 16 bytes): 10 00 00 00 40 00 00 00 80 00 00 00 00 00 00 00 ....@........... backtrace (crc 857f0cb4): [<0000000028c1b3c2>] kmemleak_alloc+0x34/0x40 [<000000001d6ecc87>] __kmalloc_noprof+0x2bc/0x3c0 [<00000000393795c1>] devm_iio_init_iio_gts+0x4b4/0x16f4 [<0000000071bb4b09>] 0xffffffdf052a62e0 [<000000007d089d45>] 0xffffffdf052a6864 [<00000000f9dc55b5>] kunit_try_run_case+0x13c/0x3ac [<00000000175a3fd4>] kunit_generic_run_threadfn_adapter+0x80/0xec [<00000000f505065d>] kthread+0x2e8/0x374 [<00000000bbfb0e5d>] ret_from_fork+0x10/0x20 ...... It includes 5*5 times "size 64" memory leaks, which correspond to 5 times test_init_iio_gain_scale() calls with gts_test_gains size 10 (10*size(int)) and gts_test_itimes size 5. It also includes 5*1 times "size 16" memory leak, which correspond to one time __test_init_iio_gain_scale() call with gts_test_gains_gain_low size 3 (3*size(int)) and gts_test_itimes size 5. The reason is that the per_time_gains[i] is not freed which is allocated in the "gts->num_itime" for loop in iio_gts_build_avail_scale_table().
Source: CVE Program / CVE List V5
CVSS Information
N/A
Source: CVE Program / CVE List V5
Vulnerability Type
N/A
Source: CVE Program / CVE List V5
Vulnerability Title
Linux kernel 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Linux kernel是美国Linux基金会的开源操作系统Linux所使用的内核。 Linux kernel存在安全漏洞,该漏洞源于iio_gts_build_avail_scale_table函数存在内存泄漏问题。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
Linux Linux 38416c28e16890b52fdd5eb73479299ec3f062f3 ~ 38d6e8be234d87b0eedca50309e25051888b39d1 -
Linux Linux 6.4 -

II. Public POCs for CVE-2024-50231

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2024-50231

登录查看更多情报信息。

Patches & Fixes for CVE-2024-50231 (2)

Same Patch Batch · Linux · 2024-11-09 · 49 CVEs total

CVE-2024-50215 8.1 HIGH nvmet-auth: assign dh_key to NULL after kfree_sensitive
CVE-2024-50225 7.8 HIGH btrfs: fix error propagation of split bios
CVE-2024-50217 7.8 HIGH btrfs: fix use-after-free of block device file in __btrfs_free_extra_devids()
CVE-2024-50221 7.8 HIGH drm/amd/pm: Vangogh: Fix kernel memory out of bounds write
CVE-2024-50262 7.8 HIGH bpf: Fix out-of-bounds write in trie_get_next_key()
CVE-2024-50261 7.8 HIGH macsec: Fix use-after-free while sending the offloading packet
CVE-2024-50246 7.8 HIGH fs/ntfs3: Add rough attr alloc_size check
CVE-2024-50253 7.8 HIGH bpf: Check the validity of nr_words in bpf_iter_bits_new()
CVE-2024-50230 7.8 HIGH nilfs2: fix kernel bug due to missing clearing of checked flag
CVE-2024-50237 7.8 HIGH wifi: mac80211: do not pass a stopped vif to the driver in .get_txpower
CVE-2024-50250 7.8 HIGH fsdax: dax_unshare_iter needs to copy entire blocks
CVE-2024-50235 7.8 HIGH wifi: cfg80211: clear wdev->cqm_config pointer on free
CVE-2024-50256 7.5 HIGH netfilter: nf_reject_ipv6: fix potential crash in nf_send_reset6()
CVE-2024-50241 7.5 HIGH NFSD: Initialize struct nfsd4_copy earlier
CVE-2024-50247 7.3 HIGH fs/ntfs3: Check if more than chunk-size bytes are written
CVE-2024-50248 7.1 HIGH ntfs3: Add bounds checking to mi_enum_attr()
CVE-2024-50257 7.0 HIGH netfilter: Fix use-after-free in get_info()
CVE-2024-50222 7.0 HIGH iov_iter: fix copy_page_from_iter_atomic() if KMAP_LOCAL_FORCE_MAP
CVE-2024-50245 fs/ntfs3: Fix possible deadlock in mi_read
CVE-2024-50239 phy: qcom: qmp-usb-legacy: fix NULL-deref on runtime suspend

Showing top 20 of 49 CVEs. View all on vendor page &rarr; →

IV. Related Vulnerabilities

V. Comments for CVE-2024-50231

No comments yet


Leave a comment