Exploit database

GH-67340f13e331ad187786f604c1fd57ca

nonamecoder/cve-2023-22906

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2023-22906

1 source

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.

Repository files61Next files →

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

html-report/s13_weak_func_check/vul_func_4_sprintf-mi_vif.ko.html

HTML · 15,875 bytes
<!-- 
EMBA - EMBEDDED LINUX ANALYZER

Copyright 2020-2023 Siemens AG
Copyright 2020-2023 Siemens Energy AG

EMBA comes with ABSOLUTELY NO WARRANTY. This is free software, and you are
welcome to redistribute it under the terms of the GNU General Public License.
See LICENSE file for usage of this software.

EMBA is licensed under GPLv3

Author(s): Pascal Eckmann
Contributor(s): Michael Messner, Stefan Haboeck
-->

<!-- Used icons: https://github.com/CoreyGinnivan/system-uicons -->
 
<!DOCTYPE html>
<html lang="en">
<head>
  <title>EMBA firmware report</title>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="../style/style.css" type="text/css">
  <link rel="icon" type="image/png" href="../style/favicon.png">
</head>
<body>

<div id="sidenav" class="side">
  <div id="logo">
    <a class="inherit" href="../index.html"><img class="inherit" id="logoImage" src="../style/emba.svg" alt="logo"></a>
  </div>
  <div id="nav">
      <a id="embark" class="hidden" href="http://24.199.64.69:8000/html-report/s13_weak_func_check/{{&#32;embarkBackUrl&#32;}}">&laquo; Back to EMBArk</a> <!-- nosem -->
      <a class="backButton" href="../index.html">&laquo; Back to main</a>
<a class="modul" href="../s13_weak_func_check.html" title="./../s13_weak_func_check.html" >&laquo; Back to s13_weak_func_check</a>
      <!-- navigation start -->
      <!-- navigation end -->
      <input id="expand" class="expand_njs hidden" type="button" value="More results:" onclick="this.value=this.value=='+ Show more results'?'- Hide more results':'+ Show more results';">
      <div class="expand_area">
        <!-- etc start -->
        <!-- etc end -->
      </div>
  </div>
  <a href="http://24.199.64.69:8000/html-report/s13_weak_func_check/TIMELINK"><div id="buttonTimeInvisible" class="rectButton"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" focusable="false" width="40" height="40" style="-ms-transform: rotate(360deg); -webkit-transform: rotate(360deg); transform: rotate(360deg);" preserveAspectRatio="xMidYMid meet" viewBox="0 0 21 21"><g fill="none" fill-rule="evenodd" stroke="white" stroke-linecap="round" stroke-linejoin="round" transform="matrix(-1 0 0 1 19 2)"><circle cx="8.5" cy="8.5" r="8"/><path d="M8.5 5.5v4H5"/></g></svg></div></a>
  <div id="buttonSizer" class="rectButton buttonClose" onclick="buttonNav()"></div>
</div>
<div id="main" class="main">
  <!-- content start -->
