In the Linux kernel, the following vulnerability has been resolved:
ubifs: Free memory for tmpfile name
When opening a ubifs tmpfile on an encrypted directory, function fscryptsetupfilename allocates memory for the name that is to be stored in the directory entry, but after the name has been copied to the directory entry inode, the memory is not freed.
When running kmemleak on it we see that it is registered as a leak. The report below is triggered by a simple program 'tmpfile' just opening a tmpfile:
unreferenced object 0xffff88810178f380 (size 32): comm "tmpfile", pid 509, jiffies 4294934744 (age 1524.742s) backtrace: _kmemcacheallocnode _kmalloc fscryptsetupfilename ubifstmpfile vfstmpfile pathopenat
Free this memory after it has been copied to the inode.
[
{
"id": "CVE-2023-53276-0f6b1259",
"deprecated": false,
"digest": {
"length": 1794.0,
"function_hash": "122018899802840607116337158363761942283"
},
"signature_version": "v1",
"target": {
"function": "do_tmpfile",
"file": "fs/ubifs/dir.c"
},
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@823f554747f8aafaa965fb2f3ae794110ed429ef"
},
{
"id": "CVE-2023-53276-14346507",
"deprecated": false,
"digest": {
"line_hashes": [
"179485240708185463449908210178238073129",
"219924631987440582280826817856573453170",
"248207782912101307450344934144789116641",
"12770679006172171587170158586331792069"
],
"threshold": 0.9
},
"signature_version": "v1",
"target": {
"file": "fs/ubifs/dir.c"
},
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8ad8c67a897e68426e85990ebfe0a7d1f71fc79f"
},
{
"id": "CVE-2023-53276-2d9772d6",
"deprecated": false,
"digest": {
"length": 1552.0,
"function_hash": "113198832918526313381770998147055545946"
},
"signature_version": "v1",
"target": {
"function": "ubifs_tmpfile",
"file": "fs/ubifs/dir.c"
},
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@1fb815b38bb31d6af9bd0540b8652a0d6fe6cfd3"
},
{
"id": "CVE-2023-53276-3b570e87",
"deprecated": false,
"digest": {
"length": 1782.0,
"function_hash": "278038915120874543366494344250290019422"
},
"signature_version": "v1",
"target": {
"function": "do_tmpfile",
"file": "fs/ubifs/dir.c"
},
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8ad8c67a897e68426e85990ebfe0a7d1f71fc79f"
},
{
"id": "CVE-2023-53276-48d96fcb",
"deprecated": false,
"digest": {
"length": 1794.0,
"function_hash": "122018899802840607116337158363761942283"
},
"signature_version": "v1",
"target": {
"function": "do_tmpfile",
"file": "fs/ubifs/dir.c"
},
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@107d481642c356a5668058066360fc473911e628"
},
{
"id": "CVE-2023-53276-4e0416a3",
"deprecated": false,
"digest": {
"length": 1552.0,
"function_hash": "113198832918526313381770998147055545946"
},
"signature_version": "v1",
"target": {
"function": "ubifs_tmpfile",
"file": "fs/ubifs/dir.c"
},
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@1e43d4284bdc3bd34bd770fea13910ac37ab0618"
},
{
"id": "CVE-2023-53276-99ea1032",
"deprecated": false,
"digest": {
"length": 1552.0,
"function_hash": "113198832918526313381770998147055545946"
},
"signature_version": "v1",
"target": {
"function": "ubifs_tmpfile",
"file": "fs/ubifs/dir.c"
},
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@fd197308c0e4f738c7ea687d5332035c5753881c"
},
{
"id": "CVE-2023-53276-9c7236cf",
"deprecated": false,
"digest": {
"line_hashes": [
"12890639121799694307520431855998072135",
"210069541433739461284490884286290555424",
"276039248500440087033864229809009443536",
"55932668319948242194664872994428658914"
],
"threshold": 0.9
},
"signature_version": "v1",
"target": {
"file": "fs/ubifs/dir.c"
},
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ce840284929b75dbbf062e0ce7fcb78a63b08b5e"
},
{
"id": "CVE-2023-53276-a6a7a880",
"deprecated": false,
"digest": {
"line_hashes": [
"12890639121799694307520431855998072135",
"115581041905266031651859946832773739627",
"252837997035472805482053483282005484058",
"295403998910775107554260916013845882626"
],
"threshold": 0.9
},
"signature_version": "v1",
"target": {
"file": "fs/ubifs/dir.c"
},
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@29738e1bcc799dd754711d4e4aab967f0c018175"
},
{
"id": "CVE-2023-53276-a8311792",
"deprecated": false,
"digest": {
"line_hashes": [
"179485240708185463449908210178238073129",
"219924631987440582280826817856573453170",
"248207782912101307450344934144789116641",
"12770679006172171587170158586331792069"
],
"threshold": 0.9
},
"signature_version": "v1",
"target": {
"file": "fs/ubifs/dir.c"
},
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@823f554747f8aafaa965fb2f3ae794110ed429ef"
},
{
"id": "CVE-2023-53276-b0743ac1",
"deprecated": false,
"digest": {
"length": 1552.0,
"function_hash": "113198832918526313381770998147055545946"
},
"signature_version": "v1",
"target": {
"function": "ubifs_tmpfile",
"file": "fs/ubifs/dir.c"
},
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@29738e1bcc799dd754711d4e4aab967f0c018175"
},
{
"id": "CVE-2023-53276-b09746f4",
"deprecated": false,
"digest": {
"line_hashes": [
"179485240708185463449908210178238073129",
"219924631987440582280826817856573453170",
"248207782912101307450344934144789116641",
"12770679006172171587170158586331792069"
],
"threshold": 0.9
},
"signature_version": "v1",
"target": {
"file": "fs/ubifs/dir.c"
},
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b8f444a4fadfb5070ed7e298e0a5ceb4a18014f3"
},
{
"id": "CVE-2023-53276-b22edfe5",
"deprecated": false,
"digest": {
"length": 1491.0,
"function_hash": "331799287722229390572669537015358492122"
},
"signature_version": "v1",
"target": {
"function": "ubifs_tmpfile",
"file": "fs/ubifs/dir.c"
},
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ce840284929b75dbbf062e0ce7fcb78a63b08b5e"
},
{
"id": "CVE-2023-53276-b5fc1883",
"deprecated": false,
"digest": {
"line_hashes": [
"179485240708185463449908210178238073129",
"219924631987440582280826817856573453170",
"248207782912101307450344934144789116641",
"12770679006172171587170158586331792069"
],
"threshold": 0.9
},
"signature_version": "v1",
"target": {
"file": "fs/ubifs/dir.c"
},
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@107d481642c356a5668058066360fc473911e628"
},
{
"id": "CVE-2023-53276-b94fdc99",
"deprecated": false,
"digest": {
"line_hashes": [
"12890639121799694307520431855998072135",
"115581041905266031651859946832773739627",
"252837997035472805482053483282005484058",
"295403998910775107554260916013845882626"
],
"threshold": 0.9
},
"signature_version": "v1",
"target": {
"file": "fs/ubifs/dir.c"
},
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@fd197308c0e4f738c7ea687d5332035c5753881c"
},
{
"id": "CVE-2023-53276-bf09fad3",
"deprecated": false,
"digest": {
"line_hashes": [
"12890639121799694307520431855998072135",
"115581041905266031651859946832773739627",
"252837997035472805482053483282005484058",
"295403998910775107554260916013845882626"
],
"threshold": 0.9
},
"signature_version": "v1",
"target": {
"file": "fs/ubifs/dir.c"
},
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@1e43d4284bdc3bd34bd770fea13910ac37ab0618"
},
{
"id": "CVE-2023-53276-de54a508",
"deprecated": false,
"digest": {
"length": 1794.0,
"function_hash": "122018899802840607116337158363761942283"
},
"signature_version": "v1",
"target": {
"function": "do_tmpfile",
"file": "fs/ubifs/dir.c"
},
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b8f444a4fadfb5070ed7e298e0a5ceb4a18014f3"
},
{
"id": "CVE-2023-53276-e88ee5aa",
"deprecated": false,
"digest": {
"line_hashes": [
"12890639121799694307520431855998072135",
"115581041905266031651859946832773739627",
"252837997035472805482053483282005484058",
"295403998910775107554260916013845882626"
],
"threshold": 0.9
},
"signature_version": "v1",
"target": {
"file": "fs/ubifs/dir.c"
},
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@1fb815b38bb31d6af9bd0540b8652a0d6fe6cfd3"
}
]