CVE-2023-53349 (GCVE-0-2023-53349)
Vulnerability from cvelistv5
Published
2025-09-17 14:56
Modified
2025-09-17 14:56
Severity ?
Summary
In the Linux kernel, the following vulnerability has been resolved: media: ov2740: Fix memleak in ov2740_init_controls() There is a kmemleak when testing the media/i2c/ov2740.c with bpf mock device: unreferenced object 0xffff8881090e19e0 (size 16): comm "51-i2c-ov2740", pid 278, jiffies 4294781584 (age 23.613s) hex dump (first 16 bytes): 00 f3 7c 0b 81 88 ff ff 80 75 6a 09 81 88 ff ff ..|......uj..... backtrace: [<000000004e9fad8f>] __kmalloc_node+0x44/0x1b0 [<0000000039c802f4>] kvmalloc_node+0x34/0x180 [<000000009b8b5c63>] v4l2_ctrl_handler_init_class+0x11d/0x180 [videodev] [<0000000038644056>] ov2740_probe+0x37d/0x84f [ov2740] [<0000000092489f59>] i2c_device_probe+0x28d/0x680 [<000000001038babe>] really_probe+0x17c/0x3f0 [<0000000098c7af1c>] __driver_probe_device+0xe3/0x170 [<00000000e1b3dc24>] device_driver_attach+0x34/0x80 [<000000005a04a34d>] bind_store+0x10b/0x1a0 [<00000000ce25d4f2>] drv_attr_store+0x49/0x70 [<000000007d9f4e9a>] sysfs_kf_write+0x8c/0xb0 [<00000000be6cff0f>] kernfs_fop_write_iter+0x216/0x2e0 [<0000000031ddb40a>] vfs_write+0x658/0x810 [<0000000041beecdd>] ksys_write+0xd6/0x1b0 [<0000000023755840>] do_syscall_64+0x38/0x90 [<00000000b2cc2da2>] entry_SYSCALL_64_after_hwframe+0x63/0xcd ov2740_init_controls() won't clean all the allocated resources in fail path, which may causes the memleaks. Add v4l2_ctrl_handler_free() to prevent memleak.
Impacted products
Vendor Product Version
Linux Linux Version: 866edc895171f1256aad3e81dce193447955c202
Version: 866edc895171f1256aad3e81dce193447955c202
Version: 866edc895171f1256aad3e81dce193447955c202
Version: 866edc895171f1256aad3e81dce193447955c202
Version: 866edc895171f1256aad3e81dce193447955c202
Create a notification for this product.
Show details on NVD website