<pre>[</span><span class="orange">*</span>] Binary protection state of </span><span class="orange">mi_vif.ko</span></pre>
<br />
<pre>  </pre>
<pre>  	<span class="red">No RELRO</span>       <span class="green">Canary found</span>      <span class="red">NX disabled</span>  <span class="orange">REL</span>          <span class="green">No RPATH</span>     <span class="green">No RUNPATH</span>   <span class="red">Symbols</span></pre>
<br />
<pre></span></pre>
<pre>[</span><span class="orange">*</span>] Function </span><span class="orange">sprintf</span> tear down of </span><span class="orange">mi_vif.ko</span></pre>
<br />
<pre>    2166:	990f      	ldr	r1, [sp, #60]	; 0x3c</pre>
<pre>    2168:	fba2 2303 	umull	r2, r3, r2, r3</pre>
<pre>    216c:	099a      	lsrs	r2, r3, #6</pre>
<pre>    216e:	2300      	movs	r3, #0</pre>
<pre>    2170:	469c      	mov	ip, r3</pre>
<pre>    2172:	4b3e      	ldr	r3, [pc, #248]	; (226c &lt;_MI_VIF_IMPL_MiSysAlloc+0x2e4&gt;)</pre>
<pre>    2174:	4693      	mov	fp, r2</pre>
<pre>    2176:	fbe3 bc01 	umlal	fp, ip, r3, r1</pre>
<pre>    217a:	9b0b      	ldr	r3, [sp, #44]	; 0x2c</pre>
<pre>    217c:	f8d3 6938 	ldr.w	r6, [r3, #2360]	; 0x938</pre>
<pre>    2180:	e9cd bc08 	strd	fp, ip, [sp, #32]</pre>
<pre>    2184:	f109 0c61 	add.w	ip, r9, #97	; 0x61</pre>
<pre>    2188:	b9ce      	cbnz	r6, 21be &lt;_MI_VIF_IMPL_MiSysAlloc+0x236&gt;</pre>
<pre>    218a:	e9dd 2308 	ldrd	r2, r3, [sp, #32]</pre>
<pre>    218e:	a811      	add	r0, sp, #68	; 0x44</pre>
<pre>    2190:	4937      	ldr	r1, [pc, #220]	; (2270 &lt;_MI_VIF_IMPL_MiSysAlloc+0x2e8&gt;)</pre>
<pre>    2192:	e88d 0180 	stmia.w	sp, {r7, r8}</pre>
<pre>    2196:	e9cd 2302 	strd	r2, r3, [sp, #8]</pre>
<pre>    219a:	4662      	mov	r2, ip</pre>
<pre>    219c:	9b0a      	ldr	r3, [sp, #40]	; 0x28</pre>
<pre><span class="red">    219e:	f7ff fffe 	bl	0 &lt;sprintf&gt</span></span></pre>
<pre>    21a2:	4633      	mov	r3, r6</pre>
<pre>    21a4:	462a      	mov	r2, r5</pre>
<pre>    21a6:	e9dd 0104 	ldrd	r0, r1, [sp, #16]</pre>
<pre>    21aa:	f7ff fffe 	bl	0 &lt</span>i_sys_Vmap&gt;</pre>
<pre>    21ae:	462a      	mov	r2, r5</pre>
<pre>    21b0:	4606      	mov	r6, r0</pre>
<pre>    21b2:	a811      	add	r0, sp, #68	; 0x44</pre>
<pre>    21b4:	4631      	mov	r1, r6</pre>
<pre>    21b6:	f7ff ff0d 	bl	1fd4 &lt;_MI_VIF_IMPL_MiSysAlloc+0x4c&gt;</pre>
<pre>    21ba:	4630      	mov	r0, r6</pre>
<pre>    21bc:	e043      	b.n	2246 &lt;_MI_VIF_IMPL_MiSysAlloc+0x2be&gt;</pre>
<pre>    21be:	e9dd 1208 	ldrd	r1, r2, [sp, #32]</pre>
<pre>    21c2:	a811      	add	r0, sp, #68	; 0x44</pre>
<pre>    21c4:	6e23      	ldr	r3, [r4, #96]	; 0x60</pre>
<pre>    21c6:	f8b9 600a 	ldrh.w	r6, [r9, #10]</pre>
<pre>    21ca:	e9cd 1202 	strd	r1, r2, [sp, #8]</pre>
<pre>    21ce:	4662      	mov	r2, ip</pre>
<pre>    21d0:	4928      	ldr	r1, [pc, #160]	; (2274 &lt;_MI_VIF_IMPL_MiSysAlloc+0x2ec&gt;)</pre>
<pre>    21d2:	e88d 0180 	stmia.w	sp, {r7, r8}</pre>
<pre>    21d6:	435e      	muls	r6, r3</pre>
<pre>    21d8:	f8cd c034 	str.w	ip, [sp, #52]	; 0x34</pre>
<pre><span class="red">    21dc:	f7ff fffe 	bl	0 &lt;sprintf&gt</span></span></pre>
<pre>    21e0:	462a      	mov	r2, r5</pre>
<pre>    21e2:	2300      	movs	r3, #0</pre>
<pre>--</pre>
<pre>    21ec:	4632      	mov	r2, r6</pre>
<pre>    21ee:	4603      	mov	r3, r0</pre>
<pre>    21f0:	a811      	add	r0, sp, #68	; 0x44</pre>
<pre>    21f2:	4619      	mov	r1, r3</pre>
<pre>    21f4:	930c      	str	r3, [sp, #48]	; 0x30</pre>
<pre>    21f6:	f7ff feed 	bl	1fd4 &lt;_MI_VIF_IMPL_MiSysAlloc+0x4c&gt;</pre>
<pre>    21fa:	9b0c      	ldr	r3, [sp, #48]	; 0x30</pre>
<pre>    21fc:	4618      	mov	r0, r3</pre>
<pre>    21fe:	f7ff fffe 	bl	0 &lt</span>i_sys_UnVmap&gt;</pre>
<pre>    2202:	8f63      	ldrh	r3, [r4, #58]	; 0x3a</pre>
<pre>    2204:	491c      	ldr	r1, [pc, #112]	; (2278 &lt;_MI_VIF_IMPL_MiSysAlloc+0x2f0&gt;)</pre>
<pre>    2206:	9300      	str	r3, [sp, #0]</pre>
<pre>    2208:	a811      	add	r0, sp, #68	; 0x44</pre>
<pre>    220a:	6a63      	ldr	r3, [r4, #36]	; 0x24</pre>
<pre>    220c:	f8dd c034 	ldr.w	ip, [sp, #52]	; 0x34</pre>
<pre>    2210:	9301      	str	r3, [sp, #4]</pre>
<pre>    2212:	e9dd 2308 	ldrd	r2, r3, [sp, #32]</pre>
<pre>    2216:	e9cd 2302 	strd	r2, r3, [sp, #8]</pre>
<pre>    221a:	4662      	mov	r2, ip</pre>
<pre>    221c:	6e23      	ldr	r3, [r4, #96]	; 0x60</pre>
<pre><span class="red">    221e:	f7ff fffe 	bl	0 &lt;sprintf&gt</span></span></pre>
<pre>    2222:	4632      	mov	r2, r6</pre>
<pre>    2224:	2300      	movs	r3, #0</pre>
<pre>--</pre>
<pre>    25d2:	2b0b      	cmp	r3, #11</pre>
<pre>    25d4:	d90e      	bls.n	25f4 &lt;VIF_TRANS_PIXEL_TOSTRING+0x158&gt;</pre>
<pre>    25d6:	4927      	ldr	r1, [pc, #156]	; (2674 &lt;VIF_TRANS_PIXEL_TOSTRING+0x1d8&gt;)</pre>
<pre>    25d8:	3c50      	subs	r4, #80	; 0x50</pre>
<pre>    25da:	4b19      	ldr	r3, [pc, #100]	; (2640 &lt;VIF_TRANS_PIXEL_TOSTRING+0x1a4&gt;)</pre>
<pre>    25dc:	2c0b      	cmp	r4, #11</pre>
<pre>    25de:	bf88      	it	hi</pre>
<pre>    25e0:	460b      	movhi	r3, r1</pre>
<pre>    25e2:	e008      	b.n	25f6 &lt;VIF_TRANS_PIXEL_TOSTRING+0x15a&gt;</pre>
<pre>    25e4:	4b24      	ldr	r3, [pc, #144]	; (2678 &lt;VIF_TRANS_PIXEL_TOSTRING+0x1dc&gt;)</pre>
<pre>    25e6:	e006      	b.n	25f6 &lt;VIF_TRANS_PIXEL_TOSTRING+0x15a&gt;</pre>
<pre>    25e8:	4b24      	ldr	r3, [pc, #144]	; (267c &lt;VIF_TRANS_PIXEL_TOSTRING+0x1e0&gt;)</pre>
<pre>    25ea:	e004      	b.n	25f6 &lt;VIF_TRANS_PIXEL_TOSTRING+0x15a&gt;</pre>
<pre>    25ec:	4b24      	ldr	r3, [pc, #144]	; (2680 &lt;VIF_TRANS_PIXEL_TOSTRING+0x1e4&gt;)</pre>
<pre>    25ee:	e002      	b.n	25f6 &lt;VIF_TRANS_PIXEL_TOSTRING+0x15a&gt;</pre>
<pre>    25f0:	4b24      	ldr	r3, [pc, #144]	; (2684 &lt;VIF_TRANS_PIXEL_TOSTRING+0x1e8&gt;)</pre>
<pre>    25f2:	e000      	b.n	25f6 &lt;VIF_TRANS_PIXEL_TOSTRING+0x15a&gt;</pre>
<pre>    25f4:	4b24      	ldr	r3, [pc, #144]	; (2688 &lt;VIF_TRANS_PIXEL_TOSTRING+0x1ec&gt;)</pre>
<pre>    25f6:	4628      	mov	r0, r5</pre>
<pre>    25f8:	4924      	ldr	r1, [pc, #144]	; (268c &lt;VIF_TRANS_PIXEL_TOSTRING+0x1f0&gt;)</pre>
<pre><span class="red">    25fa:	f7ff fffe 	bl	0 &lt;sprintf&gt</span></span></pre>
<pre>    25fe:	bd70      	pop	{r4, r5, r6, pc}</pre>
<pre>    2600:	00000dc7 	.word	0x00000dc7</pre>
<br />
<pre></span></pre>
<pre>[</span><span class="orange">*</span>] Function </span><span class="orange">sprintf</span> used </span><span class="orange">4</span> times </span><span class="orange">mi_vif.ko</span></pre>
<br />
  <!-- content end -->
</div>

<a href="https://github.com/e-m-b-a/emba" title="github.com/e-m-b-a/emba" target="_blank">
  <div id="buttonInfo" class="rectButtonVisible">
    <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" focusable="false" width="40" height="40" style="-ms-transform: rotate(360deg); -webkit-transform: rotate(360deg); transform: rotate(360deg);" preserveAspectRatio="xMidYMid meet" viewBox="0 0 21 21"><g fill="none" fill-rule="evenodd" transform="translate(2 2)"><g stroke="white" stroke-linecap="round" stroke-linejoin="round"><circle cx="8.5" cy="8.5" r="8"/><path d="M8.5 12.5v-4h-1"/><path d="M7.5 12.5h2"/></g><circle cx="8.5" cy="5.5" fill="white" r="1"/></g></svg>
  </div>
</a>
<div id="buttonBack" class="nonClickable rectButtonVisible"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" focusable="false" width="40" height="40" style="-ms-transform: rotate(360deg); -webkit-transform: rotate(360deg); transform: rotate(360deg);" preserveAspectRatio="xMidYMid meet" viewBox="0 0 21 21"><path d="M9.5 14.5l4-4l-4-4" fill="none" stroke="#444" stroke-linecap="round" stroke-linejoin="round"/></svg></div>
<div id="buttonForward" class="nonClickable rectButtonVisible"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" focusable="false" width="40" height="40" style="-ms-transform: rotate(360deg); -webkit-transform: rotate(360deg); transform: rotate(360deg);" preserveAspectRatio="xMidYMid meet" viewBox="0 0 21 21"><path d="M11.5 14.5l-4-4l4-4" fill="none" stroke="#444" stroke-linecap="round" stroke-linejoin="round"/></svg></div> 
<div id="buttonDown" class="rectButton" onclick="scrollDown()"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" focusable="false" width="40" height="40" style="-ms-transform: rotate(360deg); -webkit-transform: rotate(360deg); transform: rotate(360deg);" preserveAspectRatio="xMidYMid meet" viewBox="0 0 21 21"><g fill="none" fill-rule="evenodd" stroke="#fff" stroke-linecap="round" stroke-linejoin="round"><path d="M14.5 6.5l-4 4l-4-4"/><path d="M14.5 10.5l-4 4l-4-4"/></g></svg></div>
<div id="buttonUp" class="rectButton" onclick="scrollUp()"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" focusable="false" width="40" height="40" style="-ms-transform: rotate(360deg); -webkit-transform: rotate(360deg); transform: rotate(360deg);" preserveAspectRatio="xMidYMid meet" viewBox="0 0 21 21"><g fill="none" fill-rule="evenodd" stroke="#fff" stroke-linecap="round" stroke-linejoin="round"><path d="M6.5 14.5l4-4l4 4"/><path d="M6.5 10.5l4-4l4 4"/></g></svg></div> 

<script>
window.onload = function () {
  var buttons = document.getElementsByClassName("rectButton");
  for (let i=0; i<buttons.length; i++) {
    buttons[i].style.visibility = "visible";
  }
  var buttonDown = document.getElementById("buttonDown");
  buttonDown.classList.add('rectButtonVisible');
  buttonDown.classList.remove('rectButton');

  var buttonUp = document.getElementById("buttonUp");
  buttonUp.classList.add('rectButtonVisible');
  buttonUp.classList.remove('rectButton');
    
  var buttonSizer = document.getElementById("buttonSizer");
  buttonSizer.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" focusable="false" width="40" height="40" style="-ms-transform: rotate(360deg); -webkit-transform: rotate(360deg); transform: rotate(360deg);" preserveAspectRatio="xMidYMid meet" viewBox="0 0 21 21"><g fill="none" fill-rule="evenodd" stroke="white" stroke-linecap="round" stroke-linejoin="round"><path d="M9.5 16.5v-4.978l-5-.022"/><path d="M18.5 2.5l-7 7"/><path d="M16.5 9.5l-5 .023V4.5"/><path d="M9.5 11.5l-7 7"/></g></svg>';
  if (document.getElementById("buttonTime") !== null) {
    var buttonTime = document.getElementById("buttonTime");
    buttonTime.style.bottom = "50px";
  }
  document.getElementById("expand").value = "+ Show more results";
  document.getElementById("expand").className += " expand";
  var embarkButton = document.getElementById("embark");
  if ( !(embarkButton.href.includes("embarkBackUrl")) ) {
    embarkButton.classList.remove('hidden');
    document.getElementById("logoImage").src = "./../style/embark.svg";
    document.getElementById("logo").style.background = "#2d2d2d";
  }
}

function openNav() {
  document.getElementById("sidenav").style.width = "250px";
  document.getElementById("main").style.marginLeft = "250px";
  document.getElementById("nav").style.visibility = "visible";
}

function closeNav() {
  document.getElementById("sidenav").style.width = "50px";
  document.getElementById("sidenav").scrollTop = 0;
  document.getElementById("main").style.marginLeft = "50px";
  document.getElementById("nav").style.visibility = "hidden";
}

function scrollDown() {
  window.scrollTo(0,document.body.scrollHeight);
}

function scrollUp() {
  window.scrollTo(0,0);
}

function buttonNav() {
  var button = document.getElementById("buttonSizer");
  if ( button.classList.contains('buttonOpen') ) {
    button.classList.remove('buttonOpen');
    button.classList.add('buttonClose');
    button.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" focusable="false" width="40" height="40" style="-ms-transform: rotate(360deg); -webkit-transform: rotate(360deg); transform: rotate(360deg);" preserveAspectRatio="xMidYMid meet" viewBox="0 0 21 21"><g fill="none" fill-rule="evenodd" stroke="white" stroke-linecap="round" stroke-linejoin="round"><path d="M9.5 16.5v-4.978l-5-.022"/><path d="M18.5 2.5l-7 7"/><path d="M16.5 9.5l-5 .023V4.5"/><path d="M9.5 11.5l-7 7"/></g></svg>';
    openNav();
  } else if( button.classList.contains('buttonClose') ) {
    button.classList.remove('buttonClose');
    button.classList.add('buttonOpen');
    button.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" focusable="false" width="40" height="40" style="-ms-transform: rotate(360deg); -webkit-transform: rotate(360deg); transform: rotate(360deg);" preserveAspectRatio="xMidYMid meet" viewBox="0 0 21 21"><g fill="none" fill-rule="evenodd" stroke="white" stroke-linecap="round" stroke-linejoin="round"><path d="M18.5 7.5v-5h-5"/><path d="M18.5 2.5l-6 5.929"/><path d="M7.5 18.5l-5 .023V13.5"/><path d="M8.5 12.5l-6 6"/></g></svg>';
    closeNav();
  };
}

document.onkeydown = function(e) {
    switch (e.keyCode) {
      case 37:
        document.getElementById("buttonForward").parentNode.click(); 
        break;
      case 39:
        document.getElementById("buttonBack").parentNode.click();       
        break;
    }
};
</script>

</body>
</html>