CVE-2023-53303

Source
https://nvd.nist.gov/vuln/detail/CVE-2023-53303
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-53303.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2023-53303
Downstream
Related
Published
2025-09-16T08:11:33Z
Modified
2025-10-16T16:10:08.197393Z
Summary
net: microchip: vcap api: Fix possible memory leak for vcap_dup_rule()
Details

In the Linux kernel, the following vulnerability has been resolved:

net: microchip: vcap api: Fix possible memory leak for vcapduprule()

Inject fault When select CONFIGVCAPKUNIT_TEST, the below memory leak occurs. If kzalloc() for duprule succeeds, but the following kmemdup() fails, the duprule, ckf and caf memory will be leaked. So kfree them in the error path.

unreferenced object 0xffff122744c50600 (size 192): comm "kunittrycatch", pid 346, jiffies 4294896122 (age 911.812s) hex dump (first 32 bytes): 10 27 00 00 04 00 00 00 1e 00 00 00 2c 01 00 00 .'..........,... 00 00 00 00 00 00 00 00 18 06 c5 44 27 12 ff ff ...........D'... backtrace: [<00000000394b0db8>] _kmemcacheallocnode+0x274/0x2f8 [<0000000001bedc67>] kmalloctrace+0x38/0x88 [<00000000b0612f98>] vcapduprule+0x50/0x460 [<000000005d2d3aca>] vcapaddrule+0x8cc/0x1038 [<00000000eef9d0f8>] testvcapxnrulecreator.constprop.0.isra.0+0x238/0x494 [<00000000cbda607b>] vcapapiruleremoveinfronttest+0x1ac/0x698 [<00000000c8766299>] kunittryruncase+0xe0/0x20c [<00000000c4fe9186>] kunitgenericrunthreadfnadapter+0x50/0x94 [<00000000f6864acf>] kthread+0x2e8/0x374 [<0000000022e639b3>] retfromfork+0x10/0x20

References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
814e7693207f1bd936d600f9b5467f133e3d6e40
Fixed
a26ba60413b2c8f95daf0ee0152cf82abd7bfbe4
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
814e7693207f1bd936d600f9b5467f133e3d6e40
Fixed
281f65d29d6da1a9b6907fb0b145aaf34f4e4822

Affected versions

v6.*

v6.2
v6.2-rc4
v6.2-rc5
v6.2-rc6
v6.2-rc7
v6.2-rc8
v6.3
v6.3-rc1
v6.3-rc2
v6.3-rc3
v6.3-rc4
v6.3-rc5
v6.3-rc6
v6.3-rc7
v6.4
v6.4-rc1
v6.4-rc2
v6.4-rc3
v6.4-rc4
v6.4-rc5
v6.4-rc6
v6.4-rc7
v6.5
v6.5-rc1
v6.5-rc2
v6.5-rc3
v6.5-rc4
v6.5-rc5
v6.5-rc6
v6.5-rc7
v6.5.1
v6.5.2
v6.5.3

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.3.0
Fixed
6.5.4