{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/media/i2c/ov2740.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "a163ee11345d8322321c28bd61631de32455b987",
              "status": "affected",
              "version": "866edc895171f1256aad3e81dce193447955c202",
              "versionType": "git"
            },
            {
              "lessThan": "3969b2ebc66039306f505c7c630c5530800f83c0",
              "status": "affected",
              "version": "866edc895171f1256aad3e81dce193447955c202",
              "versionType": "git"
            },
            {
              "lessThan": "fc33380ae06f438b652f66b9370b543976ac8a03",
              "status": "affected",
              "version": "866edc895171f1256aad3e81dce193447955c202",
              "versionType": "git"
            },
            {
              "lessThan": "7c405ee63447f14eefcfe12a18aa749abbd596ea",
              "status": "affected",
              "version": "866edc895171f1256aad3e81dce193447955c202",
              "versionType": "git"
            },
            {
              "lessThan": "2d899592ed7829d0d5140853bac4d58742a6b8af",
              "status": "affected",
              "version": "866edc895171f1256aad3e81dce193447955c202",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/media/i2c/ov2740.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "5.8"
            },
            {
              "lessThan": "5.8",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.10.*",
              "status": "unaffected",
              "version": "5.10.173",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.99",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.16",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.2.*",
              "status": "unaffected",
              "version": "6.2.3",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.3",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.10.173",
                  "versionStartIncluding": "5.8",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.99",
                  "versionStartIncluding": "5.8",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.16",
                  "versionStartIncluding": "5.8",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.2.3",
                  "versionStartIncluding": "5.8",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.3",
                  "versionStartIncluding": "5.8",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: ov2740: Fix memleak in ov2740_init_controls()\n\nThere is a kmemleak when testing the media/i2c/ov2740.c with bpf mock\ndevice:\n\nunreferenced object 0xffff8881090e19e0 (size 16):\n  comm \"51-i2c-ov2740\", pid 278, jiffies 4294781584 (age 23.613s)\n  hex dump (first 16 bytes):\n    00 f3 7c 0b 81 88 ff ff 80 75 6a 09 81 88 ff ff  ..|......uj.....\n  backtrace:\n    [\u003c000000004e9fad8f\u003e] __kmalloc_node+0x44/0x1b0\n    [\u003c0000000039c802f4\u003e] kvmalloc_node+0x34/0x180\n    [\u003c000000009b8b5c63\u003e] v4l2_ctrl_handler_init_class+0x11d/0x180\n[videodev]\n    [\u003c0000000038644056\u003e] ov2740_probe+0x37d/0x84f [ov2740]\n    [\u003c0000000092489f59\u003e] i2c_device_probe+0x28d/0x680\n    [\u003c000000001038babe\u003e] really_probe+0x17c/0x3f0\n    [\u003c0000000098c7af1c\u003e] __driver_probe_device+0xe3/0x170\n    [\u003c00000000e1b3dc24\u003e] device_driver_attach+0x34/0x80\n    [\u003c000000005a04a34d\u003e] bind_store+0x10b/0x1a0\n    [\u003c00000000ce25d4f2\u003e] drv_attr_store+0x49/0x70\n    [\u003c000000007d9f4e9a\u003e] sysfs_kf_write+0x8c/0xb0\n    [\u003c00000000be6cff0f\u003e] kernfs_fop_write_iter+0x216/0x2e0\n    [\u003c0000000031ddb40a\u003e] vfs_write+0x658/0x810\n    [\u003c0000000041beecdd\u003e] ksys_write+0xd6/0x1b0\n    [\u003c0000000023755840\u003e] do_syscall_64+0x38/0x90\n    [\u003c00000000b2cc2da2\u003e] entry_SYSCALL_64_after_hwframe+0x63/0xcd\n\nov2740_init_controls() won\u0027t clean all the allocated resources in fail\npath, which may causes the memleaks. Add v4l2_ctrl_handler_free() to\nprevent memleak."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2025-09-17T14:56:40.510Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/a163ee11345d8322321c28bd61631de32455b987"
        },
        {
          "url": "https://git.kernel.org/stable/c/3969b2ebc66039306f505c7c630c5530800f83c0"
        },
        {
          "url": "https://git.kernel.org/stable/c/fc33380ae06f438b652f66b9370b543976ac8a03"
        },
        {
          "url": "https://git.kernel.org/stable/c/7c405ee63447f14eefcfe12a18aa749abbd596ea"
        },
        {
          "url": "https://git.kernel.org/stable/c/2d899592ed7829d0d5140853bac4d58742a6b8af"
        }
      ],
      "title": "media: ov2740: Fix memleak in ov2740_init_controls()",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2023-53349",
    "datePublished": "2025-09-17T14:56:40.510Z",
    "dateReserved": "2025-09-16T16:08:59.566Z",
    "dateUpdated": "2025-09-17T14:56:40.510Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.1",
  "vulnerability-lookup:meta": {
    "nvd": "{\"cve\":{\"id\":\"CVE-2023-53349\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2025-09-17T15:15:38.827\",\"lastModified\":\"2025-09-18T13:43:34.310\",\"vulnStatus\":\"Awaiting Analysis\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\nmedia: ov2740: Fix memleak in ov2740_init_controls()\\n\\nThere is a kmemleak when testing the media/i2c/ov2740.c with bpf mock\\ndevice:\\n\\nunreferenced object 0xffff8881090e19e0 (size 16):\\n  comm \\\"51-i2c-ov2740\\\", pid 278, jiffies 4294781584 (age 23.613s)\\n  hex dump (first 16 bytes):\\n    00 f3 7c 0b 81 88 ff ff 80 75 6a 09 81 88 ff ff  ..|......uj.....\\n  backtrace:\\n    [\u003c000000004e9fad8f\u003e] __kmalloc_node+0x44/0x1b0\\n    [\u003c0000000039c802f4\u003e] kvmalloc_node+0x34/0x180\\n    [\u003c000000009b8b5c63\u003e] v4l2_ctrl_handler_init_class+0x11d/0x180\\n[videodev]\\n    [\u003c0000000038644056\u003e] ov2740_probe+0x37d/0x84f [ov2740]\\n    [\u003c0000000092489f59\u003e] i2c_device_probe+0x28d/0x680\\n    [\u003c000000001038babe\u003e] really_probe+0x17c/0x3f0\\n    [\u003c0000000098c7af1c\u003e] __driver_probe_device+0xe3/0x170\\n    [\u003c00000000e1b3dc24\u003e] device_driver_attach+0x34/0x80\\n    [\u003c000000005a04a34d\u003e] bind_store+0x10b/0x1a0\\n    [\u003c00000000ce25d4f2\u003e] drv_attr_store+0x49/0x70\\n    [\u003c000000007d9f4e9a\u003e] sysfs_kf_write+0x8c/0xb0\\n    [\u003c00000000be6cff0f\u003e] kernfs_fop_write_iter+0x216/0x2e0\\n    [\u003c0000000031ddb40a\u003e] vfs_write+0x658/0x810\\n    [\u003c0000000041beecdd\u003e] ksys_write+0xd6/0x1b0\\n    [\u003c0000000023755840\u003e] do_syscall_64+0x38/0x90\\n    [\u003c00000000b2cc2da2\u003e] entry_SYSCALL_64_after_hwframe+0x63/0xcd\\n\\nov2740_init_controls() won\u0027t clean all the allocated resources in fail\\npath, which may causes the memleaks. Add v4l2_ctrl_handler_free() to\\nprevent memleak.\"}],\"metrics\":{},\"references\":[{\"url\":\"https://git.kernel.org/stable/c/2d899592ed7829d0d5140853bac4d58742a6b8af\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/3969b2ebc66039306f505c7c630c5530800f83c0\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/7c405ee63447f14eefcfe12a18aa749abbd596ea\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/a163ee11345d8322321c28bd61631de32455b987\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/fc33380ae06f438b652f66b9370b543976ac8a03\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"}]}}"
  }
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.


Loading…

Loading…