<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.3dbrew.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Yellows8</id>
	<title>3dbrew - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://www.3dbrew.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Yellows8"/>
	<link rel="alternate" type="text/html" href="https://www.3dbrew.org/wiki/Special:Contributions/Yellows8"/>
	<updated>2026-04-09T00:34:51Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>https://www.3dbrew.org/w/index.php?title=Talk:Main_Page&amp;diff=22574</id>
		<title>Talk:Main Page</title>
		<link rel="alternate" type="text/html" href="https://www.3dbrew.org/w/index.php?title=Talk:Main_Page&amp;diff=22574"/>
		<updated>2024-06-03T12:35:59Z</updated>

		<summary type="html">&lt;p&gt;Yellows8: Reverted edits by Hashemmoori (talk) to last revision by EvilFlight&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;So how about a [http://wiisixtyfour.webs.com/images/3dsbrew-bg4545.png logo]? --[[User:Bg4545|wiisixtyfour]] 06:59, 1 April 2011 (CEST)&lt;br /&gt;
&lt;br /&gt;
Great one, let&#039;s put it as default logo ! --[[User:GeekShadow|GeekShadow]] 09:37, 1 April 2011 (CEST)&lt;br /&gt;
&lt;br /&gt;
Here&#039;s one I made, which doesn&#039;t use any official artwork/photography: [http://dl.dropbox.com/u/1077900/Graphics/3dbrew.png PNG] [http://dl.dropbox.com/u/1077900/Graphics/3dbrew.svg SVG] --[[User:BHSPitMonkey|BHSPitMonkey]] 05:36, 7 April 2011 (CEST)&lt;br /&gt;
&lt;br /&gt;
How about making the default skin [http://3dbrew.org/w/index.php?title=Main_Page&amp;amp;useskin=monobook MonoBook]?, I like the it better. --[[User:Elisherer|Elisherer]] 10:58, 6 October 2011 (CEST)&lt;br /&gt;
&lt;br /&gt;
I want to dump RAM.What can I do now?How can I learn? --[[User:Matyapiro31|Matyapiro31]] 16:30, 20 November 2011 (CET)&lt;br /&gt;
:Sorry, this is not the correct page to talk about that. However, it&#039;s a good topic for our new forum! http://n-dev.net/index.php --[[User:Lazymarek9614|Lazymarek9614]] 17:43, 20 November 2011 (CET)&lt;br /&gt;
&lt;br /&gt;
-Hello, I would like to translate this great wiki into French, how should I do ? Thanks :)&lt;br /&gt;
:I guess each page you want to translate you need to edit the page&#039;s link with a &#039;/&#039; (slash) after it and the language code (fr for french i think), for instance edit the page http://www.3dbrew.org/wiki/Main_Page/Fr and then put a link on the bottom next to Japanese.. --[[User:Elisherer|Elisherer]] 17:49, 21 December 2011 (CET)&lt;br /&gt;
::You should take a look [http://www.mediawiki.org/wiki/Template:Languages here]...Apperantly we don&#039;t have the needed template for it to work automaticaly maybe we need the admin to install some kind of extension to support this type of thing. --[[User:Elisherer|Elisherer]] 18:59, 21 December 2011 (CET)&lt;br /&gt;
&lt;br /&gt;
-Yes, it would be more practical. For now, I&#039;ll continue translating like that, please tell me when the plugin is added.&lt;br /&gt;
---I added a language selection bar at the bottom of each main page.&lt;br /&gt;
&lt;br /&gt;
I cannot have be accessing for a week.Why?--Matyapiro31 12:51, 19 April 2012 (CEST)&lt;br /&gt;
== SVG upload ==&lt;br /&gt;
&lt;br /&gt;
Hey neimod, can you enable svg uploading? I want to upload graphics for the buttons [http://sherer.co.il/svg/ I made] (for future homebrew and stuff)--[[User:Elisherer|Elisherer]] 14:41, 9 February 2012 (CET)&lt;br /&gt;
: You can address this issue to [[User:Mha|Mha]] (mha on irc) --[[User:Neimod|Neimod]] 19:04, 9 February 2012 (CET)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Game Screenshots...&lt;br /&gt;
&lt;br /&gt;
Hey guys how can i export the photos from DoA:D from 3DS to PC i have the right file but on mc if i change to .jpg or mpo it does not open...&lt;br /&gt;
&lt;br /&gt;
== Does anyone know how to tell an installed/braindumped title&#039;s version? ==&lt;br /&gt;
&lt;br /&gt;
I&#039;m on 9.3 and have hax. I want to know this so I can contribute versions to to the title list. --[[User:Hiccup|Hiccup]] ([[User talk:Hiccup|talk]]) 14:57, 6 January 2016 (CET)&lt;br /&gt;
:1.If you have NAND Xorpad you can dump and decrypt to get the .[[TMD]] files and read the version from it. 2.Use [[AM]] service, and use &amp;quot;AM_ListTitles&amp;quot; from libctru, structure &amp;quot;AM_TitleEntry&amp;quot; includes the version. 3.Most versions of System Titles are fetched via System Update SOAP response, thanks to [[User:Yellows8|Yellows8]] for that.&lt;br /&gt;
:BTW I suggest you to ask questions on 4dsdev.org or IRC(EFNET.org#3dsdev) thus it may be dealt faster. --[[User:Syphurith|Syphurith]] ([[User talk:Syphurith|talk]]) 11:35, 7 January 2016 (CET)&lt;br /&gt;
&lt;br /&gt;
== question ==&lt;br /&gt;
&lt;br /&gt;
Can we get an actual board to discuss things instead of a shitty wiki that&#039;s setup like this? --[[User:NintendoFan|NintendoFan]] ([[User talk:NintendoFan|talk]]) 09:36, 3 May 2016 (CEST)&lt;br /&gt;
&lt;br /&gt;
: It says so in the previous discussion on this page :P [4dsdev.org] --[[User:Ryccardo|Ryccardo]] ([[User talk:Ryccardo|talk]]) 09:52, 3 May 2016 (CEST)&lt;br /&gt;
&lt;br /&gt;
:: 4dsdev looks quite dead with a sticky about merging that is 5 months old. :P GBAtemp [http://gbatemp.net/categories/nintendo-3ds-discussions.198/] is quite active, why not there? --[[User:MKody|MKody]] ([[User talk:MKody|talk]]) 10:40, 3 May 2016 (CEST)&lt;br /&gt;
&lt;br /&gt;
::: Eh, while GBATemp is a good place I&#039;d much rather have a board that&#039;s specifically dedicated to 3DS modding, not just modding in general. Also, I&#039;d much rather start fresh with a new board than trying to revive a dead community that&#039;s been merged into some other board. --[[User:NintendoFan|NintendoFan]] ([[User talk:NintendoFan|talk]]) 07:58, 6 May 2016 (CEST)&lt;br /&gt;
&lt;br /&gt;
== Uploads are broken ==&lt;br /&gt;
&lt;br /&gt;
MediaWiki throws a MWException whenever I try to upload an image file. Perhaps uploads are not configured properly? —&#039;&#039;&#039;&amp;lt;span style=&amp;quot;text-shadow:0 0 3px #111&amp;quot;&amp;gt;[[User:Nicholatian|&amp;lt;span style=&amp;quot;color:#ddd&amp;quot;&amp;gt;nicho&amp;lt;/span&amp;gt;]][[User_talk:Nicholatian|&amp;lt;span style=&amp;quot;color:#ddd&amp;quot;&amp;gt;latian&amp;lt;/span&amp;gt;]]&#039;&#039;[[Special:Contributions/Nicholatian|&amp;lt;span style=&amp;quot;color:#c43&amp;quot;&amp;gt;fury&amp;lt;/span&amp;gt;]]&#039;&#039;&amp;lt;/span&amp;gt;&#039;&#039;&#039; 20:09, 15 June 2016 (CEST)&lt;br /&gt;
&lt;br /&gt;
== Seedminer? == &lt;br /&gt;
&lt;br /&gt;
There should be some documentation about seedminer on this wiki.&lt;br /&gt;
&lt;br /&gt;
Please check the 3ds system flaws page: search &amp;quot;movable.sed keyY vulnerable to brute-force&amp;quot;&lt;/div&gt;</summary>
		<author><name>Yellows8</name></author>
	</entry>
	<entry>
		<id>https://www.3dbrew.org/w/index.php?title=3DS_System_Flaws&amp;diff=22234</id>
		<title>3DS System Flaws</title>
		<link rel="alternate" type="text/html" href="https://www.3dbrew.org/w/index.php?title=3DS_System_Flaws&amp;diff=22234"/>
		<updated>2023-06-16T14:09:29Z</updated>

		<summary type="html">&lt;p&gt;Yellows8: /* General/CTRSDK */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Exploits are used to execute unofficial code (homebrew) on the Nintendo 3DS. This page is a list of publicly known system flaws, for userland applications/applets flaws see [[3DS_Userland_Flaws|here]].&lt;br /&gt;
&lt;br /&gt;
=Stale / Rejected Efforts=&lt;br /&gt;
* In the early days of 3DS hacking, Neimod was working on a RAM dumping setup for a while. He has de-soldered the 3DS&#039;s RAM chip and hooked it and the RAM pinouts on the 3DS&#039;s PCB up to a custom RAM dumping setup. He &#039;&#039;has&#039;&#039; published photos showing his setup to be working quite well, with the 3DS successfully booting up, but however, his flickr stream is now private along with most of his work and this method has been unreleased. RAM dumping can be done through homebrew now, making this method obsolete regardless.&lt;br /&gt;
&lt;br /&gt;
==Tips and info==&lt;br /&gt;
The 3DS uses the XN feature of the ARM11 processor. There&#039;s no official way from applications to enable executable permission for memory containing arbitrary unsigned code(there&#039;s a [[SVC]] for this, but only [[RO_Services|RO-module]] has access to it). A usable userland exploit would still be useful: you could only do return-oriented-programming with it initially. From ROP one could then exploit system flaw(s), see below.&lt;br /&gt;
&lt;br /&gt;
SD card [[extdata]] and SD savegames can be attacked, for consoles where the console-unique [[Nand/private/movable.sed|movable.sed]] was dumped(accessing SD data is far easier by running code on the target 3DS however).&lt;br /&gt;
&lt;br /&gt;
=System flaws=&lt;br /&gt;
== Hardware ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
!  Summary&lt;br /&gt;
!  Description&lt;br /&gt;
!  Fixed with hardware model/revision&lt;br /&gt;
!  Newest hardware model/revision this flaw was checked for&lt;br /&gt;
!  Timeframe this was discovered&lt;br /&gt;
!  Discovered by&lt;br /&gt;
|-&lt;br /&gt;
| ARM9/ARM11 bootrom vectors point at uninitialized RAM&lt;br /&gt;
| ARM9&#039;s and ARM11&#039;s exception vectors are hardcoded to point at the CPU&#039;s internal memory (0x08000000 region for ARM9, AXIWRAM for ARM11). While the bootrom does set them up to point to an endless loop at some point during boot, it does not do so immediately. As such, a carefully-timed fault injection (via hardware) to trigger an exception (such as an invalid instruction) will cause execution to fall into ARM9 RAM. &lt;br /&gt;
Since RAM isn&#039;t cleared on boot (see below), one can immediately start execution of their own code here to dump bootrom, OTP, etc.&lt;br /&gt;
The ARM9 bootrom does the following at reset:  reset vector branches to another instruction, then branches to bootrom+0x8000. Hence, there&#039;s no way to know for certain when exactly the ARM9 exception-vector data stored in memory gets initialized.&lt;br /&gt;
&lt;br /&gt;
The vulnerable timing range is about 100 CPU cycles after they start (which happens after the PLLs have stabilized after power-up). A glitch needs to be injected during one of these 100 cycles for the attack to succeed.&lt;br /&gt;
&lt;br /&gt;
It has been exploited by derrek to dump the ARM9 bootrom as of Summer 2015.&lt;br /&gt;
| None: all available 3DS models at the time of writing have the exact same ARM9/ARM11 bootrom for the unprotected areas.&lt;br /&gt;
| New3DS&lt;br /&gt;
| End of February 2014&lt;br /&gt;
| [[User:Derrek|derrek]], WulfyStylez (May 2015) independently&lt;br /&gt;
|-&lt;br /&gt;
| Missing AES key clearing&lt;br /&gt;
| The hardware AES engine does not clear keys when doing a hard reset/reboot.&lt;br /&gt;
| None&lt;br /&gt;
| New3DS&lt;br /&gt;
| August 2014&lt;br /&gt;
| Mathieulh/Others&lt;br /&gt;
|-&lt;br /&gt;
| No RAM clearing on reboots&lt;br /&gt;
| On an MCU-triggered reboot all RAM including FCRAM/ARM9 memory/AXIWRAM/VRAM keeps its contents.&lt;br /&gt;
| None&lt;br /&gt;
| New3DS&lt;br /&gt;
| March 2014&lt;br /&gt;
| [[User:Derrek|derrek]]&lt;br /&gt;
|-&lt;br /&gt;
| 32bits of actual console-unique TWLNAND keydata&lt;br /&gt;
| On retail the 8-bytes at ARM9 address [[Memory_layout|0x01FFB808]] are XORed with hard-coded data, to generate the TWL console-unique keys, including TWLNAND. On Old3DS the high u32 is always 0x0, while on New3DS that u32 is always 0x2. On top of this, the lower u32&#039;s highest bit is always ORed. only 31 bits of the TWL console-unique keydata / TWL consoleID are actually console-unique.&lt;br /&gt;
This allows one to easily bruteforce the TWL console-unique keydata with *just* data from TWLNAND. On DSi the actual console-unique data for key generation is 8-bytes(all bytes actually set).&lt;br /&gt;
| None&lt;br /&gt;
| New3DS&lt;br /&gt;
| 2012?&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| DSi / 3DS-TWL key-generator&lt;br /&gt;
| After using the key generator to generate the normal-key, you could overwrite parts of the normal-key with your own data and then recover the key-generator output by comparing the new crypto output with the original crypto output. From the normal-key outputs, you could deduce the TWL key-generator function.&lt;br /&gt;
This applies to the keyX/keyY too.&lt;br /&gt;
&lt;br /&gt;
This attack does not work for the 3DS key-generator because keyslots 0-3 are only for TWL keys.&lt;br /&gt;
| None&lt;br /&gt;
| New3DS&lt;br /&gt;
| 2011&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| 3DS key-generator&lt;br /&gt;
| The algorithm for generating the normal-keys for keyslots is cryptographically weak.  As a result, it is easily susceptible to differential cryptanalysis if the normal-key corresponding to any scrambler-generated keyslot is discovered.&lt;br /&gt;
&lt;br /&gt;
Several such pairs of matching normal-keys and KeyY values were found, leading to deducing the key-generator function.&lt;br /&gt;
| None&lt;br /&gt;
| New3DS&lt;br /&gt;
| February 2015&lt;br /&gt;
| [[User:Yellows8|Yellows8]], [[User:Plutooo|plutoo]]&lt;br /&gt;
|-&lt;br /&gt;
| RSA keyslots don&#039;t clear exponent when setting modulus&lt;br /&gt;
| The [[RSA_Registers|RSA keyslots]] are set by boot ROM to have four private RSA keys.  The exponent value in the RSA registers is write-only and not readable.&lt;br /&gt;
&lt;br /&gt;
However, when setting a keyslot&#039;s modulus, the RSA hardware leaves the exponent alone.  This allows retrieving the exponent by doing a discrete logarithm of the output.&lt;br /&gt;
&lt;br /&gt;
By setting the modulus to a prime number whose modular multiplicative order is &amp;quot;smooth&amp;quot; (that is, p-1 is divisible by only small prime numbers), discrete logarithms can be calculated quickly using the [[wikipedia:Pohlig-Hellman algorithm|Pohlig-Hellman algorithm]].  If the prime chosen is greater than the modulus, but the same bit size, the discrete logarithm is the private exponent.&lt;br /&gt;
&lt;br /&gt;
This exploit&#039;s usefulness is limited: RSA keyslot 0 is only used in current firmware for deriving the 6.x save and 7.x NCCH keys, which were already known, and the other three keyslots are entirely unused.  Additionally, with a boot ROM dump, this exploit is moot; these private keys are located in the protected ARM9 boot ROM.&lt;br /&gt;
| None&lt;br /&gt;
| New3DS&lt;br /&gt;
| March 2016&lt;br /&gt;
| [[User:Myria|Myria]]&lt;br /&gt;
|-&lt;br /&gt;
| [[CONFIG11_Registers#CFG11_GPUPROT|CFG11_GPUPROT]] allowing acccess to AXIWRAM/FCRAM-BASE-memregion&lt;br /&gt;
| [[CONFIG11_Registers#CFG11_GPUPROT|CFG11_GPUPROT]] can be configured by anything with access to it to allow the GPU to access the entire AXIWRAM+FCRAM. For example, this is an issue for any sysmodule that gets exploited and has access to this register memory-page(include one that&#039;s listed below).&lt;br /&gt;
&lt;br /&gt;
See also &amp;quot;kernelhax via gspwn&amp;quot; below.&lt;br /&gt;
| None&lt;br /&gt;
| New3DS&lt;br /&gt;
| February 7, 2017&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Boot ROM ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
!  Summary&lt;br /&gt;
!  Description&lt;br /&gt;
!  Fixed with hardware model/revision&lt;br /&gt;
!  Newest hardware model/revision this flaw was checked for&lt;br /&gt;
!  Timeframe this was discovered&lt;br /&gt;
!  Discovered by&lt;br /&gt;
|-&lt;br /&gt;
| FIRM partitions known-plaintext&lt;br /&gt;
| The [[Flash_Filesystem|FIRM partitions]] are encrypted with AES-CTR without a MAC. Since this works by XOR&#039;ing data with a static (per-console in this case) keystream, one can deduce the keystream of a portion of each FIRM partition if they have the actual FIRM binary stored in it.&lt;br /&gt;
&lt;br /&gt;
This can be paired with many exploits. For example, it allows minor FIRM downgrades (i.e. 10.4 to 9.6 or 9.5 to 9.4, but not 9.6 to 9.5).&lt;br /&gt;
However it is most commonly used to install arbitrary FIRMs (usually boot9strap), thanks to sighax.&lt;br /&gt;
&lt;br /&gt;
This can be somewhat addressed by having a FIRM header skip over previously used section offsets, but this would just air-gap newer FIRMs without fixing the core bug. This can also only be done a limited number of times due to the size of FIRM versus the size of the partitions.&lt;br /&gt;
| None&lt;br /&gt;
| New3DS&lt;br /&gt;
| &lt;br /&gt;
| Everyone&lt;br /&gt;
|-&lt;br /&gt;
| Boot9 AES keyinit function issues&lt;br /&gt;
| [[Bootloader|Boot9]] seems to have two bugs in the AES key-init function, see [[AES_Registers#AES_key-init|here]].&lt;br /&gt;
| None&lt;br /&gt;
| BootROM issue.&lt;br /&gt;
| 2015&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| New3DS has same boot ROM as Old3DS&lt;br /&gt;
| The New3DS has the exact same boot ROM as the Old3DS.  This means, among other things, that all the same boot ROM flaws are present.  Also, this meant that it is possible to boot Old3DS firmware on New3DS (see &amp;quot;CFG9_SYSPROT9 bit1 not set by Kernel9&amp;quot;).&lt;br /&gt;
| None&lt;br /&gt;
| New3DS&lt;br /&gt;
| October 2014&lt;br /&gt;
| Everyone&lt;br /&gt;
|-&lt;br /&gt;
| sighax: Boot9 improper validation of FIRM partition RSA signatures&lt;br /&gt;
| The [[Flash_Filesystem|FIRM partitions]] are signed with RSA-2048 using SHA-256 and PKCS #1 v1.5 padding.  Boot9, however, improperly validates the padding in three ways:&lt;br /&gt;
# Boot9 permits block type 02, meant for encrypted messages, to be used for signatures.  Only 01, for signatures, should have been permitted.  As a result, when using block type 02, a signature block is not required to have a long string of FF bytes as padding, but rather any nonzero random values suffice.&lt;br /&gt;
# Boot9 does not require that the length of the padding fill out the signature block completely.  As a result, there is considerable freedom in the layout of a signature.&lt;br /&gt;
# Boot9 fails to do bounds checking in its parsing of the DER-encoded hash algorithm type and hash value; the length values given in DER are permitted to point outside the signature block.&lt;br /&gt;
Flaw 3 allows the DER encoding to be such that boot9 believes that the signature&#039;s hash value is outside the range of the block itself, somewhere on the stack.  This can be pointed at the correct hash value it computes.  Boot9 then memcmp&#039;s the calculated hash against itself, and thinks that the hash is valid.&lt;br /&gt;
&lt;br /&gt;
As a result of the above, we estimate that one in 2&amp;lt;sup&amp;gt;43&amp;lt;/sup&amp;gt; (~8.8 trillion) random fake signatures will be considered by Boot9 to be valid.  This is well within the range of brute force, particularly with an optimized GPU implementation.  An Nvidia GTX 1080 Ti would take about one week to find a match.&lt;br /&gt;
| None&lt;br /&gt;
| New3DS&lt;br /&gt;
| July 2015&lt;br /&gt;
| [[User:Derrek|derrek]]&lt;br /&gt;
|-&lt;br /&gt;
| Boot9 FIRM loading doesn&#039;t blacklist memory-mapped I/O&lt;br /&gt;
| [[Bootloader|Boot9]]&#039;s FIRM loading blacklists Boot9 data regions, but forgets to do other important regions, including Memory-mapped I/O. Combined with sighax, a malicious FIRM can be used to overwrite:&lt;br /&gt;
a) boot9 data-abort handler, coupled with a 4th section that tries to NDMA copy to NULL, causing a data abort&lt;br /&gt;
&lt;br /&gt;
b) boot9 IRQ handler (this has the disadvantage that you must restore the original handler, then call it manually when your payload runs)&lt;br /&gt;
| None&lt;br /&gt;
| New3DS&lt;br /&gt;
| 2015(?)&lt;br /&gt;
| [[User:Derrek|derrek]] (2015?), [[User:Normmatt|Normmatt]] and [[User:SciresM|SciresM]] independently (January 2017).&lt;br /&gt;
|-&lt;br /&gt;
| &amp;quot;superhax&amp;quot;: Boot9 FIRM loading blacklist check is flawed&lt;br /&gt;
| Boot9 only makes sure the &#039;&#039;&#039;start&#039;&#039;&#039; and &#039;&#039;&#039;end&#039;&#039;&#039; address of each section is not covered by a blacklisted region. Thus, it is possible to overwrite blacklisted regions (e.g. ARM9 Exception Vectors) by choosing a FIRM section range that encloses an entire blacklisted region. The vulnerable code looks like this: if(blRegions[i].start &amp;lt;= sectionStart &amp;amp;&amp;amp; blRegions[i].end &amp;gt; sectionStart &amp;lt;nowiki&amp;gt;||&amp;lt;/nowiki&amp;gt; blRegions[i].start &amp;lt;= sectionEnd &amp;amp;&amp;amp; blRegions[i].end &amp;gt; sectionEnd) return false; // failure&lt;br /&gt;
The boot9 vector table (0x08000000) contains 6 entries, each 8-bytes wide (0x30 bytes); Only 0x08000000 through 0x08000040 are blacklisted, and boot9 doesn&#039;t use the region after the vector table (this is convenient because we can put any payload we want after it and not worry about overwriting chunks of boot9 code)&lt;br /&gt;
&lt;br /&gt;
To exploit this, craft a FIRM section payload that&#039;s loaded a few bytes before 0x08000000, add padding to get to 0x08000000 and overwrite the vector table; You could overwrite the data-abort vector and craft a 4th FIRM section that causes a data-abort OR you can just overwrite the IRQ function pointer at 0x08000004 (make sure your payload replaces the original boot9 function pointer); you can point the rest of the vectors to infinite loops since they shouldn&#039;t be triggered.&lt;br /&gt;
| None&lt;br /&gt;
| New3DS&lt;br /&gt;
| August 2015&lt;br /&gt;
| [[User:Plutoo|plutoo]], [[User:Yellows8|yellows8]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== ARM9 software ==&lt;br /&gt;
&lt;br /&gt;
=== arm9loader ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Summary&lt;br /&gt;
!  Description&lt;br /&gt;
!  Successful exploitation result&lt;br /&gt;
!  Fixed in [[FIRM]] system version&lt;br /&gt;
!  Last [[FIRM]] system version this flaw was checked for&lt;br /&gt;
!  Timeframe this was discovered&lt;br /&gt;
!  Public disclosure timeframe&lt;br /&gt;
!  Discovered by&lt;br /&gt;
|-&lt;br /&gt;
| Generating the keysector console-unique keys with ITCM+Boot9&lt;br /&gt;
| [[Bootloader|Boot9]] decrypts the 0x100-byte [[OTP_Registers|OTP]] using AES-CBC with keydata stored in Boot9. If hash verification is successful, the plaintext of the first 0x90-bytes are copied into [[Memory_layout|ITCM]]. This is the &#039;&#039;exact&#039;&#039; &#039;&#039;same&#039;&#039; region hashed by arm9loader when generating the console-unique keys for decrypting the keysector, except arm9loader uses the raw encrypted OTP.&lt;br /&gt;
&lt;br /&gt;
Therefore, with the OTP keydata+IV from Boot9 you can: encrypt the 0x90-bytes from ITCM, then hash the output to get the console-unique keys for the system&#039;s keysector. This can even be done for Old3DS which doesn&#039;t have the arm9loader keysector officially.&lt;br /&gt;
&lt;br /&gt;
It&#039;s unknown why arm9loader only used the first 0x90-bytes of OTP. Using more data from OTP would&#039;ve prevented this. Fixing this would require doing exactly that, but that would also mean updating the NAND keysector(which is dangerous).&lt;br /&gt;
| See description.&lt;br /&gt;
| None&lt;br /&gt;
| &lt;br /&gt;
| 2015&lt;br /&gt;
| January 6, 2017&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| Rearrangable keys in the NAND keystore&lt;br /&gt;
| Due to the keystore being encrypted with AES-ECB, one can rearrange blocks and still have the NAND keystore decrypt in a deterministic way. &lt;br /&gt;
&lt;br /&gt;
Using 10.0 FIRM it is possible to rearrange keys such that ARM9 memory is executed. As such using existing ARM9 execution 10.0 FIRM can be written to NAND and a payload written to memory, with the payload to be executed post-K9L using an MCU reboot.&lt;br /&gt;
| arm9loaderhax given existing ARM9 code execution&lt;br /&gt;
| None&lt;br /&gt;
| [[11.3.0-36|11.3.0-X]]&lt;br /&gt;
| Early 2016&lt;br /&gt;
| 27 September 2016&lt;br /&gt;
| Myria, [[User:Dark samus|dark_samus]]; mathieulh (independently); [[User:Plutooo|plutoo]] (independently) + others&lt;br /&gt;
|-&lt;br /&gt;
| Uncleared OTP hash keydata in console-unique 0x11 key-generation&lt;br /&gt;
| Kernel9Loader does not clear the [[SHA_Registers#SHA_HASH|SHA_HASH register]] after use. As a result, the data stored here as K9L hands over to Kernel9 is the hash of [[OTP_Registers|OTP data]] used to seed the [[FIRM#New_3DS_FIRM|console-unique NAND keystore decryption key]] set on keyslot 0x11.&lt;br /&gt;
&lt;br /&gt;
Retrieving this keydata and the [[Flash_Filesystem#0x12C00|NAND keystore]] of the same device allows calculating the decrypted New3DS NAND keystore (non-unique, common to all New3DS units), which contains AES normal keys, also set on keyslot 0x11, which are then used to derive all current [[AES_Registers#Keyslots|New3DS-only AES keyXs]] including the newer batch introduced in [[9.6.0-24#arm9loader|9.6.0-X]]. From there, it is trivial to perform the same key derivation in order to initialize those keys on any system version, and even on Old3DS.&lt;br /&gt;
&lt;br /&gt;
This can be performed by exploiting the &amp;quot;arm9loaderhax&amp;quot; vulnerability to obtain post-K9L code execution after an MCU reboot (the bootrom section-loading fail is not relevant here, this attack was performed without OTP data by brute-forcing keys), and using this to dump the SHA_HASH register. This attack works on any FIRM version shipping a vulnerable version of K9L, whereas OTP dumping required a boot of &amp;lt;[[3.0.0-6|3.0.0-X]].&lt;br /&gt;
&lt;br /&gt;
This attack results in obtaining the entire (0x200-bytes) NAND keystore - it was confirmed at a later date that this keystore is encrypted with the same key (by comparing the decrypted data from multiple units), and therefore using another key in this store will not remedy the issue as all keys are known (i.e. later, unused keys decrypt to the same 0x200-bytes constant with the same OTP hash). Later keys could have been encrypted differently but this is not the case. As a result of this, it is not possible for Nintendo to use K9L again in its current format for its intended purpose, though this was not news from the moment people dumped a New3DS OTP.&lt;br /&gt;
| Derivation of all New3DS keys generated via the NAND keystore (0x1B &amp;quot;Secure4&amp;quot; etc.)&lt;br /&gt;
| None&lt;br /&gt;
| [[11.3.0-36|11.3.0-X]]&lt;br /&gt;
| ~April 2015, implemented in May 2015&lt;br /&gt;
| 13 January 2016&lt;br /&gt;
| [[User:WulfyStylez|WulfyStylez]], [[User:Dazzozo|Dazzozo]], [[User:Shinyquagsire23|shinyquagsire23]] (complimentary + implemented), [[User:Plutooo|plutoo]], Normmatt (discovered independently)&lt;br /&gt;
|-&lt;br /&gt;
| enhanced-arm9loaderhax&lt;br /&gt;
| See the 32c3 3ds talk.&lt;br /&gt;
Since this is a combination of a trick with the arm9-bootrom + arm9loaderhax, and since you have to manually write FIRM to the firm0/firm1 NAND partitions, this can&#039;t be completely fixed. Any system with existing ARM9 code execution and an OTP/OTP hash dump can exploit this. Additionally, by using the FIRM partition known-plaintext bug and bruteforcing the second entry in the keystore, this can currently be exploited on all New3DS systems without any other prerequisite hacks.&lt;br /&gt;
| arm9loaderhax which automatically occurs at hard-boot.&lt;br /&gt;
| See arm9loaderhax / description.&lt;br /&gt;
| See arm9loaderhax / description.&lt;br /&gt;
| Theorized around mid July, 2015. Later implemented+tested by [[User:Plutooo|plutoo]] and [[User:Derrek|derrek]].&lt;br /&gt;
| 32c3 3ds talk (December 27, 2015)&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| arm9loaderhax: Missing verification block for the 9.6 keys&lt;br /&gt;
| Starting with [[9.6.0-24|9.6.0-X]] a new set of NAND-based keys were introduced. However, no verification block was added to verify that the new key read from NAND is correct. This was technically an issue from [[9.5.0-22|9.5.0-X]] with the original sector+0 keydata, however the below is only possible with [[9.6.0-24|9.6.0-X]] since keyslots 0x15 and 0x16 are generated from different 0x11 keyXs.&lt;br /&gt;
&lt;br /&gt;
Writing an incorrect key to NAND will cause arm9loader to decrypt the ARM9 kernel as garbage and then jump to it.&lt;br /&gt;
&lt;br /&gt;
This allows an hardware-based attack where you can boot into an older exploited firmware, fill all memory with NOP sleds/jump-instructions, and then reboot into executing garbage. By automating this process with various input keydata, eventually you&#039;ll find some garbage that jumps to your code.&lt;br /&gt;
&lt;br /&gt;
This gives very early ARM9 code execution (pre-ARM9 kernel). As such, it is possible to dump RSA keyslots with this and calculate the 6.x [[Savegames#6.0.0-11_Savegame_keyY|save]], and 7.x [[NCCH]] keys. This cannot be used to recover keys initialized by arm9loader itself. This is due to it wiping the area used for its stack during NAND sector decryption and keyslot init. &lt;br /&gt;
&lt;br /&gt;
Due to FIRMs on both Old and New 3DS using the same RSA data, this can be exploited on Old3DS as well, but only if one already has the actual plaintext normalkey from New3DS NAND sector 0x96 offset-0 and has dumped the OTP area of the Old3DS.&lt;br /&gt;
| Recovery of 6.x [[Savegames#6.0.0-11_Savegame_keyY|save key]]/7.x [[NCCH]] key, access to uncleared OTP hash keydata&lt;br /&gt;
| None&lt;br /&gt;
| [[11.3.0-36|11.3.0-X]]&lt;br /&gt;
| March 2015&lt;br /&gt;
| &lt;br /&gt;
| [[User:Plutooo|plutoo]]&lt;br /&gt;
|-&lt;br /&gt;
| arm9loader runs on Old3DS&lt;br /&gt;
| Despite being written only for New3DS, all of arm9loader runs fine on Old3DS.  It&#039;s not until booting Kernel9 that a New3DS FIRM partition would crash on an Old3DS.  As a result, if a bug exists in arm9loader to get control, it can be exploited on Old3DS by writing New3DS FIRM to the FIRM partitions.  Thus, arm9loaderhax works on both Old3DS and New3DS.&lt;br /&gt;
| arm9loader bugs also compromise Old3DS&lt;br /&gt;
| None&lt;br /&gt;
| [[11.3.0-36|11.3.0-X]]&lt;br /&gt;
| Sometime in 2015&lt;br /&gt;
| &lt;br /&gt;
| [[User:Plutooo|plutoo]] presumably&lt;br /&gt;
|-&lt;br /&gt;
| Uncleared New3DS keyslot 0x11&lt;br /&gt;
| Originally the New3DS [[FIRM]] arm9bin loader only cleared keyslot 0x11 when it gets executed at firmlaunch. This was fixed with [[9.5.0-22|9.5.0-X]] by completely clearing keyslot 0x11 immediately after the loader finishes using keyslot 0x11.&lt;br /&gt;
This means that any ARM9 code that can execute before the loader clears the keyslot at firmlaunch(including firmlaunch-hax) can get access to the uncleared keyslot 0x11, which then allows one to generate all &amp;lt;=v9.5 New3DS keyXs which are generated by keyslot 0x11.&lt;br /&gt;
&lt;br /&gt;
Therefore, to completely fix this the loader would have to generate more keys using different keyslot 0x11 keydata. This was done with [[9.6.0-24|9.6.0-X]].&lt;br /&gt;
| New3DS keyXs generation&lt;br /&gt;
| Mostly fixed with [[9.5.0-22|9.5.0-X]], completely fixed with new keys with [[9.6.0-24|9.6.0-X]].&lt;br /&gt;
| &lt;br /&gt;
| February 3, 2015 (one day after [[9.5.0-22|9.5.0-X]] release)&lt;br /&gt;
| &lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Process9 ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Summary&lt;br /&gt;
!  Description&lt;br /&gt;
!  Successful exploitation result&lt;br /&gt;
!  Fixed in [[FIRM]] system version&lt;br /&gt;
!  Last [[FIRM]] system version this flaw was checked for&lt;br /&gt;
!  Timeframe this was discovered&lt;br /&gt;
!  Public disclosure timeframe&lt;br /&gt;
!  Discovered by&lt;br /&gt;
|-&lt;br /&gt;
| Leak of normal-key matching a key-scrambler key&lt;br /&gt;
| New 3DS firmware versions [[8.1.0-0 New3DS|8.1.0]] through [[9.2.0-20|9.2.0]] set the encryption key for [[Amiibo]] data using a hardcoded normal-key in Process9.  In firmware [[9.3.0-21|9.3.0]], Nintendo &amp;quot;fixed&amp;quot; this by using the key scrambler instead, by calculating the keyY value for keyslot 0x39 that results in the same normal-key, then hardcoding that keyY into Process9.&lt;br /&gt;
&lt;br /&gt;
Nintendo&#039;s fix is actually the problem: Nintendo revealed the normal-key matching an unknown keyX and a known keyY.  Combined with the key scrambler using an insecure scrambling algorithm (see &amp;quot;Hardware&amp;quot; above), the key scrambler function could be deduced.&lt;br /&gt;
| Deducing the keyX for keyslot 0x39 and the key scrambler algorithm&lt;br /&gt;
| New 3DS [[9.3.0-21|9.3.0-X]], sort of&lt;br /&gt;
| [[10.0.0-27|10.0.0-X]]&lt;br /&gt;
| Sometime in 2015 after the hardware key-generator was broken.&lt;br /&gt;
| 32c3 3ds talk (December 27, 2015)&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| Leak of normal-key matching a key-generator key&lt;br /&gt;
| During the 3DS&#039; development (June/July 2010) Nintendo added support installing encrypted content ([[CIA]]). Common-key index1 was intended to be a [[AES|hardware generated key]]. However while they added code to generate the key in hardware, they forgot to remove the normal-key for index1 (used elsewhere, likely old debug code). Nintendo later removed the normal key sometime before the first non-prototype firmware release.&lt;br /&gt;
&lt;br /&gt;
Knowing the keyY and the normal-key for common-key index1, the devkit key-generator algorithm can be deduced (see &amp;quot;Hardware&amp;quot; above). Additionally the remaining devkit common-keys can be generated once the common-key keyX is recovered.&lt;br /&gt;
&lt;br /&gt;
Note that the devkit key-generator was discovered to be the same as the retail key-generator.&lt;br /&gt;
| Deducing the keyX for keyslot 0x3D and hardware key-generator algorithm. Generate remaining devkit common-keys.&lt;br /&gt;
| pre-[[1.0.0-0|1.0.0-X]]&lt;br /&gt;
| &lt;br /&gt;
| Shortly after the key-generator was revealed to be flawed at the 32c3 3ds talk&lt;br /&gt;
| January 20, 2016&lt;br /&gt;
| [[User:Jakcron|jakcron]]&lt;br /&gt;
|-&lt;br /&gt;
| Factory firmware is vulnerable to sighax&lt;br /&gt;
| During the 3DS&#039;s development, presumably boot9 was written (including the sighax vulnerability). This vulnerability is also present in factory firmware (and earlier, including 0.11). This was fixed in version 1.0.0-0.&lt;br /&gt;
| Deducing the mechanics of the sighax vulnerability in boot9 without having a dump of protected boot9. ARM9 code execution on factory/earlier firmware.&lt;br /&gt;
| [[1.0.0-0|1.0.0-X]]&lt;br /&gt;
| [[1.0.0-0|1.0.0-X]]&lt;br /&gt;
| May 9, 2017&lt;br /&gt;
| May 19, 2017&lt;br /&gt;
| [[User:SciresM|SciresM]], [[User:Myria|Myria]]&lt;br /&gt;
|-&lt;br /&gt;
| safecerthax &lt;br /&gt;
| O3DS &amp;amp; O2DS SAFE_FIRM is still vulnerable to the PXIAM:ImportCertificates flaw fixed in [[5.0.0-11]] and to SSLoth fixed in [[11.14.0-46]]. It makes it possible to spoof the official NUS update server and remotely trigger the vulnerability in SAFE_FIRM.&lt;br /&gt;
| Remote Arm9 code execution in O3DS/O2DS SAFE_FIRM&lt;br /&gt;
| None&lt;br /&gt;
| [[11.14.0-46|11.14.0-X]]&lt;br /&gt;
| 2020&lt;br /&gt;
| December 18, 2020&lt;br /&gt;
| [[User:Nba_Yoh|MrNbaYoh]]&lt;br /&gt;
|-&lt;br /&gt;
| twlhax: Corrupted SRL header leads to memory overwrite&lt;br /&gt;
| During TWL_FIRM boot, the ARM11 process TwlBg puts launcher.srl, the DSi bootloader, into FCRAM.  TWL_FIRM Process9 then parses the [http://dsibrew.org/wiki/NDS_Format SRL header] to place launcher.srl&#039;s code where DSi mode can execute it.&lt;br /&gt;
&lt;br /&gt;
DSi-mode memory is in FCRAM, but interleaved.  Each byte of DSi-mode memory also exists at some address in 3DS FCRAM space.&lt;br /&gt;
&lt;br /&gt;
Process9 does not validate the RSA signature on launcher.srl, unlike SRLs loaded from cartridge or NAND (DSiWare).  A compromised ARM11 can, in a manner similar to firmlaunchhax, send a launcher.srl with a modified SRL header.  By setting the SRL header&#039;s ARM7/ARM9 load addresses and sizes carefully, accounting for the different memory map and for DSi mode&#039;s interleaved memory, it is possible to overwrite part of Process9&#039;s stack and take control with a ROP chain.&lt;br /&gt;
&lt;br /&gt;
Fixed in 11.8.0-X by... (fill me in)&lt;br /&gt;
| ARM9 code execution (whilst still in 3DS mode)&lt;br /&gt;
| [[11.8.0-41|11.8.0-X]]&lt;br /&gt;
| [[11.8.0-41|11.8.0-X]]&lt;br /&gt;
|&lt;br /&gt;
| August 11, 2018&lt;br /&gt;
| smea&lt;br /&gt;
|-&lt;br /&gt;
| agbhax&lt;br /&gt;
| This is the same issue as twlhax above. Legacy FIRMs share the same OS code (Arm9-side OS, Arm11 kernel), and therefore, the outdated AGB_FIRM can be tricked into executing the still vulnerable PrepareArm9ForTwl function.&lt;br /&gt;
| ARM9 code execution (whilst still in 3DS mode)&lt;br /&gt;
| None&lt;br /&gt;
| [[11.14.0-46|11.14.0-X]]&lt;br /&gt;
|&lt;br /&gt;
| December 17, 2020&lt;br /&gt;
| Everyone&lt;br /&gt;
|-&lt;br /&gt;
| safefirmhax&lt;br /&gt;
| SAFE_MODE_FIRM is almost never updated(even when NATIVE_FIRM is updated for vuln fixes), this can be noticed by &#039;&#039;just&#039;&#039; checking 3dbrew/ninupdates title-listings.&lt;br /&gt;
&lt;br /&gt;
The fix for firmlaunch-hax was only applied to NATIVE_FIRM in [[9.5.0-22|9.5.0-X]], leaving SAFE_FIRM exploitable. With ARM11-kernel execution, one can trigger FIRM-launch in to SAFE_FIRM, do Kernel9 &amp;lt;=&amp;gt; Kernel11 sync, PXI sync and then repeat the original attack on SAFE_FIRM instead.&lt;br /&gt;
| ARM9 code execution&lt;br /&gt;
| [[11.3.0-36|11.3.0-X]]&lt;br /&gt;
| &lt;br /&gt;
| 2012-2013?&lt;br /&gt;
| Wiki: January 2, 2017&lt;br /&gt;
| Everyone&lt;br /&gt;
|-&lt;br /&gt;
| safefirmhax 1.1&lt;br /&gt;
| Nintendo&#039;s original safefirmhax fix was flawed -- they added a global boolean that got set to true whenever a non-sysmodule title got launched (except for a hardcoded repair title id), and panic()&#039;d if that boolean was true to prevent launching safefirm after hax was active. However, because the boolean was initially false after firmlaunch -- With ARM11-kernel execution, one could FIRM-launch into NATIVE_FIRM, and then immediately FIRM-launch again into SAFE_FIRM early in NATIVE_FIRM boot before the boolean got set to true to repeat the safehax attack.&lt;br /&gt;
&lt;br /&gt;
This was fixed by adding additional CFG9_BOOTENV checks to firmlaunch code in 11.4.&lt;br /&gt;
| ARM9 code execution&lt;br /&gt;
| [[11.4.0-37|11.4.0-X]]&lt;br /&gt;
| &lt;br /&gt;
| safefirmhax fix&lt;br /&gt;
| Wiki: April 10, 2017&lt;br /&gt;
| Everyone&lt;br /&gt;
|-&lt;br /&gt;
| ntrcardhax&lt;br /&gt;
| When reading the banner of a NTR title, Process9 relies on a hardware register to know when the banner was fully read.&lt;br /&gt;
However that register is shared between the ARM9 and the ARM11.&lt;br /&gt;
An attacker with k11 control can so make Process9 believe the banner continues forever and so trigger a buffer overflow.&lt;br /&gt;
With a custom banner for a NTR flashcart, this leads to code execution in Process9.&lt;br /&gt;
&lt;br /&gt;
This was fixed by adding bound checks on the read data.&lt;br /&gt;
| ARM9 code execution&lt;br /&gt;
| [[10.4.0-29|10.4.0-X]]&lt;br /&gt;
| &lt;br /&gt;
| March 2015&lt;br /&gt;
| 32c3 3ds talk (December 27, 2015)&lt;br /&gt;
| [[User:Plutooo|plutoo]]&lt;br /&gt;
|-&lt;br /&gt;
| Title downgrading via [[Application_Manager_Services|AM]]([[Application_Manager_Services_PXI|PXI]])&lt;br /&gt;
| When a title is *already* installed, Process9 will compare the installed title-version with the title-version being installed. When the one being installed is older, Process9 would return an error.&lt;br /&gt;
&lt;br /&gt;
However, this can be bypassed by just deleting the title first via the service command(s) for that: with the title removed from the [[Title_Database]], Process9 can&#039;t compare the input title-version with anything. Hence, titles can be downgraded this way.&lt;br /&gt;
&lt;br /&gt;
[[11.0.0-33|11.0.0-X]] fixed this for key system titles (MSET, Home Menu, spider, ErrDisp, SKATER, NATIVE_FIRM, and every retail system module), by checking the version of the title to install against a hard-coded list of (titleID, minimumVersionRequired) pairs.&lt;br /&gt;
| Bypassing title version check at installation, which then allows downgrading any title.&lt;br /&gt;
| [[11.0.0-33|11.0.0-X]], for key system titles.&lt;br /&gt;
| NATIVE_FIRM / AM-sysmodule [[11.0.0-33|11.0.0-X]]&lt;br /&gt;
| ?&lt;br /&gt;
| &lt;br /&gt;
| ?&lt;br /&gt;
|-&lt;br /&gt;
| Anti-downgrade list did not include all system titles initially&lt;br /&gt;
| The anti-downgrade list did not include legacy FIRMs until [[11.8.0-41|11.8.0-X]]. Therefore, legacy FIRMs could still be downgraded.&lt;br /&gt;
| Downgrading legacy FIRMs; allowing to exploit bugs in older legacy FIRMs (of which at least one exists, see below).&lt;br /&gt;
| [[11.8.0-33|11.8.0]]&lt;br /&gt;
| [[11.8.0-33|11.8.0]]&lt;br /&gt;
| ?&lt;br /&gt;
| Wiki: August 5, 2018&lt;br /&gt;
| Everyone&lt;br /&gt;
|-&lt;br /&gt;
| TWL_FIRM cmd-9 unchecked offset&lt;br /&gt;
| In [[1.0.0-0|1.0.0-X]]&#039;s TWL_FIRM, cmds 8 and 9 were not stubbed (whereas in the corresponding NATIVE_FIRM, they were).&lt;br /&gt;
Command 8 does the Process9 initialisation for NTR carts if an NTR cart is inserted (NTR, not TWL, judged by chipid).&lt;br /&gt;
&lt;br /&gt;
Command 9 takes (u32 offset_read, u32 offset_write, u32 offset_read_end), and basically just copies (offset_read_end - offset_read) bytes starting at (offset_read) of [NTR cart header in arm9mem, NTR secure area in fcram, TWL secure area in fcram], to 0x18001000 + offset_write + offset_read.&lt;br /&gt;
&lt;br /&gt;
offset_write is not checked at all, thus this leads to ARM9 code execution as long as any NTR cart, including flashcarts that would normally be blocked by TWL_FIRM, is inserted.&lt;br /&gt;
&lt;br /&gt;
In [[2.0.0-2|2.0.0-X]] TWL_FIRM, those commands were stubbed out.&lt;br /&gt;
| ARM9 code execution&lt;br /&gt;
| [[2.0.0-2|2.0.0-X]]&lt;br /&gt;
| [[2.0.0-2|2.0.0-X]]&lt;br /&gt;
| January 2018&lt;br /&gt;
| Wiki: August 5, 2018&lt;br /&gt;
| [[User:Riley|Riley]]&lt;br /&gt;
|-&lt;br /&gt;
| FIRM launch doesn&#039;t check target FIRM version&lt;br /&gt;
| When executing a FIRM launch, Process9 doesn&#039;t validate that the target FIRM isn&#039;t an old version.  This allows booting an exploitable FIRM from a newer FIRM, if you can get the exploitable FIRM installed.  ([[11.0.0-33|11.0.0-X]] now prevents installing old versions of system titles, but this doesn&#039;t affect titles already installed.)&lt;br /&gt;
&lt;br /&gt;
This had a use after [[9.6.0-24|9.6.0-X]]: on a compromised 3DS running 9.2.0, you could install the 9.6.0 NATIVE_FIRM to FIRM0/FIRM1, but avoid putting it into the NATIVE_FIRM title.  This would boot the 9.2.0 system software but with the 9.6.0 Process9 and Kernel11.  With a user-mode exploit in a sufficiently-privileged application (e.g. mset), you could trigger a FIRM launch back to NATIVE_FIRM, which would load the 9.2.0 Process9 and Kernel11.&lt;br /&gt;
&lt;br /&gt;
9.6.0&#039;s keyslots 0x15 and 0x16 are unknown to 9.2.0, so 9.2.0 would not clear them.  You then could do firmlaunchhax against 9.2.0 to get ARM9 access with keyslots 0x15 and 0x16 set to their proper 9.6.0 values, allowing decrypting 9.6.0&#039;s encrypted titles.  Once the New3DS keystore was dumped, this became moot.&lt;br /&gt;
| Decrypting 9.6.0 NCCH files without dumping New3DS keystore&lt;br /&gt;
| None (but now moot)&lt;br /&gt;
| [[9.6.0-24|9.6.0-X]]&lt;br /&gt;
| March 2015&lt;br /&gt;
| August 12, 2018&lt;br /&gt;
| [[User:Yellows8|Yellows8]], [[User:Myria|Myria]]&lt;br /&gt;
|-&lt;br /&gt;
| FAT FS code null-deref&lt;br /&gt;
| When FSFile:Read is used with a file which is corrupted on a FAT filesystem(in particular SD), Process9 can crash. This particular crash is caused by a function returning NULL instead of an actual ptr due to an error. The caller of that function doesn&#039;t check for NULL which then triggers a read based at NULL.&lt;br /&gt;
&lt;br /&gt;
Sample &amp;quot;fsck.vfat -n -v -V &amp;lt;fat image backup&amp;gt;&amp;quot; output for the above crash:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;...&lt;br /&gt;
Starting check/repair pass.&lt;br /&gt;
&amp;lt;FilePath0&amp;gt; and&lt;br /&gt;
&amp;lt;FilePath1&amp;gt;&lt;br /&gt;
 share clusters.&lt;br /&gt;
 Truncating second to 3375104 bytes.&lt;br /&gt;
&amp;lt;FilePath1&amp;gt;&lt;br /&gt;
 File size is 2787392 bytes, cluster chain length is 16384 bytes.&lt;br /&gt;
 Truncating file to 16384 bytes.&lt;br /&gt;
Checking for unused clusters.&lt;br /&gt;
Reclaimed 1 unused cluster (16384 bytes).&lt;br /&gt;
Checking free cluster summary.&lt;br /&gt;
Free cluster summary wrong (1404490 vs. really 1404491)&lt;br /&gt;
 Auto-correcting.&lt;br /&gt;
Starting verification pass.&lt;br /&gt;
Checking for unused clusters.&lt;br /&gt;
Leaving filesystem unchanged.&amp;lt;/pre&amp;gt;&lt;br /&gt;
| Useless null-based-read&lt;br /&gt;
| None&lt;br /&gt;
| [[9.6.0-24|9.6.0-X]]&lt;br /&gt;
| July 8-9, 2015&lt;br /&gt;
| &lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| RSA signature padding checks&lt;br /&gt;
| The TWL_FIRM RSA sig padding check code used for all TWL RSA sig-checks has issues, see [[FIRM|here]].&lt;br /&gt;
The main 3DS RSA padding check code(non-certificate, including NATIVE_FIRM) uses the function used with the above to extract more padding + the actual hash from the additional padding. This isn&#039;t really a problem here because there&#039;s proper padding check code which is executed prior to this.&lt;br /&gt;
| &lt;br /&gt;
| None&lt;br /&gt;
| [[9.5.0-22|9.5.0-X]]&lt;br /&gt;
| March 2015&lt;br /&gt;
| &lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| [[AMPXI:ValidateDSiWareSectionMAC]] [[AES_Registers|AES]] keyslot reuse&lt;br /&gt;
| When the input DSiWare section index is higher than &amp;lt;max number of DSiWare sections supported by this FIRM&amp;gt;, Process9 uses keyid 0x40 for calculating the AESMAC, which translates to keyslot 0x40. The result is that the keyslot is left at whatever was already selected before, since the AES selectkeyslot code will immediately  return when keyslot is &amp;gt;=0x40. However, actually exploiting this is difficult: the calculated AESMAC is never returned, this command just compares the calculated AESMAC with the input AESMAC(result-code depends on whether the AESMACs match). It&#039;s unknown whether a timing attack would work with this.&lt;br /&gt;
This is basically a different form of the pxips9 keyslot vuln, except with AESMAC etc.&lt;br /&gt;
| See description.&lt;br /&gt;
| None&lt;br /&gt;
| [[11.3.0-36|11.3.0-X]]&lt;br /&gt;
| March 15, 2015&lt;br /&gt;
| December 29, 2015&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| pxips9 [[AES_Registers|AES]] keyslot reuse&lt;br /&gt;
| This requires access to the [[Process_Services|ps:ps]]/pxi:ps9 services. One way to get access to this would be snshax on system-version &amp;lt;=10.1.0-X(see 32c3 3ds talk).&lt;br /&gt;
When an invalid key-type value is passed to any of the PS commands, Process9 will try to select keyslot 0x40. That aesengine_setkeyslot() code will then immediately return due to the invalid keyslot value. Since that function doesn&#039;t return any errors, Process9 will just continue to do crypto with whatever AES keyslot was selected before the PS command was sent.&lt;br /&gt;
| Reusing the previously used keyslot, for crypto with PS.&lt;br /&gt;
| None&lt;br /&gt;
| [[11.3.0-36|11.3.0-X]]&lt;br /&gt;
| Roughly the same time(same day?) as firmlaunch-hax.&lt;br /&gt;
| December 29, 2015&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| firmlaunch-hax: FIRM header ToCToU&lt;br /&gt;
| This can&#039;t be exploited from ARM11 userland.&lt;br /&gt;
During [[FIRM]] launch, the only FIRM header the ARM9 uses at all is stored in FCRAM, this is 0x200-bytes(the actual used FIRM RSA signature is read to the Process9 stack however). The ARM9 doesn&#039;t expect &amp;quot;anything&amp;quot; besides the ARM9 to access this data.&lt;br /&gt;
With [[9.5.0-22]] the address of this FIRM header was changed from a FCRAM address, to ARM9-only address 0x01fffc00.&lt;br /&gt;
| ARM9 code execution&lt;br /&gt;
| [[9.5.0-22]]&lt;br /&gt;
| &lt;br /&gt;
| 2012, 3 days after [[User:Yellows8|Yellows8]] started Process9 code RE.&lt;br /&gt;
| &lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| Uninitialized data output for (PXI) command replies&lt;br /&gt;
| PXI commands for various services(including some [[Filesystem_services_PXI|here]] and many others) can write uninitialized data (like from ARM registers) to the command reply. This happens with stubbed commands, but this can also occur with certain commands when returning an error.&lt;br /&gt;
Certain ARM11 service commands have this same issue as well.&lt;br /&gt;
| &lt;br /&gt;
| None&lt;br /&gt;
| [[9.3.0-21|9.3.0-X]]&lt;br /&gt;
| ?&lt;br /&gt;
| &lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| [[Filesystem_services_PXI|FSPXI]] OpenArchive SD permissions&lt;br /&gt;
| Process9 does not use the exheader ARM9 access-mount permission flag for SD at all.&lt;br /&gt;
This would mean ARM11-kernelmode code / fs-module itself could directly use FSPXI to access SD card without ARM9 checking for SD access, but this is rather useless since a process is usually running with SD access(Home Menu for example) anyway.&lt;br /&gt;
| &lt;br /&gt;
| None&lt;br /&gt;
| [[9.3.0-21|9.3.0-X]]&lt;br /&gt;
| 2012&lt;br /&gt;
| &lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| [[AMPXI:ExportDSiWare]] export path&lt;br /&gt;
| Process9 allocates memory on Process9 heap for the export path then verifies that the actual allocated size matches the input size. Then Process9 copies the input path from FCRAM to this buffer, and uses it with the Process9 FS openfile code, which use paths in the form of &amp;quot;&amp;lt;mountpoint&amp;gt;:/&amp;lt;path&amp;gt;&amp;quot;.&lt;br /&gt;
Process9 does not check the contents of this path at all before passing it to the FS code, besides writing a NUL-terminator to the end of the buffer.&lt;br /&gt;
| Exporting of DSiWare to arbitrary Process9 file-paths, such as &amp;quot;nand:/&amp;lt;path&amp;gt;&amp;quot; etc. This isn&#039;t really useful since the data which gets written can&#039;t be controlled.&lt;br /&gt;
| None&lt;br /&gt;
| [[9.5.0-22]]&lt;br /&gt;
| April 2013&lt;br /&gt;
| &lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| [[DSiWare_Exports]] [[CTCert]] verification&lt;br /&gt;
| Just like DSi originally did, 3DS verifies the APCert for DSiWare on SD with the CTCert also in the DSiWare .bin. On DSi this was fixed with with system-version 1.4.2 by verifying with the actual console-unique cert instead(stored in NAND), while on 3DS it&#039;s still not fixed.&lt;br /&gt;
On 3DS this is used in conjunction with seedminer to be able to decrypt &amp;amp; modify DSiWare TAD containers and inject them with exploitable DSiWare titles such as sudoku (sudokuhax) and Flipnote JPN (ugopwn)&lt;br /&gt;
| When the movable.sed keyY for the target 3DS is known and the target 3DS CTCert private-key is unknown, importing of modified DSiWare SD .bin files.&lt;br /&gt;
| None.&lt;br /&gt;
| 11.10.0-X&lt;br /&gt;
| April 2013&lt;br /&gt;
| &lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| seedminer: movable.sed keyY vulnerable to brute-force&lt;br /&gt;
| Half of the movable.sed keyY&#039;s 128 bits are leaked through the [[Nandrw/sys/LocalFriendCodeSeed_B|LFCS]], which is available in userland and below. The LFCS itself also leaks almost half of the remaining bits by following the ratio: u32 keyY[3]=1/5(LFCS). The remaining keyY[3] uncertainty of about ±2000 can be greatly reduced by plotting expected error margins with several keyYs. This results in a final uncertainty of about 2^40, easily within practical brute force range of an average modern PC.&lt;br /&gt;
| Knowing the keyY of a given 3ds allows for modification of DSiWare export contents, and chained with several other public vulns, ultimately arm9 execution.&lt;br /&gt;
| None.&lt;br /&gt;
| 11.8.0-X&lt;br /&gt;
| December 2017&lt;br /&gt;
| January 2018&lt;br /&gt;
| zoogie&lt;br /&gt;
|-&lt;br /&gt;
| Improper validation of DSiWare title SRLs&lt;br /&gt;
| The 3DS does not verify if the actual SRL embedded in the title&#039;s directory matches the titleID in the TMD before launching it or importing it from an sd DSiWare export. &lt;br /&gt;
| This allows embedding older, exploitable DSiWare titles in completely different, unexploitable DSiWare titles. Since DSiWare has raw NAND RW, this can result in arm9 control through FIRM known-plaintext and sighax attacks.&lt;br /&gt;
| None.&lt;br /&gt;
| 11.10.0-X&lt;br /&gt;
| 2015?&lt;br /&gt;
| December 2016&lt;br /&gt;
| Everyone&lt;br /&gt;
|-&lt;br /&gt;
| DSiWare import/export functions allow TWL system titles as arguments&lt;br /&gt;
| AM ImportTwlBackup/ExportTwlBackup unnecessarily allow TWL system titles such as DS Download Play to import/export from userland and System Settings -&amp;gt; Data Management (only am:sys is needed for userland). This is difficult to abuse for dsihax injection because no TWL system title has a save file, and any import with a save included will result in FS err C8804464. However, there is at least one dsihax primary that can load a payload from a non-NAND source, and not error if it can&#039;t access its public.sav (JPN Flipnote Studio v0).&lt;br /&gt;
| When combined with other public vulns, arm9 code execution.&lt;br /&gt;
| None.&lt;br /&gt;
| 11.10.0-X&lt;br /&gt;
| May 2018&lt;br /&gt;
| Sept 2018&lt;br /&gt;
| zoogie&lt;br /&gt;
|-&lt;br /&gt;
| [[Gamecard_Services_PXI]] unchecked REG_CTRCARDCNT transfer-size&lt;br /&gt;
| The u8 REG_CTRCARDCNT transfer-size parameter for the [[Gamecard_Services_PXI]] read/write CTRCARD commands is used as an index for an array of u16 values. Before [[5.0.0-11|5.0.0-X]] this u8 value wasn&#039;t checked, thus out-of-bounds reads could be triggered(which is rather useless in this case).&lt;br /&gt;
| Out-of-bounds read for a value which gets written to a register.&lt;br /&gt;
| [[5.0.0-11|5.0.0-X]]&lt;br /&gt;
| &lt;br /&gt;
| 2013?&lt;br /&gt;
| &lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| [[PXI_Registers|PXI]] cmdbuf buffer overrun&lt;br /&gt;
| The Process9 code responsible [[PXI_Registers|PXI]] communications didn&#039;t verify the size of the incoming command before writing it to a C++ member variable. &lt;br /&gt;
| Probably ARM9 code execution&lt;br /&gt;
| [[5.0.0-11|5.0.0-11]]&lt;br /&gt;
| &lt;br /&gt;
| March 2015, original timeframe if any unknown&lt;br /&gt;
| &lt;br /&gt;
| [[User:Plutooo|plutoo]]/[[User:Yellows8|Yellows8]]/maybe others(?)&lt;br /&gt;
|-&lt;br /&gt;
| [[Application_Manager_Services_PXI|PXIAM]]:ImportCertificates (See also [[Application_Manager_Services|this]])&lt;br /&gt;
| When handling this command, Process9 allocates a 0x2800-byte heap buffer, then copies the 4 FCRAM input buffers to this heap buffer without checking the sizes at all(only the buffers with non-zero sizes are copied). Starting with [[5.0.0-11|5.0.0-X]], the total combined size of the input data must be &amp;lt;=0x2800.&lt;br /&gt;
| ARM9 code execution&lt;br /&gt;
| [[5.0.0-11|5.0.0-X]]&lt;br /&gt;
| &lt;br /&gt;
| May 2013&lt;br /&gt;
| &lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| [[Process_Services_PXI|PS RSA]] commands buffer overflows&lt;br /&gt;
| pxips9 cmd1(not accessible via ps:ps) and VerifyRsaSha256: unchecked copy to a buffer in Process9&#039;s .bss, from the input FCRAM buffer. The buffer is located before the pxi cmdhandler threads&#039; stacks. SignRsaSha256 also has a buf overflow, but this isn&#039;t exploitable.&lt;br /&gt;
The buffer for this is the buffer for the signature data. With v5.0, the signature buffer was moved to stack, with a check for the signature data size. When the signature data size is too large, Process9 uses [[SVC|svcBreak]].&lt;br /&gt;
| ARM9 code execution&lt;br /&gt;
| [[5.0.0-11|5.0.0-X]]&lt;br /&gt;
| &lt;br /&gt;
| 2012&lt;br /&gt;
| &lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| [[PXI_Registers|PXI]] pxi_id bad check&lt;br /&gt;
| The Process9 code responsible for [[PXI_Registers|PXI]] communications read pxi_id as a signed char. There were two flaws:&lt;br /&gt;
* They used it as index to a lookup-table without checking the value at all.&lt;br /&gt;
* Another function verified that pxi_id &amp;lt; 7, allowing negative values to pass the check. This would also cause an out-of-range table-lookup.&lt;br /&gt;
| Maybe ARM9 code execution&lt;br /&gt;
| [[3.0.0-5|3.0.0-5]]&lt;br /&gt;
|&lt;br /&gt;
| March 2015, originally 2012 for the first issue at least&lt;br /&gt;
| &lt;br /&gt;
| [[User:Plutooo|plutoo]], [[User:Yellows8|Yellows8]], maybe others(?)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Kernel9 ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Summary&lt;br /&gt;
!  Description&lt;br /&gt;
!  Successful exploitation result&lt;br /&gt;
!  Fixed in [[FIRM]] system version&lt;br /&gt;
!  Last [[FIRM]] system version this flaw was checked for&lt;br /&gt;
!  Timeframe this was discovered&lt;br /&gt;
!  Discovered by&lt;br /&gt;
|-&lt;br /&gt;
| [[CONFIG Registers#CFG9_SYSPROT9|CFG9_SYSPROT9]] bit1 not set by Kernel9&lt;br /&gt;
| Old versions of Kernel9 never set bit1 of [[CONFIG Registers#CFG9_SYSPROT9|CFG9_SYSPROT9]]. This leaves the [[OTP Registers|0x10012000]]-region unprotected (this region should be locked early during boot!). Since it&#039;s never locked, you can dump it once you get ARM9 code execution.&lt;br /&gt;
&lt;br /&gt;
From [[3.0.0-5|3.0.0-X]] this was fixed by setting the bit in Kernel9 after poking some registers in that region. On New3DS arm9loader sets this bit instead of Kernel9, which is exploitable through a hardware + software vulnerability (see arm9loaderhax / description).&lt;br /&gt;
&lt;br /&gt;
This flaw resurged when it gained a new practical use: retrieving the OTP data for a New3DS console in order to decrypt the key data used in arm9loader (see enhanced-arm9loaderhax / description). This was performed by downgrading to a vulnerable system version. By accounting for differences in CTR-NAND crypto (0x05 -&amp;gt; 0x04, see partition encryption types [[Flash_Filesystem#NAND_structure|here]]) and using an Old3DS [[NCSD#NCSD_header|NCSD Header]], it is possible to boot a New3DS using Old3DS firmware 1.0-2.x to retrieve the required OTP data using this flaw.&lt;br /&gt;
| Dumping the [[OTP Registers|OTP]] area.&lt;br /&gt;
Decrypting New3DS sector 0x96 keyblock.&lt;br /&gt;
| [[3.0.0-5|3.0.0-X]]&lt;br /&gt;
|&lt;br /&gt;
| February 2015&lt;br /&gt;
| [[User:Plutooo|plutoo]], Normmatt independently&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== ARM11 software ==&lt;br /&gt;
=== Kernel11 ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Summary&lt;br /&gt;
!  Description&lt;br /&gt;
!  Successful exploitation result&lt;br /&gt;
!  Fixed in [[FIRM]] system version&lt;br /&gt;
!  Last [[FIRM]] system version this flaw was checked for&lt;br /&gt;
!  Timeframe this was discovered&lt;br /&gt;
!  Discovered by&lt;br /&gt;
|-&lt;br /&gt;
| [[SVC|svcUnbindInterrupt]] double free when irqId = 15&lt;br /&gt;
| svcBindInterrupt and svcUnbindInterrupt give special treatment to irqId 15 (FIQ helper): the access control list is bypassed and the provided KInterruptEvent (event or semaphore, via handle) is stored inside a singleton static object after having its refcount increased by 1.&lt;br /&gt;
&lt;br /&gt;
svcUnbindInterrupt assumes that the user-provided handle is what is stored in the singleton and will decref the user-provided KInterruptEvent twice, causing a use-after-free if the attacker didn&#039;t actually provide an handle to the same event or semaphore.&lt;br /&gt;
&lt;br /&gt;
This was &amp;quot;fixed&amp;quot; on [[11.14.0-46|11.14.0-X]] by preventing irqId 15 to be bound on retail units altogether (in both functions).&lt;br /&gt;
| Arm11 kernel code execution&lt;br /&gt;
| [[11.14.0-46|11.14.0-X]] (only on retail units)&lt;br /&gt;
| [[11.14.0-46|11.14.0-X]]&lt;br /&gt;
| 2019&lt;br /&gt;
| [[User:TuxSH|TuxSH]], maybe others&lt;br /&gt;
|-&lt;br /&gt;
| [[SVC|svcKernelSetState]] op=3 could map the NULL page&lt;br /&gt;
| svcKernelSetState op=3 param1=1 maps the firmlaunch parameters page to the user-specified VA.&lt;br /&gt;
&lt;br /&gt;
It had previously no check, allowing the attacker to map data at VA 0.&lt;br /&gt;
&lt;br /&gt;
Starting from [[11.14.0-46|11.14.0-X]], the VA must be in the standard 0x10000000-0x14000000 address range.&lt;br /&gt;
| Mapping the NULL page (as RW) to leverage other kernel vulnerabilities&lt;br /&gt;
| [[11.14.0-46|11.14.0-X]]&lt;br /&gt;
| [[11.14.0-46|11.14.0-X]]&lt;br /&gt;
| 2019&lt;br /&gt;
| [[User:TuxSH|TuxSH]]&lt;br /&gt;
|-&lt;br /&gt;
| [[SVC|svcMapProcessMemory]] can map the NULL page&lt;br /&gt;
| svcMapProcessMemory&#039;s destination VA is unchecked.&lt;br /&gt;
&lt;br /&gt;
By passing a big enough &amp;quot;size&amp;quot; parameter, an attacker can map chunks of data at VA 0 in the destination (caller) process.&lt;br /&gt;
| Mapping the NULL page (as RW) to leverage other kernel vulnerabilities&lt;br /&gt;
| None&lt;br /&gt;
| [[11.14.0-46|11.14.0-X]]&lt;br /&gt;
| 2020&lt;br /&gt;
| [[User:TuxSH|TuxSH]]&lt;br /&gt;
|-&lt;br /&gt;
| Resource limit use-after-free&lt;br /&gt;
| When assigning a KResourceLimit to a KProcess, the reslimit&#039;s refcounter doesn&#039;t get incremented. This essentially means all KResourceLimit get freed if pm gets somehow terminated.&lt;br /&gt;
&lt;br /&gt;
It turns out it is possible to ask pm (via ns:s or pm:app) to terminate itself along all other KIPs simply by passing TID 0004000100001000.&lt;br /&gt;
&lt;br /&gt;
Calling [[SVC|svcGetResourceLimit]] afterwards triggers a use-after-free. This is rather difficult to exploit, however: there is one slot left in the reslimit slabheap. An attacker either has to map the NULL page as R(W)X (svcControlProcessMemory vuln fixed on [[11.8.0-41|11.8.0-X]]), or use one of the map-null exploits above while having access to svcCreateResourceLimit (with the only one that is easy enough to use in that context having been fixed on [[11.14.0-46|11.14.0-X]], anyway).&lt;br /&gt;
| Arm11 kernel code execution&lt;br /&gt;
| None (although near impossible to exploit on [[11.14.0-46|11.14.0-X]])&lt;br /&gt;
| [[11.14.0-46|11.14.0-X]]&lt;br /&gt;
| 2020&lt;br /&gt;
| [[User:TuxSH|TuxSH]]&lt;br /&gt;
|-&lt;br /&gt;
| [[SVC|svcSetProcessIdealProcessor]] reference count overflow and therefore use-after-free.&lt;br /&gt;
| The SVC receive two arguments: handle and idealprocessor. The handle is used to get the KProcess object and the KProcess-&amp;gt;refCnt gets incremented,later the function check if the KProcess-&amp;gt;mem_type != BASE and if yes, it checks for idealprocessor == 2 or idealprocessor != 3. The problem here is that if you pass the idealprocessor = 3 it won&#039;t meet any condition and return the error 0xD9001BEA without decrement the reference count. &lt;br /&gt;
It can be abused to overflow the KProcess reference count that will lead to an Use-after-free. &lt;br /&gt;
| Before [[11.2.0-35|11.2.0-X]]: reference count overflow and therefore use-after-free.&lt;br /&gt;
| &lt;br /&gt;
| [[11.6.0-39|11.6.0-X]]&lt;br /&gt;
| November 2, 2017&lt;br /&gt;
| [[User:st4rk|st4rk]]&lt;br /&gt;
|-&lt;br /&gt;
| [[SVC|svcGetThreadList]] process reference leak&lt;br /&gt;
| When given a valid process handle (including &amp;lt;code&amp;gt;0xFFFF8001&amp;lt;/code&amp;gt;), svcGetThreadList forgets to decrement the reference count of the underlying [[KProcess]] instance, after having finished using it.&lt;br /&gt;
| Before [[11.2.0-35|11.2.0-X]]: reference count overflow and therefore use-after-free, but this UAF was most likely not exploitable&lt;br /&gt;
| &lt;br /&gt;
| [[11.3.0-36|11.3.0-X]]&lt;br /&gt;
| April 3, 2017&lt;br /&gt;
| [[User:TuxSH|TuxSH]]&lt;br /&gt;
|-&lt;br /&gt;
| kernelhax via gspwn&lt;br /&gt;
| Originally the kernel didn&#039;t initialize [[CONFIG11_Registers#CFG11_GPUPROT|CFG11_GPUPROT]]. Since it&#039;s 0 at hard-boot, this allowed the GPU to access the entire FCRAM + AXIWRAM.&lt;br /&gt;
| Entire FCRAM+AXIWRAM R/W.&lt;br /&gt;
| [[3.0.0-5|3.0.0-X]]&lt;br /&gt;
| &lt;br /&gt;
| February 7, 2017&lt;br /&gt;
| [[User:Plutooo|plutoo]], [[User:Yellows8|Yellows8]] partly&lt;br /&gt;
|-&lt;br /&gt;
| fasthax&lt;br /&gt;
| When a KTimer is created in pulse mode, the kernel calls a virtual function to reset the timer each time it pulses. The scheduler is locked for that core to avoid race conditions, but another core can call CloseHandle on the timer and free it, leading to a UAF vtable call.&lt;br /&gt;
| See description.&lt;br /&gt;
| [[11.3.0-36|11.3.0-X]]&lt;br /&gt;
| [[11.3.0-36|11.3.0-X]]&lt;br /&gt;
| May 2016&lt;br /&gt;
| nedwill&lt;br /&gt;
|-&lt;br /&gt;
| ipctakeover&lt;br /&gt;
| When sending cmdreplies, it does not validate that the src_addr and src_size match the equivalent dst_addr and dst_size. With a modified addr/size specified in a cmdreply for an output buffer, the data-copy for the first/last pages could be used to overwrite data outside of the buffer specified by the original process.&lt;br /&gt;
&lt;br /&gt;
Used by ctr-httpwn as of v1.2, for &amp;quot;ipctakeover/bosshaxx&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
This can be used to takeover processes where the process is using your service session. Like HTTPC -&amp;gt; BOSS, for bosshaxx above. NIM takeover can be done too(actual stack buffer overflow can trigger), etc.&lt;br /&gt;
| See description.&lt;br /&gt;
| None&lt;br /&gt;
| [[11.3.0-36|11.3.0-X]]&lt;br /&gt;
| November 26, 2016&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| Using IPC input buffers as output buffers&lt;br /&gt;
| When sending cmdreplies, it does not validate that the cmdreply descriptor type matches the equivalent cmdreq descriptor type. This could be used by an exploited sysmodule to use what was intended as an input-buffer as an output-buffer, and also combine other IPC vuln(s) with this.&lt;br /&gt;
&lt;br /&gt;
Used by ctr-httpwn as of v1.2, for &amp;quot;ipctakeover/bosshaxx&amp;quot;.&lt;br /&gt;
| See description.&lt;br /&gt;
| None&lt;br /&gt;
| [[11.3.0-36|11.3.0-X]]&lt;br /&gt;
| November 2016&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
|  [[SVC]] table too small&lt;br /&gt;
|  The table of function pointers for SVC&#039;s only contains entries up to 0x7D, but the biggest allowed SVC for the table is 0x7F. Thus, executing SVC7E or SVC7F would make the SVC-handler read after the buffer, and interpret some ARM instructions as function pointers.&lt;br /&gt;
&lt;br /&gt;
However, this would require patching the kernel .text or modifying SVC-access-control. Even if you could get these to execute, they would still jump to memory that isn&#039;t mapped as executable.&lt;br /&gt;
| &lt;br /&gt;
|  None&lt;br /&gt;
| [[11.3.0-36|11.3.0-X]]&lt;br /&gt;
| 2012&lt;br /&gt;
| Everyone&lt;br /&gt;
|-&lt;br /&gt;
|  [[SVC|svcBackdoor (0x7B)]]&lt;br /&gt;
|  This backdoor allows executing SVC-mode code at the user-specified code-address. This is used by Process9, using this on the ARM11 (with NATIVE_FIRM) required patching the kernel .text or modifying SVC-access-control.&lt;br /&gt;
| See description&lt;br /&gt;
| [[11.0.0-33|11.0.0-X]] (deleted)&lt;br /&gt;
| &lt;br /&gt;
|&lt;br /&gt;
| Everyone&lt;br /&gt;
|-&lt;br /&gt;
| veryslowpidhax&lt;br /&gt;
| &#039;&#039;&#039;This is completely different from the kernelmode-code-execution vuln described in the below separate entry.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
When updating the kernel global PID counter under [[SVC|svcCreateProcess]] the kernel does not check for wraparound to 0x0(the PID for the very first process). This only matters because [[Services|SM-module]] allows processes with PID value less than &amp;lt;total ARM11 FIRM modules&amp;gt; to access &#039;&#039;all&#039;&#039; services, without checking exheader service-access-control; and because Kernel11 checks for the PID to be 1 (loader) to use the input mem-region value on ControlMemory. This alone does not affect access the [[SVC|SVCs]] access table at all.&lt;br /&gt;
&lt;br /&gt;
Inlined ldrex+strex code is used for updating the above counter. [[11.2.0-35|11.2.0-X]] had changes for similar code, but it was only for dedicated ldrex+strex functions(mainly for kernel objects) and hence this PID code was not affected.&lt;br /&gt;
&lt;br /&gt;
With launching+terminating a sysmodule repeatedly with this via ns:s, it would take weeks to finish(if not at least about a month?).&lt;br /&gt;
| Access to all [[Services_API|services]], ControlMemory on any given mem-region.&lt;br /&gt;
| None&lt;br /&gt;
| [[11.3.0-36|11.3.0-X]]&lt;br /&gt;
| 2012 maybe?&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
|  slowhax/waithax&lt;br /&gt;
|  svcWaitSynchronizationN does not decrement the references to valid handles in an array before returning an error when it encounters an invalid handle. This allows one to (slowly) overflow the reference count for a handle object to zero.&lt;br /&gt;
| ARM11 kernel-mode code execution&lt;br /&gt;
| [[11.2.0-35|11.2.0-X]]&lt;br /&gt;
| [[11.2.0-35|11.2.0-X]]&lt;br /&gt;
| 2016&lt;br /&gt;
| nedwill, [[User:Derrek|derrek]]&lt;br /&gt;
|-&lt;br /&gt;
| [[Memory_layout#ARM11_Detailed_virtual_memory_map|0xEFF00000]] / 0xDFF00000 ARM11 kernel virtual-memory&lt;br /&gt;
| The ARM11 kernel-mode 0xEFF00000/0xDFF00000 virtual-memory(size 0x100000) is mapped to phys-mem 0x1FF00000(entire DSP-mem + entire AXIWRAM), with permissions RW-. This is used during ARM11 kernel startup for loading the FIRM-modules from the FIRM section located in DSP-mem, this never seems to be used after that, however. This is never unmapped either.&lt;br /&gt;
| &lt;br /&gt;
| None&lt;br /&gt;
| [[11.3.0-36|11.3.0-X]]&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| memchunkhax2.1&lt;br /&gt;
| Nintendo&#039;s fix for memchunkhax2 in [[10.4.0-29|10.4.0-X]] did not fix the GPU case: one may cause the requisite ToCToU race using gspwn, bypassing the new validation.&lt;br /&gt;
derrek&#039;s original 32c3 presentation for memchunkhax2 commented that a GPU-based attack was possible, but would be difficult.  However, memchunkhax2.1 showed that it was possible to do fairly reliably.&lt;br /&gt;
| ARM11 kernel code execution&lt;br /&gt;
| [[11.0.0-33|11.0.0-X]], via the new [[Memory_Management#MemoryBlockHeader|memchunkhdr]] MAC which prevents modifying memchunkhdr data with DMA.&lt;br /&gt;
| [[11.0.0-33|11.0.0-X]]&lt;br /&gt;
|&lt;br /&gt;
| [[User:Derrek|derrek]], aliaspider&lt;br /&gt;
|-&lt;br /&gt;
| memchunkhax2&lt;br /&gt;
| When allocating a block of memory, the &amp;quot;next&amp;quot; pointer of the [[Memory_Management#MemoryBlockHeader|memchunkhdr]] is accessed without being checked after being mapped to userland.&lt;br /&gt;
This allows a race condition, where the process can change the next pointer just before it&#039;s accessed. By pointing the next pointer to a crafted memchunckhdr in the kernel SlabHeap, some of the SlabHeap is allocated to the calling process, allowing to change vtables of kernel objects. &lt;br /&gt;
| ARM11 kernel code execution&lt;br /&gt;
| [[10.4.0-29|10.4.0-X]] (partially, see memchunkhax2.1)&lt;br /&gt;
| [[10.4.0-29|10.4.0-X]]&lt;br /&gt;
|&lt;br /&gt;
| [[User:Derrek|derrek]]&lt;br /&gt;
|-&lt;br /&gt;
| heaphax&lt;br /&gt;
| Can change the size of free memchunk structures stored in FCRAM using DMA, which leads to the ability to allocate memory chunks over already-allocated memory. This can be used in the SYSTEM region to allocate RW memory over any part of the NS system module, which is enough to take it over.&lt;br /&gt;
| Code execution with access to all of NS&#039;s privileges. (including downgrading) Code execution within any applet.&lt;br /&gt;
| [[11.0.0-33|11.0.0-X]], via the new [[Memory_Management#MemoryBlockHeader|memchunkhdr]] MAC which prevents modifying memchunkhdr data with DMA.&lt;br /&gt;
| [[11.0.0-33|11.0.0-X]]&lt;br /&gt;
| April 2015 ?&lt;br /&gt;
| smea&lt;br /&gt;
|-&lt;br /&gt;
| snshax&lt;br /&gt;
| Can force creation of Safe NS process into gspwn-able memory, allowing for takeover.&lt;br /&gt;
| Code execution with access to all of NS&#039;s privileges. (including downgrading)&lt;br /&gt;
| [[10.1.0-27|10.1.0-X]]&lt;br /&gt;
| [[10.1.0-27|10.1.0-X]]&lt;br /&gt;
| April 2015 ?&lt;br /&gt;
| smea&lt;br /&gt;
|-&lt;br /&gt;
|  AffinityMask/processorid validation&lt;br /&gt;
|  With [[10.0.0-27|10.0.0-X]] the following functions were updated: svcGetThreadAffinityMask, svcGetProcessAffinityMask, svcSetProcessAffinityMask, and svcCreateThread. The code changes for all but svcCreateThread are identical.&lt;br /&gt;
The original code with the first 3 did the following: &lt;br /&gt;
* if(u32_processorcount &amp;gt; ~0x80000001)return 0xe0e01bfd;&lt;br /&gt;
* if(s32_processorcount &amp;gt; &amp;lt;total_cores&amp;gt;)return 0xd8e007fd;&lt;br /&gt;
The following code replaced the above:&lt;br /&gt;
* if(u32_processorcount &amp;gt;= &amp;lt;total_cores+1&amp;gt;)return 0xd8e007fd;&lt;br /&gt;
In theory the latter should catch everything that the former did, so it&#039;s unknown if this was really a security issue.&lt;br /&gt;
&lt;br /&gt;
The svcCreateThread changes with [[10.0.0-27|10.0.0-X]] definitely did fix a security issue.&lt;br /&gt;
* Original code: &amp;quot;if(s32_processorid &amp;gt; &amp;lt;total_cores&amp;gt;)return 0xd8e007fd;&amp;quot;&lt;br /&gt;
* New code: &amp;quot;if(s32_processorid &amp;gt;= &amp;lt;total_cores&amp;gt; || s32_processorid &amp;lt;= -4)return 0xd8e007fd;&amp;quot;&lt;br /&gt;
This fixed an off-by-one issue: if one would use processorid=total_cores, which isn&#039;t actually a valid value, svcCreateThread would accept that value on &amp;lt;[[10.0.0-27|10.0.0-X]]. This results in data being written out-of-bounds(baseaddr = arrayaddr + entrysize*processorid), which has the following result:&lt;br /&gt;
* Old3DS: Useless kernel-mode crash due to accessing unmapped memory.&lt;br /&gt;
* New3DS: uncontrolled data write into a kernel-mode L1 MMU-table. This isn&#039;t really useful: the data can&#039;t be controlled, and the data which gets overwritten is all-zero anyway(this isn&#039;t anywhere near MMU L1 entries for actually mapped memory).&lt;br /&gt;
The previous version also allowed large negative s32_processorid values(negative processorid values are special values not actual procids), but it appears using values like that won&#039;t actually do anything(meaning no crash) besides the thread not running / thread not running for a while(besides triggering a kernelpanic with certain s32_processorid value(s)).&lt;br /&gt;
| Nothing useful&lt;br /&gt;
|  [[10.0.0-27|10.0.0-X]]&lt;br /&gt;
| [[10.0.0-27|10.0.0-X]]&lt;br /&gt;
| svcCreateThread issue: May 31, 2015. The rest: September 8, 2015, via v9.6-&amp;gt;v10.0 ARM11-kernel code-diff.&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| memchunkhax&lt;br /&gt;
| The kernel originally did not validate the data stored in the FCRAM kernel heap [[Memchunkhdr|memchunk-headers]] for free-memory at all. Exploiting this requires raw R/W access to these memchunk-headers, like physical-memory access with gspwn.&lt;br /&gt;
&lt;br /&gt;
There are &#039;&#039;multiple&#039;&#039; ways to exploit this, but the end-result for most of these is the same: overwrite code in AXIWRAM via the 0xEFF00000/0xDFF00000 kernel virtual-memory mapping.&lt;br /&gt;
&lt;br /&gt;
This was fixed in [[9.3.0-21|9.3.0-X]] by checking that the memchunk(including size, next, and prev ptrs) is located within the currently used heap memory. The kernel may also check that the next/prev ptrs are valid compared to other memchunk-headers basically. When any of these checks fail, kernelpanic() is called.&lt;br /&gt;
| When combined with other flaws: ARM11-kernelmode code execution&lt;br /&gt;
| [[9.3.0-21|9.3.0-21]]&lt;br /&gt;
| &lt;br /&gt;
| February 2014&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| Multiple [[KLinkedListNode|KLinkedListNode]] SlabHeap use after free bugs&lt;br /&gt;
| The ARM11-kernel did access the &#039;key&#039; field of [[KLinkedListNode|KLinkedListNode]] objects, which are located on the SlabHeap, after freeing them. Thus, triggering an allocation of a new [[KLinkedListNode|KLinkedListNode]] object at the right time could result in a type-confusion. Pseudo-code:&lt;br /&gt;
SlabHeap_free(KLinkedListNode);&lt;br /&gt;
KObject *obj = KLinkedListNode-&amp;gt;key;  // the object there might have changed!&lt;br /&gt;
This bug appeared all over the place.&lt;br /&gt;
| ARM11-kernelmode code exec maybe&lt;br /&gt;
| [[8.0.0-18|8.0.0-18]]&lt;br /&gt;
| &lt;br /&gt;
| April 2015&lt;br /&gt;
| [[User:Derrek|derrek]]&lt;br /&gt;
|-&lt;br /&gt;
| PXI [[RPC_Command_Structure|Command]] input/output buffer permissions&lt;br /&gt;
| Originally the ARM11-kernel didn&#039;t check permissions for PXI input/output buffers for commands. Starting with [[6.0.0-11|6.0.0]] PXI input/output buffers must have RW permissions, otherwise kernelpanic is triggered.&lt;br /&gt;
| &lt;br /&gt;
| [[6.0.0-11|6.0.0-11]]&lt;br /&gt;
| &lt;br /&gt;
| 2012&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| [[SVC|svcStartInterProcessDma]]&lt;br /&gt;
| For svcStartInterProcessDma, the kernel code had the following flaws:&lt;br /&gt;
&lt;br /&gt;
* Originally the ARM11-kernel read the input DmaConfig structure directly in kernel-mode(ldr(b/h) instructions), without checking whether the DmaConfig address is readable under userland. This was fixed by copying that structure to the SVC-mode stack, using the ldrbt instruction.&lt;br /&gt;
&lt;br /&gt;
* Integer overflows for srcaddr+size and dstaddr+size are now checked(with [[6.0.0-11]]), which were not checked before.&lt;br /&gt;
&lt;br /&gt;
* The kernel now also checks whether the srcaddr/dstaddr (+size) is within userland memory (0x20000000), the kernel now (with [[6.0.0-11]]) returns an error when the address is beyond userland memory. Using an address &amp;gt;=0x20000000 would result in the kernel reading from the process L1 MMU table, beyond the memory allocated for that MMU table(for vaddr-&amp;gt;physaddr conversion). &lt;br /&gt;
| &lt;br /&gt;
| [[6.0.0-11]]&lt;br /&gt;
| &lt;br /&gt;
| DmaConfig issue: unknown. The rest: 2014&lt;br /&gt;
| [[User:Plutooo|plutoo]], [[User:Yellows8|Yellows8]] independently&lt;br /&gt;
|-&lt;br /&gt;
| [[SVC|svcControlMemory]] Parameter checks&lt;br /&gt;
| For svcControlMemory the parameter check had these two flaws:&lt;br /&gt;
&lt;br /&gt;
* The allowed range for addr0, addr1, size parameters depends on which MemoryOperation is being specified. The limitation for GSP heap was only checked if op=(u32)0x10003. By setting a random bit in op that has no meaning (like bit17?), op would instead be (u32)0x30003, and the range-check would be less strict and not accurate. However, the kernel doesn&#039;t actually use the input address for LINEAR memory-mapping at all besides the range-checks, so this isn&#039;t actually useful. This was fixed in the kernel by just checking for the LINEAR bit, instead of comparing the entire MemoryOperation value with 0x10003.&lt;br /&gt;
&lt;br /&gt;
* Integer overflows on (addr0+size) are now checked that previously weren&#039;t (this also applies to most other address checks elsewhere in the kernel).&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| [[5.0.0-11]]&lt;br /&gt;
| &lt;br /&gt;
|&lt;br /&gt;
| [[User:Plutooo|plutoo]]&lt;br /&gt;
|-&lt;br /&gt;
| [[RPC_Command_Structure|Command]] request/response buffer overflow&lt;br /&gt;
| Originally the kernel did not check the word-values from the command-header. Starting with [[5.0.0-11]], the kernel will trigger a kernelpanic() when the total word-size of the entire command(including the cmd-header) is larger than 0x40-words (0x100-bytes). This allows overwriting threadlocalstorage+0x180 in the destination thread. However, since the data written there would be translate parameters (such as header-words + buffer addresses), exploiting this would likely be very difficult, if possible at all.&lt;br /&gt;
&lt;br /&gt;
If the two words at threadlocalstorage+0x180 could be overwritten with controlled data this way, one could then use a command with a buffer-header of &amp;lt;nowiki&amp;gt;((size&amp;lt;&amp;lt;14) | 2)&amp;lt;/nowiki&amp;gt; to write arbitrary memory to any RW userland memory in the destination process.&lt;br /&gt;
| &lt;br /&gt;
| [[5.0.0-11]]&lt;br /&gt;
| &lt;br /&gt;
| v4.1 FIRM -&amp;gt; v5.0 code diff&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| [[SVC|SVC stack allocation overflows]]&lt;br /&gt;
| &lt;br /&gt;
* Syscalls that allocate a variable-length array on stack, only checked bit31 before multiplying by 4/16 (when calculating how much memory to allocate). If a large integer was passed as input to one of these syscalls, an integer overflow would occur, and too little memory would have been allocated on stack resulting in a buffer overrun. &lt;br /&gt;
* The alignment (size+7)&amp;amp;~7 calculation before allocation was not checked for integer overflow.&lt;br /&gt;
&lt;br /&gt;
This might allow for ARM11 kernel code-execution.&lt;br /&gt;
&lt;br /&gt;
(Applies to svcSetResourceLimitValues, svcGetThreadList, svcGetProcessList, svcReplyAndReceive, svcWaitSynchronizationN.)&lt;br /&gt;
| &lt;br /&gt;
| [[5.0.0-11]]&lt;br /&gt;
| &lt;br /&gt;
| v4.1 FIRM -&amp;gt; v5.0 code diff&lt;br /&gt;
| [[User:Plutooo|plutoo]], [[User:Yellows8|Yellows8]] complementary&lt;br /&gt;
|-&lt;br /&gt;
| [[SVC|svcControlMemory]] MemoryOperation MAP memory-permissions&lt;br /&gt;
| svcControlMemory with MemoryOperation=MAP allows mapping the already-mapped process virtual-mem at addr1, to addr0. The lowest address permitted for addr1 is 0x00100000. Originally the ARM11 kernel didn&#039;t check memory permissions for addr1. Therefore .text as addr1 could be mapped elsewhere as RW- memory, which allowed ARM11 userland code-execution.&lt;br /&gt;
| &lt;br /&gt;
| [[4.1.0-8]]&lt;br /&gt;
| &lt;br /&gt;
| 2012&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| [[RPC_Command_Structure|Command]] input/output buffer permissions&lt;br /&gt;
| Originally the ARM11 kernel didn&#039;t check memory permissions for the input/output buffers for commands. Starting with [[4.0.0-7]] the ARM11 kernel will trigger a kernelpanic() if the input/output buffers don&#039;t have the required memory permissions. For example, this allowed a FSUSER file-read to .text, which therefore allowed ARM11-userland code execution.&lt;br /&gt;
| &lt;br /&gt;
| [[4.0.0-7]]&lt;br /&gt;
| &lt;br /&gt;
| 2012&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| [[SVC|svcReadProcessMemory/svcWriteProcessMemory memory]] permissions&lt;br /&gt;
| Originally the kernel only checked the first page(0x1000-bytes) of the src/dst buffers, for svcReadProcessMemory and svcWriteProcessMemory. There is no known retail processes which have access to these SVCs.&lt;br /&gt;
| &lt;br /&gt;
| [[4.0.0-7]]&lt;br /&gt;
| &lt;br /&gt;
| 2012?&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== [[FIRM]] Sysmodules ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Summary&lt;br /&gt;
!  Description&lt;br /&gt;
!  Successful exploitation result&lt;br /&gt;
!  Fixed in [[FIRM]] system version&lt;br /&gt;
!  Last [[FIRM]] system version this flaw was checked for&lt;br /&gt;
!  Timeframe this was discovered&lt;br /&gt;
!  Discovered by&lt;br /&gt;
|-&lt;br /&gt;
| [[Services|&amp;quot;srv:pm&amp;quot;]] process registration&lt;br /&gt;
| Originally any process had access to the port &amp;quot;srv:pm&amp;quot;. The PID&#039;s used for the (un)registration commands are not checked either. This allowed any process to re-register itself with &amp;quot;srv:pm&amp;quot;, and therefore allowed the process to give itself access to any service, bypassing the exheader service-access-control list.&lt;br /&gt;
&lt;br /&gt;
This was fixed in [[7.0.0-13]]: starting with [[7.0.0-13]] &amp;quot;srv:pm&amp;quot; is now a service instead of a globally accessible port. Only processes with PID&#039;s less than 6 (in other words: fs, ldr, sm, pm, pxi modules) have access to it. With [[7.0.0-13]] there can only be one session for &amp;quot;srv:pm&amp;quot; open at a time(this is used by pm module), svcBreak will be executed if more sessions are opened by the processes which can access this.&lt;br /&gt;
&lt;br /&gt;
This flaw was needed for exploiting the &amp;lt;=v4.x Process9 PXI vulnerabilities from ARM11 userland ROP, since most applications don&#039;t have access to those service(s).&lt;br /&gt;
| Access to arbitrary services&lt;br /&gt;
| [[7.0.0-13]]&lt;br /&gt;
| &lt;br /&gt;
| 2012&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| FSDIR null-deref&lt;br /&gt;
| [[Filesystem_services|FS]]-module may crash in some cases when handling directory reading. The trigger seems to be due to using [[FSDir:Close]] without closing the dir-handle afterwards?(Perhaps this is caused by out-of-memory?) This seems to be useless since it&#039;s just a null-deref.&lt;br /&gt;
| &lt;br /&gt;
| None&lt;br /&gt;
| [[9.6.0-24|9.6.0-X]]&lt;br /&gt;
| May 19(?)-20, 2015&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| Useless [[SM]] off-by-one write&lt;br /&gt;
| After accepting a new session, [[SM]] writes a (handler ID (0 for srv: sessions (max. 64), 1 for the srv:pm one), pointer to session context structure in BSS) pair in a global array. However that array is only 64-entry-big instead of 65 (as it ought to be), and no bound check is done in that regard.&lt;br /&gt;
&lt;br /&gt;
Unfortunately, as of [[11.4.0-37]], the overwritten fields are totally unused after their initialization by &amp;lt;code&amp;gt;__libc_init_array&amp;lt;/code&amp;gt;.&lt;br /&gt;
| Not currently exploitable&lt;br /&gt;
| None&lt;br /&gt;
| [[11.4.0-37]]&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| smpwn&lt;br /&gt;
| When registering a new service (or &amp;quot;port&amp;quot;), no bound checks are done on the service table. One can simply call RegisterPort repeatedly to overflow that table: it will overflow into the command replay structure.&lt;br /&gt;
&lt;br /&gt;
Combined with a other minor bugs in the sysmodule, it is possible to take over [[SM]] with this nevertheless difficult-to-exploit vulnerability.&lt;br /&gt;
| Code execution under [[SM]], etc.&lt;br /&gt;
| [[11.16.0-48]]&lt;br /&gt;
| [[11.14.0-46]]&lt;br /&gt;
| July 2017&lt;br /&gt;
| [[User:TuxSH|TuxSH]] (independently), presumably ichfly before &lt;br /&gt;
|-&lt;br /&gt;
| PXI cmdbuf buffer overrun &lt;br /&gt;
| Like its Arm9 counterpart, before version [[5.0.0-11|5.0.0-X]], the PXI system module did not check the command sizes. This makes it possible to get ROP under the PXI sysmodule from a pwned Process9.&lt;br /&gt;
safecerthax uses it to takeover the Arm11 processor after directly getting remote code execution on the Arm9 side. Though, is useless in classic Arm11 -&amp;gt; Arm9 chains.&lt;br /&gt;
| ROP under [[PXI_Services|PXI]]&lt;br /&gt;
| probably [[5.0.0-11|5.0.0-X]]&lt;br /&gt;
| [[11.14.0-46]]&lt;br /&gt;
| &lt;br /&gt;
| Everyone&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Standalone Sysmodules ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Summary&lt;br /&gt;
!  Description&lt;br /&gt;
!  Successful exploitation result&lt;br /&gt;
!  Fixed in system-module system-version&lt;br /&gt;
!  Last system-module system-version this flaw was checked for&lt;br /&gt;
!  Timeframe this was discovered&lt;br /&gt;
!  Timeframe this was added to wiki&lt;br /&gt;
!  Discovered by&lt;br /&gt;
|-&lt;br /&gt;
| [[CSND_Services|CSND]] sysmodule crash due to out of bounds parameters.&lt;br /&gt;
| The CSND command [[CSND:PlaySoundDirectly|PlaySoundDirectly (0x00040080)]] takes a channel ID as the first parameter. Any value outside the range [0-3] makes the system module become unstable or crash due to an out of bounds memory read. &lt;br /&gt;
| Out of bounds memory read, probably not exploitable. More research needed.&lt;br /&gt;
| None&lt;br /&gt;
| [[11.14.0-46]]&lt;br /&gt;
| January 2021&lt;br /&gt;
| January 22, 2021&lt;br /&gt;
| [[User:PabloMK7|PabloMK7]]&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| SSLoth: [[SSL_Services|SSL]] sysmodule improper certificate verification&lt;br /&gt;
| Initially, the SSL sysmodule missed the R_VERIFY_RES_SIGNATURE entry in the &amp;quot;resource list&amp;quot; provided to the RSA BSAFE library. Consequently, it did not check signatures when validating certificate chains. &lt;br /&gt;
| Forge fake certificates, spoof official servers and perform MitM attacks on SSL/TLS connections.&lt;br /&gt;
| [[11.14.0-46]]&lt;br /&gt;
| [[11.14.0-46]]&lt;br /&gt;
| 2020&lt;br /&gt;
| December 18, 2020&lt;br /&gt;
| [[User:Nba_Yoh|MrNbaYoh]], shutterbug2000 (independently)&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| [[CECD_Services|CECD:ndm]] SetNZoneMacFilter (cmd8) stack smashing&lt;br /&gt;
| The length of the mac filter is not checked before being copied to a fixed-size buffer on stack.&lt;br /&gt;
| ROP under [[CECD_Services|CECD]] sysmodule&lt;br /&gt;
| None&lt;br /&gt;
| [[11.13.0-45]]&lt;br /&gt;
| 2020&lt;br /&gt;
| July 20, 2020&lt;br /&gt;
| [[User:Nba_Yoh|MrNbaYoh]]&lt;br /&gt;
|-&lt;br /&gt;
| [[CECD_Services|CECD]] message box access &lt;br /&gt;
| CECD allows any process to write to any message box, thus allowing to write Streetpass data to the message box of any title.&lt;br /&gt;
| Install exploit for any title having a vulnerability in Streetpass data parsers (see CTRSDK Streetpass parser vulnerability).&lt;br /&gt;
| None&lt;br /&gt;
| None&lt;br /&gt;
| ?&lt;br /&gt;
| June 1, 2020&lt;br /&gt;
| Everyone?&lt;br /&gt;
|-&lt;br /&gt;
| [[CECD_Services|CECD]] packet type 0x32/0x34 stack-smashing&lt;br /&gt;
| When parsing Streetpass packets of type 0x32 and 0x34, CECD copies a list without checking the number of entries. The packet length is limited to 0x400 bytes, which is not enough to reach the end of the stack frame and overwrite the return address. However, the buffer located just next to the packet buffer is actually filled with data sent just before, hence actually allowing to overwrite the whole stack frame with conrolled data.&lt;br /&gt;
| RCE under [[CECD_Services|CECD]]&lt;br /&gt;
| [[11.12.0-44]]&lt;br /&gt;
| [[11.12.0-44]]&lt;br /&gt;
| Summer 2019&lt;br /&gt;
| June 1, 2020&lt;br /&gt;
| [[User:Nba_Yoh|MrNbaYoh]]&lt;br /&gt;
|-&lt;br /&gt;
| [[CECD_Services|CECD]] TMP files parser multiple vulnerabilities&lt;br /&gt;
| When parsing &amp;quot;TMP_XXX&amp;quot; files, CECD does not check the number of messages contained in the file. This allows to overflow the array of message pointers and message sizes on the stack. Pointers aren&#039;t controlled and sizes are limited (one cannot send gigabytes of data...), yet the last message size can be an arbitrary value (the current message pointer goes outside the file buffer and the parsing loop is broken). This allows to overwrite a pointer to a lock object on the stack and decrement an arbitrary value in memory. One can change the TMP file parsing mode to have CECD trying to free all the message buffers after parsing the next TMP file. The parsing mode is usually restored when parsing a new TMP file, but an invalid TMP file allows to make a function returns an error before the mode is restored , the return value is not checked and the parser consider the file valid. The message pointers and sizes arrays are not updated though, this is not a problem since the previous TMP file buffer is reused for the new TMP file in memory. Thus the message pointers actually points to controlled data. This allows to get a bunch of fake heap chunk freed, thus a bunch of unsafe unlink arbitrary writes.&lt;br /&gt;
| RCE under [[CECD_Services|CECD]]&lt;br /&gt;
| [[11.12.0-44]]&lt;br /&gt;
| [[11.12.0-44]]&lt;br /&gt;
| Summer 2019&lt;br /&gt;
| June 1, 2020&lt;br /&gt;
| [[User:Nba_Yoh|MrNbaYoh]]&lt;br /&gt;
|-&lt;br /&gt;
| [[Config_Services|CFG]]:CreateConfigInfoBlk integer underflow&lt;br /&gt;
| When creating a new block it checks the size of the block is &amp;lt;= 0x8000, but it doesn&#039;t check that the block size is less than the remaining space. This induces an integer underflow (remaining_space-block_size), the result is then used for another check (buf_start+current_offset+constant &amp;lt;= remaining_space-block_size) and then in a mempcy call (dest = buf_start+(u16)(remaining_space-block_size), size =block_size). This allow for writing past the buffer, however because of the u16 cast in the memcpy call memory has to be mapped from buf_start to buf_start+0x10000 (cannot write backward).&lt;br /&gt;
| Theoritically ROP under CFG services, but BSS section is to small (size &amp;lt;= 0x10000) so it only results in a crash.&lt;br /&gt;
| None&lt;br /&gt;
| [[11.8.0-41]]&lt;br /&gt;
| November, 2018&lt;br /&gt;
| November 24, 2018&lt;br /&gt;
| [[User:Nba_Yoh|MrNbaYoh]]&lt;br /&gt;
|-&lt;br /&gt;
| [[MP:SendDataFrame]] missing input array index validation&lt;br /&gt;
| [[MP:SendDataFrame]] doesn&#039;t validate the input index at cmdreq[1], unless the function for flag=non-zero is executed. This is used to calculate the following, without validating the index at all: someptr = stateptr + (index*0x924) + somestateoffset.&lt;br /&gt;
&lt;br /&gt;
After validating some flags from someptr, when input_flag=0 the input buffer data is copied to someptr+someotheroffset+0x14 with the u16 size loaded from someptr+someotheroffset.&lt;br /&gt;
&lt;br /&gt;
With a large input index someptr could be setup to be at a &amp;lt;target address&amp;gt;, for overwriting memory.&lt;br /&gt;
&lt;br /&gt;
This is probably difficult to exploit.&lt;br /&gt;
| &lt;br /&gt;
| None&lt;br /&gt;
| [[8.0.0-18]](MP-sysmodule v2048)&lt;br /&gt;
| January 22, 2017&lt;br /&gt;
| January 22, 2017&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| [[MP_Services|MP]] cmd1 out-of-bounds handle read&lt;br /&gt;
| MP-sysmodule handles the input parameter for cmd1 as a s32. It checks for &amp;gt;=16, but not &amp;lt;0. With &amp;lt;16 it basically does the following(array of entries 4-bytes each): *outhandle = ((Handle*)(stateptr+offsetinstate))[inputindex].&lt;br /&gt;
&lt;br /&gt;
Hence, this can be used to load any handle in MP-sysmodule memory. MP doesn&#039;t really have any service handles of interest however(can be obtained from elsewhere too).&lt;br /&gt;
| Reading any handle in MP-sysmodule memory.&lt;br /&gt;
| None&lt;br /&gt;
| [[8.0.0-18]](MP-sysmodule v2048)&lt;br /&gt;
| January 21, 2017&lt;br /&gt;
| January 22, 2017&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| AM stack/.bss infoleak via [[AM:ReadTwlBackupInfo]]([[AM:ReadTwlBackupInfoEx|Ex]])&lt;br /&gt;
| After writing the output-info structure to stack, it then copies that structure to the output buffer ptr using the size from the command. The size is not checked. This could be used to read data from the AM-service-thread stack handling the command + .bss.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;This was not tested on hardware.&#039;&#039;&#039;&lt;br /&gt;
| Stack/.bss reading&lt;br /&gt;
| None&lt;br /&gt;
| [[10.0.0-27]](AM v9217)&lt;br /&gt;
| Roughly October 17, 2016&lt;br /&gt;
| October 25, 2016&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| AM module APcert infoleak via 00000000.ctx files&lt;br /&gt;
| Just after a download title is purchased from the eShop, the .ctx is in an initialized state of all FFs past the header. During download, the FF area is filled with the console APcert. Thus, it is possible to create a xorpad from the initial state and use it to decrypt the APcert filled state.&lt;br /&gt;
| APcert contains the deviceID, which can beneficial in decrypting the movable.sed (since deviceID is mathmatically related to the LFCS).&lt;br /&gt;
| None&lt;br /&gt;
| [[11.16.0-49]]&lt;br /&gt;
| August, 2022&lt;br /&gt;
| March 17, 2023&lt;br /&gt;
| zoogie&lt;br /&gt;
|-&lt;br /&gt;
| [[MVD_Services|MVD]]: Stack buffer overflow with [[MVDSTD:SetupOutputBuffers]].&lt;br /&gt;
| The input total_entries is not validated when initially processing the input entry-list. This fixed-size input entry-list is copied to stack from the command request. The loop for processing this initializes a global table, the converted linearmem-&amp;gt;physaddrs used there are also copied to stack(0x8-bytes of physaddrs per entry).&lt;br /&gt;
&lt;br /&gt;
If total_entries is too large, MVD-sysmodule will crash due to reading unmapped memory following the stack(0x10000000). Afterwards if the out-of-bounds total_entries is smaller than that, it will crash due accessing address 0x0, hence this useless.&lt;br /&gt;
| MVD-sysmodule crash.&lt;br /&gt;
| None&lt;br /&gt;
| [[9.0.0-20]]&lt;br /&gt;
| April 22, 2016 (Tested on the 25th)&lt;br /&gt;
| April 25, 2016&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| [[NWM_Services|NWM]]: Using CTRSDK heap with UDS sharedmem from the user-process.&lt;br /&gt;
| See the HTTP-sysmodule section below.&lt;br /&gt;
&lt;br /&gt;
CTRSDK heap is used with the sharedmem from [[NWMUDS:InitializeWithVersion]]. Buffers are allocated/freed under this heap using [[NWMUDS:Bind]] and [[NWMUDS:Unbind]].&lt;br /&gt;
&lt;br /&gt;
Hence, overwriting sharedmem with gspwn then using [[NWMUDS:Unbind]] results in the usual controlled CTRSDK memchunk-header write, similar to HTTP-sysmodule.&lt;br /&gt;
&lt;br /&gt;
This could be done by creating an UDS network, without any other nodes on the network.&lt;br /&gt;
&lt;br /&gt;
Besides CTRSDK memchunk-headers, there are no addresses stored under this sharedmem.&lt;br /&gt;
| ROP under NWM-module.&lt;br /&gt;
| None (need to check, but CTRSDK heap code is vulnerable)&lt;br /&gt;
| [[9.0.0-20|9.0.0-X]]&lt;br /&gt;
| April 10, 2016&lt;br /&gt;
| April 16, 2016&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| [[DLP_Services|DLP]]: Out-of-bounds memory access during spectator [[Download_Play|data-frame]] checksum calculation&lt;br /&gt;
| DLP doesn&#039;t validate the frame_size when receiving spectator data-frames at all, unlike non-spectator data-frames. The actual spectator data-frame parsing code doesn&#039;t use that field either. However, the data-frame checksum calculation code called during checksum verification does use the frame_size for loading the size of the framebuf.&lt;br /&gt;
&lt;br /&gt;
Hence, using a large frame_size like 0xFFFF will result in the checksum calculation code reading data out-of-bounds. This isn&#039;t really useful, you could trigger a remote local-WLAN DLP-sysmodule crash while a 3DS system is scanning for DLP networks(due to accessing unmapped memory), but that&#039;s about all(trying to infoleak with this likely isn&#039;t useful either).&lt;br /&gt;
| DLP-sysmodule crash, handled by dlplay system-application by a &amp;quot;connection interrupted&amp;quot; error eventually then a fatal-error via ErrDisp.&lt;br /&gt;
| None&lt;br /&gt;
| [[10.0.0-27|10.0.0-X]]&lt;br /&gt;
| April 8, 2016 (Tested on the 10th)&lt;br /&gt;
| April 10, 2016&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| [[DLP_Services|DLP]]: Out-of-bounds output data writing during spectator sysupdate titlelist [[Download_Play|data-frame]] handling&lt;br /&gt;
| The total_entries and out_entryindex fields for the titlelist DLP spectator data-frames are not validated. This is parsed during DLP network scanning. Hence, the specified titlelist data can be written out-of-bounds using the specified out_entryindex and total_entries. A crash will occur while reading the input data-frame titlelist if total_entries is larger than 0x27A, due to accessing unmapped memory.&lt;br /&gt;
&lt;br /&gt;
There&#039;s not much non-zero data to overwrite following the output buffer(located in sharedmem), any ptrs are located in sharedmem. Overwriting certain ptr(s) are only known to cause a crash when attempting to use the DLP-client shutdown service-command.&lt;br /&gt;
&lt;br /&gt;
There&#039;s no known way to exploit the above crash, since the linked-list code involves writes zeros(with a controlled start ptr).&lt;br /&gt;
| &lt;br /&gt;
| None&lt;br /&gt;
| [[10.0.0-27|10.0.0-X]]&lt;br /&gt;
| April 8-9, 2016&lt;br /&gt;
| April 10, 2016&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| [[IR_Services|IR]]: Stack buffer overflow with custom hardware&lt;br /&gt;
| Originally IR sysmodule used the read value from the I2C-IR registers TXLVL and RXLVL without validating them at all. See [[10.6.0-31|here]] for the fix. This is the size used for reading the data-recv FIFO, etc. The output buffer for reading is located on the stack.&lt;br /&gt;
&lt;br /&gt;
This should be exploitable if one could successfully setup the custom hardware for this and if the entire intended sizes actually get read from I2C.&lt;br /&gt;
| ROP under IR sysmodule.&lt;br /&gt;
| [[10.6.0-31|10.6.0-31]]&lt;br /&gt;
| &lt;br /&gt;
| February 23, 2016 (Unknown if it was noticed before then)&lt;br /&gt;
| February 23, 2016&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| [[HTTP_Services|HTTP]]: Using CTRSDK heap with sharedmem from the user-process.&lt;br /&gt;
| The data from httpcAddPostDataAscii and other commands is stored under a CTRSDK heap. That heap is the sharedmem specified by the user-process via the HTTPC Initialize command.&lt;br /&gt;
Normally this sharedmem isn&#039;t accessible to the user-process once the sysmodule maps it, hence using it is supposed to be &amp;quot;safe&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
This isn&#039;t the case due to gspwn however. Since CTRSDK heap code is so insecure in general, one can use gspwn to locate the HTTPC sharedmem + read/write it, then trigger a mem-write under the sysmodule. This can then be used to get ROP going under HTTP-sysmodule.&lt;br /&gt;
&lt;br /&gt;
This is exploited by [https://github.com/yellows8/ctr-httpwn/ctr-httpwn ctr-httpwn].&lt;br /&gt;
| ROP under HTTP sysmdule.&lt;br /&gt;
| None&lt;br /&gt;
| [[11.13.0-45|11.13.0-X]]&lt;br /&gt;
| Late 2015&lt;br /&gt;
| March 22, 2016&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| [[NIM_Services|NIM]]: Downloading old title-versions from eShop&lt;br /&gt;
| Multiple NIM service commands(such as [[NIMS:StartDownload]]) use a title-version value specified by the user-process, NIM does not validate that this input version matches the latest version available via SOAP. Therefore, when combined with AM(PXI) [[#Process9|title-downgrading]] via deleting the target eShop title with System Settings Data Management(if the title was already installed), this allows downloading+installing any title-version from eShop &#039;&#039;if&#039;&#039; it&#039;s still available from CDN.&lt;br /&gt;
The easiest way to exploit this is to just patch the eShop system-application code using these NIM commands(ideally the code which loads the title-version).&lt;br /&gt;
&lt;br /&gt;
Originally this was tested with a debugging-system via modded-FIRM, eventually smea implemented it in HANS for the 32c3 release.&lt;br /&gt;
| Downloading old title-versions from eShop&lt;br /&gt;
| None&lt;br /&gt;
| [[10.0.0-27|10.0.0-X]]&lt;br /&gt;
| October 24, 2015 (Unknown when exactly the first eShop title downgrade was actually tested, maybe November)&lt;br /&gt;
| January 7, 2016 (Same day Ironfall v1.0 was removed from CDN via the main-CXI files)&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| [[SPI_Services|SPI]] service out-of-bounds write&lt;br /&gt;
| cmd1 has out-of-bounds write allowing overwrite of some static variables in .data.&lt;br /&gt;
| Code execution under spi sysmodule; access to [[CONFIG11_Registers|CFG11_GPUPROT]] and ultimately kernel code execution. &lt;br /&gt;
| None&lt;br /&gt;
| [[11.14.0-46]]&lt;br /&gt;
| March 2015&lt;br /&gt;
| &lt;br /&gt;
| [[User:Plutooo|plutoo]]&lt;br /&gt;
|-&lt;br /&gt;
| [[NFC_Services|NFC]] module service command buf-overflows&lt;br /&gt;
| NFC module copies data with certain commands, from command input buffers to stack without checking the size. These commands include the following, it&#039;s unknown if there&#039;s more commands with similar issues: &amp;quot;nfc:dev&amp;quot; &amp;lt;0x000C....&amp;gt; and &amp;quot;nfc:s&amp;quot; &amp;lt;0x0037....&amp;gt;.&lt;br /&gt;
Since both of these commands are stubbed in the Old3DS NFC module from the very first version(those just return an error), these issues only affect the New3DS NFC module.&lt;br /&gt;
&lt;br /&gt;
There&#039;s no known retail titles which have access to either of these services.&lt;br /&gt;
| ROP under NFC module.&lt;br /&gt;
| New3DS: None&lt;br /&gt;
| New3DS: [[9.5.0-22]]&lt;br /&gt;
| December 2014?&lt;br /&gt;
| &lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| [[News_Services|NEWSS]] service command notificationID validation failure&lt;br /&gt;
| This module does not validate the input notificationID for &amp;lt;nowiki&amp;gt;&amp;quot;news:s&amp;quot;&amp;lt;/nowiki&amp;gt; service commands. This is an out-of-bounds array index bug. For example, [[NEWSS:SetNotificationHeader]] could be used to exploit news module: this copies the input data(size is properly checked) to: out = newsdb_savedata+0x10 + (someu32array[notificationID]*0x70).&lt;br /&gt;
| ROP under news module.&lt;br /&gt;
| None&lt;br /&gt;
| [[9.7.0-25|9.7.0-X]]&lt;br /&gt;
| December 2014&lt;br /&gt;
| &lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| [[NWMUDS:DecryptBeaconData]] heap buffer overflow&lt;br /&gt;
| input_size = 0x1E * &amp;lt;value the u8 from input_[[NWM_Services|networkstruct]]+0x1D&amp;gt;. Then input_tag0 is copied to a heap buffer. When input_size is larger than 0xFA-bytes, it will then copy input_tag1 to &amp;lt;end_address_of_previous_outbuf&amp;gt;, with size=input_size-0xFA.&lt;br /&gt;
&lt;br /&gt;
This can be triggered by either using this command directly, or by boadcasting a wifi beacon which triggers it while a 3DS system running the target process is in range, when the process is scanning for hosts to connect to. Processes will only pass tag data to this command when the wlancommID and other thing(s) match the values for the process.&lt;br /&gt;
&lt;br /&gt;
There&#039;s no known way to actually exploit this for getting ROP under NWM-module, at the time of originally adding this to the wiki. This is because the data which gets copied out-of-bounds *and* actually causes crash(es), can&#039;t be controlled it seems(with just broadcasting a beacon at least). It&#039;s unknown whether this could be exploited from just using NWMUDS service-cmd(s) directly.&lt;br /&gt;
| Without any actual way to exploit this: NWM-module DoS, resulting in process termination(process crash). This breaks *everything* involving wifi comms, a reboot is required to recover from this.&lt;br /&gt;
| None&lt;br /&gt;
| [[9.0.0-20]]&lt;br /&gt;
| ~September 23, 2014(see the [[NWMUDS:DecryptBeaconData]] page history)&lt;br /&gt;
| August 3, 2015&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| [[HID_Services|HID]] module shared-mem&lt;br /&gt;
| HID module does not validate the index values in [[HID_Shared_Memory|sharedmem]](just changes index to 0 when index == maxval when updating), therefore large values will result in HID module writing HID data to arbitrary addresses.&lt;br /&gt;
| ROP under HID module, but this is *very* unlikely to be exploitable since the data written is HID data.&lt;br /&gt;
| None&lt;br /&gt;
| [[9.3.0-21]]&lt;br /&gt;
| 2014?&lt;br /&gt;
| &lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| gspwn&lt;br /&gt;
| GSP module does not validate addresses given to the GPU. This allows a user-mode application/applet to read/write to a large part of physical FCRAM using GPU DMA. From this, you can overwrite the .text segment of the application you&#039;re running under, and gain real code-execution from a ROP-chain. Normally applets&#039; .text([[Home Menu]], [[Internet Browser]], etc) is located beyond the area accessible by the GPU, except for [[RO_Services|CROs]] used by applets([[Internet Browser]] for example).&lt;br /&gt;
&lt;br /&gt;
FCRAM is gpu-accessible up to physaddr 0x26800000 on Old3DS, and 0x2D800000 on New3DS. This is BASE_memregion_start(aka SYSTEM_memregion_end)-0x400000 (0x800000 with New3DS) with the default memory-layout on Old3DS/New3DS. With [[11.3.0-36|11.3.0-X]] the cutoff now varies due to the new [[SVC]] 0x59. The New3DS &amp;quot;normal&amp;quot;(non-APPLICATION) cutoff was changed to 0x2D000000 due to the new [[SVC]] 0x59.&lt;br /&gt;
| User-mode code execution.&lt;br /&gt;
| None&lt;br /&gt;
| [[9.6.0-24|9.6.0-X]]&lt;br /&gt;
| Early 2014&lt;br /&gt;
| &lt;br /&gt;
| smea, [[User:Yellows8|Yellows8]]/others before then&lt;br /&gt;
|-&lt;br /&gt;
| rohax&lt;br /&gt;
| Using gspwn, it is possible to overwrite a loaded [[CRO0]]/[[CRR0]] after its RSA-signature has been validated. Badly validated [[CRO0]] header leads to arbitrary read/write of memory in the ro-process. This gives code-execution in the ro module, who has access to [[SVC|syscalls]] 0x70-0x72, 0x7D.&lt;br /&gt;
&lt;br /&gt;
This was fixed after [[ninjhax]] release by adding checks on [[CRO0]]-based pointers before writing to them.&lt;br /&gt;
| Memory-mapping syscalls.&lt;br /&gt;
| [[9.3.0-21]]&lt;br /&gt;
| [[9.4.0-21]]&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| smea, [[User:Plutooo|plutoo]] joint effort&lt;br /&gt;
|-&lt;br /&gt;
| Region free&lt;br /&gt;
| Only [[Home Menu]] itself checks gamecards&#039; region when launching them. Therefore, any application launch that is done directly with [[NS]] without signaling Home Menu to launch the app, will result in region checks being bypassed.&lt;br /&gt;
This essentially means launching the gamecard with the [[NS_and_APT_Services|&amp;quot;ns:s&amp;quot;]] service. The main way to exploit this is to trigger a FIRM launch with an application specified, either with a normal FIRM launch or a hardware [[NSS:RebootSystem|reboot]].&lt;br /&gt;
| Launching gamecards from any region + bypassing Home Menu gamecard-sysupdate installation&lt;br /&gt;
| None&lt;br /&gt;
| Last tested with [[10.1.0-27|10.1.0-X]].&lt;br /&gt;
| June(?) 2014&lt;br /&gt;
| &lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| [[NWM_Services|NWM]] service-cmd state null-ptr deref&lt;br /&gt;
| The NWMUDS service command code loads a ptr from .data, adds an offset to that, then passes that as the state address for the actual command-handler function. The value of the ptr loaded from .data is not checked, therefore this will cause crashes due to that being 0x0 when NWMUDS was not properly initialized.&lt;br /&gt;
It&#039;s unknown whether any NWM services besides NWMUDS have this issue.&lt;br /&gt;
| This is rather useless since it&#039;s only a crash caused by a state ptr based at 0x0.&lt;br /&gt;
| None&lt;br /&gt;
| [[9.0.0-20]]&lt;br /&gt;
| 2013?&lt;br /&gt;
| &lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== General/CTRSDK ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Summary&lt;br /&gt;
!  Description&lt;br /&gt;
!  Successful exploitation result&lt;br /&gt;
!  Fixed in version&lt;br /&gt;
!  Last version this flaw was checked for&lt;br /&gt;
!  Timeframe this was discovered&lt;br /&gt;
!  Discovered by&lt;br /&gt;
|-&lt;br /&gt;
| [[CECD_Services|CECD]] Streetpass message exheader stack-smashing&lt;br /&gt;
| When parsing streetpass messages, &amp;quot;nn::cec::CTR::Message::InputMessage&amp;quot; calls &amp;quot;nn::cec::CTR::Message::SetExHeaderWithoutCalc&amp;quot; for each exheader entry in the input message. The number of entries should not exceed 16 but remains unchecked, leading to a stack-buffer-overflow.&lt;br /&gt;
| ROP under any application parsing Streetpass messages&lt;br /&gt;
Remote code execution under [[CECD_Services|CECD]]&lt;br /&gt;
| [[11.12.0-44]]&lt;br /&gt;
| &lt;br /&gt;
| 2019&lt;br /&gt;
| [[User:Nba_Yoh|MrNbaYoh]]&lt;br /&gt;
|-&lt;br /&gt;
| [[NWM_Services|UDS]] beacon additional-data buffer overflow&lt;br /&gt;
| Originally CTRSDK did not validate the UDS additional-data size before using that size to copy the additional-data to a [[NWM_Services|networkstruct]]. This was eventually fixed.&lt;br /&gt;
This was discovered while doing code RE with an old dlp-module version. It&#039;s unknown in what specific CTRSDK version this was fixed, or even what system-version updated titles with a fixed version.&lt;br /&gt;
&lt;br /&gt;
It&#039;s unknown if there&#039;s any titles using a vulnerable CTRSDK version which are also exploitable with this(dlp module can&#039;t be exploited with this).&lt;br /&gt;
&lt;br /&gt;
The maximum number of bytes that can be written beyond the end of the outbuf is 0x37-bytes, with additionaldata_size=0xFF.&lt;br /&gt;
| Perhaps ROP, very difficult if possible with anything at all&lt;br /&gt;
| ?&lt;br /&gt;
| &lt;br /&gt;
| September(?) 2014&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| CTPK buffer overflow&lt;br /&gt;
| At offset 0x20 in CTPK is an array for each texture, each entry is 0x20-bytes. This contains a wordindex(entry+0x18) for some srcdata relative to CTPK+0, and an u8 wordsize(entry+0x14) for this data. The CTRSDK function handling this doesn&#039;t validate the size, when copying srcdata using this size to the output buffer. Applications usually have the output buffer on the stack, hence stack buffer overflow.&lt;br /&gt;
&lt;br /&gt;
While CTPK(*.ctpk) are normally only loaded from RomFS, some application(s) load from elsewhere too.&lt;br /&gt;
| ROP under the target application.&lt;br /&gt;
| None?&lt;br /&gt;
| &amp;quot;[SDK+NINTENDO:CTR_SDK-11_4_0_200_none]&amp;quot;&lt;br /&gt;
| November 14, 2016&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| Pia vulns&lt;br /&gt;
| [https://switchbrew.org/wiki/Switch_System_Flaws#Pia Originally discovered in Pia v5.x for Switch], these vulns are also present in earlier versions (v3.x/4.x/5.x, possibly earlier?) for 3DS (and Wii U too).&lt;br /&gt;
Pia encryption generally wasn&#039;t used pre-Switch (sent packets are plaintext). 3DS is affected by all Pia vulns listed above except for LAN. The functionality for ParseLeaveMeshInvitation doesn&#039;t exist in 3DS Pia v3.9.2. Wii U is affected by all listed Pia vulns except for the LAN vulns.&lt;br /&gt;
| See [https://switchbrew.org/wiki/Switch_System_Flaws#Pia here].&lt;br /&gt;
| Unfixed on 3DS/Wii U&lt;br /&gt;
| &amp;quot;[SDK+Nintendo:PIA_5_4_3]&amp;quot;&lt;br /&gt;
| See [https://switchbrew.org/wiki/Switch_System_Flaws#Pia here]; separately checked later (UpdateConnectionReport) by [[User:Riley|Riley]] on: June 14, 2023&lt;br /&gt;
| [[User:Yellows8|Yellows8]]; added to 3dbrew (UpdateConnectionReport) by [[User:Riley|Riley]] later&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Yellows8</name></author>
	</entry>
	<entry>
		<id>https://www.3dbrew.org/w/index.php?title=11.17.0-50&amp;diff=22226</id>
		<title>11.17.0-50</title>
		<link rel="alternate" type="text/html" href="https://www.3dbrew.org/w/index.php?title=11.17.0-50&amp;diff=22226"/>
		<updated>2023-05-23T13:13:00Z</updated>

		<summary type="html">&lt;p&gt;Yellows8: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The Old3DS+New3DS 11.17.0-50 system update was released on May 23, 2023 (UTC). This Old3DS update was released for the following regions: USA, EUR, and JPN. This New3DS update was released for the following regions: USA, EUR, and JPN.&lt;br /&gt;
&lt;br /&gt;
Security flaws fixed: yes.&lt;br /&gt;
&lt;br /&gt;
==Change-log==&lt;br /&gt;
[https://en-americas-support.nintendo.com/app/answers/detail/a_id/667/kw/system%20update Official] USA change-log:&lt;br /&gt;
*   	Further improvements to overall system stability and other minor adjustments have been made to enhance the user experience.&lt;br /&gt;
*     &lt;br /&gt;
&lt;br /&gt;
==System Titles==&lt;br /&gt;
The following titles were updated: [[CVer]]/[[NVer]], [[System Settings]], [[eShop]], [[Home Menu]] (USA-only), 0004001B00018002 (Web browser Data).&lt;br /&gt;
&lt;br /&gt;
===System Settings===&lt;br /&gt;
Mset can now display the full DSiWare export banner string length without corrupting the stack. This fixes a nearly 4 year-old exploit, [https://github.com/zoogie/Bannerbomb3 Bannerbomb3].&lt;br /&gt;
&lt;br /&gt;
The codebin in ExeFs was updated. RomFs only had localization updated, for USA-region this is: &amp;quot;/message_US_LZ.bin&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=== [[eShop]] ===&lt;br /&gt;
The codebin in ExeFs was updated. No RomFs changes.&lt;br /&gt;
&lt;br /&gt;
=== [[Home Menu]] ===&lt;br /&gt;
The codebin in ExeFs was updated. No RomFs changes.&lt;br /&gt;
&lt;br /&gt;
=== 0004001B00018002 ===&lt;br /&gt;
RomFs changes:&lt;br /&gt;
* &amp;quot;/index_US_English.html&amp;quot;, &amp;quot;/index_US_French.html&amp;quot;, &amp;quot;/index_US_Portuguese.html&amp;quot;, &amp;quot;/index_US_Spanish.html&amp;quot; updated&lt;br /&gt;
* &amp;quot;/json/message_US_English.json&amp;quot;, &amp;quot;/json/message_US_French.json&amp;quot;, &amp;quot;/json/message_US_Portuguese.json&amp;quot;, &amp;quot;/json/message_US_Spanish.json&amp;quot; updated&lt;br /&gt;
* &amp;quot;/version.txt&amp;quot; updated&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
System update report(s):&lt;br /&gt;
* [https://yls8.mtheall.com/ninupdates/reports.php?date=2023-05-23_00-00-33&amp;amp;sys=ctr]&lt;br /&gt;
* [https://yls8.mtheall.com/ninupdates/reports.php?date=2023-05-23_00-00-41&amp;amp;sys=ktr]&lt;/div&gt;</summary>
		<author><name>Yellows8</name></author>
	</entry>
	<entry>
		<id>https://www.3dbrew.org/w/index.php?title=11.17.0-50&amp;diff=22222</id>
		<title>11.17.0-50</title>
		<link rel="alternate" type="text/html" href="https://www.3dbrew.org/w/index.php?title=11.17.0-50&amp;diff=22222"/>
		<updated>2023-05-22T23:01:51Z</updated>

		<summary type="html">&lt;p&gt;Yellows8: /* System Titles */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The Old3DS+New3DS 11.17.0-50 system update was released on May 23, 2023 (UTC). This Old3DS update was released for the following regions: USA, EUR, and JPN. This New3DS update was released for the following regions: USA, EUR, and JPN.&lt;br /&gt;
&lt;br /&gt;
Security flaws fixed: &amp;lt;fill this in manually later, see the updatedetails page from the ninupdates-report page(s) once available for now&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
==Change-log==&lt;br /&gt;
[https://en-americas-support.nintendo.com/app/answers/detail/a_id/667/kw/system%20update Official] USA change-log:&lt;br /&gt;
*   	Further improvements to overall system stability and other minor adjustments have been made to enhance the user experience.&lt;br /&gt;
*     &lt;br /&gt;
&lt;br /&gt;
==System Titles==&lt;br /&gt;
The following titles were updated: [[CVer]]/[[NVer]], [[System Settings]], [[eShop]], [[Home Menu]], 0004001B00018002 (Web browser Data).&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
System update report(s):&lt;br /&gt;
* [https://yls8.mtheall.com/ninupdates/reports.php?date=2023-05-23_00-00-33&amp;amp;sys=ctr]&lt;br /&gt;
* [https://yls8.mtheall.com/ninupdates/reports.php?date=2023-05-23_00-00-41&amp;amp;sys=ktr]&lt;/div&gt;</summary>
		<author><name>Yellows8</name></author>
	</entry>
	<entry>
		<id>https://www.3dbrew.org/w/index.php?title=11.16.0-49&amp;diff=21967</id>
		<title>11.16.0-49</title>
		<link rel="alternate" type="text/html" href="https://www.3dbrew.org/w/index.php?title=11.16.0-49&amp;diff=21967"/>
		<updated>2022-09-12T22:43:28Z</updated>

		<summary type="html">&lt;p&gt;Yellows8: /* System Titles */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The Old3DS+New3DS 11.16.0-49 system update was released on September 13, 2022 (UTC). This Old3DS update was released for the following regions: USA, EUR, and JPN. This New3DS update was released for the following regions: USA, EUR, and JPN.&lt;br /&gt;
&lt;br /&gt;
Security flaws fixed: &amp;lt;fill this in manually later, see the updatedetails page from the ninupdates-report page(s) once available for now&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
==Change-log==&lt;br /&gt;
[https://en-americas-support.nintendo.com/app/answers/detail/a_id/231/~/system-menu-update-history Official] USA change-log:&lt;br /&gt;
*   &lt;br /&gt;
*    Further improvements to overall system stability and other minor adjustments have been made to enhance the user experience.&lt;br /&gt;
*    &lt;br /&gt;
*   &lt;br /&gt;
&lt;br /&gt;
==System Titles==&lt;br /&gt;
The following was updated: NVer and Web browser Data (title 0004001B00018002).&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
System update report(s):&lt;br /&gt;
* [https://yls8.mtheall.com/ninupdates/reports.php?date=2022-09-13_00-00-33&amp;amp;sys=ctr]&lt;br /&gt;
* [https://yls8.mtheall.com/ninupdates/reports.php?date=2022-09-13_00-00-39&amp;amp;sys=ktr]&lt;/div&gt;</summary>
		<author><name>Yellows8</name></author>
	</entry>
	<entry>
		<id>https://www.3dbrew.org/w/index.php?title=11.16.0-48&amp;diff=21951</id>
		<title>11.16.0-48</title>
		<link rel="alternate" type="text/html" href="https://www.3dbrew.org/w/index.php?title=11.16.0-48&amp;diff=21951"/>
		<updated>2022-08-29T22:58:05Z</updated>

		<summary type="html">&lt;p&gt;Yellows8: /* System Titles */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The Old3DS+New3DS 11.16.0-48 system update was released on August 30, 2022 (UTC). This Old3DS update was released for the following regions: USA, EUR, JPN, CHN, KOR, and TWN. This New3DS update was released for the following regions: USA, EUR, JPN, CHN, KOR, and TWN.&lt;br /&gt;
&lt;br /&gt;
Security flaws fixed: &amp;lt;fill this in manually later, see the updatedetails page from the ninupdates-report page(s) once available for now&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
This update does NOT break Luma3DS.&lt;br /&gt;
&lt;br /&gt;
==Change-log==&lt;br /&gt;
[https://en-americas-support.nintendo.com/app/answers/detail/a_id/231/~/system-menu-update-history Official] USA change-log:&lt;br /&gt;
*   &lt;br /&gt;
*    Further improvements to overall system stability and other minor adjustments have been made to enhance the user experience.&lt;br /&gt;
*    &lt;br /&gt;
*   &lt;br /&gt;
&lt;br /&gt;
==System Titles==&lt;br /&gt;
The following was updated: NVer/CVer, eShop, friends-sysmodule, NATIVE_FIRM, mint, Web browser Data (title 0004001B00018002). EULA was also updated only for JPN.&lt;br /&gt;
&lt;br /&gt;
The following changed in the RomFs for 0004001B00018002:&lt;br /&gt;
* &amp;quot;/js/cave.js differ&amp;quot; updated&lt;br /&gt;
* &amp;quot;/js/cave.min.js&amp;quot; updated&lt;br /&gt;
* &amp;quot;/json/&amp;quot;: The &amp;quot;message_&amp;quot; files for localization were updated.&lt;br /&gt;
* &amp;quot;/version.txt&amp;quot; updated&lt;br /&gt;
&lt;br /&gt;
===FIRM===&lt;br /&gt;
Besides the usual changes (version bumps / anti-downgrade list), the only other change was updating sm.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
System update report(s):&lt;br /&gt;
* [https://yls8.mtheall.com/ninupdates/reports.php?date=2022-08-30_00-00-33&amp;amp;sys=ctr]&lt;br /&gt;
* [https://yls8.mtheall.com/ninupdates/reports.php?date=2022-08-30_00-00-41&amp;amp;sys=ktr]&lt;/div&gt;</summary>
		<author><name>Yellows8</name></author>
	</entry>
	<entry>
		<id>https://www.3dbrew.org/w/index.php?title=11.16.0-48&amp;diff=21949</id>
		<title>11.16.0-48</title>
		<link rel="alternate" type="text/html" href="https://www.3dbrew.org/w/index.php?title=11.16.0-48&amp;diff=21949"/>
		<updated>2022-08-29T22:43:14Z</updated>

		<summary type="html">&lt;p&gt;Yellows8: /* System Titles */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The Old3DS+New3DS 11.16.0-48 system update was released on August 30, 2022 (UTC). This Old3DS update was released for the following regions: USA, EUR, JPN, CHN, KOR, and TWN. This New3DS update was released for the following regions: USA, EUR, JPN, CHN, KOR, and TWN.&lt;br /&gt;
&lt;br /&gt;
Security flaws fixed: &amp;lt;fill this in manually later, see the updatedetails page from the ninupdates-report page(s) once available for now&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
==Change-log==&lt;br /&gt;
[https://en-americas-support.nintendo.com/app/answers/detail/a_id/231/~/system-menu-update-history Official] USA change-log:&lt;br /&gt;
*   &lt;br /&gt;
*    Further improvements to overall system stability and other minor adjustments have been made to enhance the user experience.&lt;br /&gt;
*    &lt;br /&gt;
*   &lt;br /&gt;
&lt;br /&gt;
==System Titles==&lt;br /&gt;
The following was updated: NVer/CVer, eShop, friends-sysmodule, NATIVE_FIRM, mint, Web browser Data (title 0004001B00018002). EULA was also updated only for JPN.&lt;br /&gt;
&lt;br /&gt;
===FIRM===&lt;br /&gt;
Besides the usual changes (version bumps / anti-downgrade list), the only other change was updating sm.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
System update report(s):&lt;br /&gt;
* [https://yls8.mtheall.com/ninupdates/reports.php?date=2022-08-30_00-00-33&amp;amp;sys=ctr]&lt;br /&gt;
* [https://yls8.mtheall.com/ninupdates/reports.php?date=2022-08-30_00-00-41&amp;amp;sys=ktr]&lt;/div&gt;</summary>
		<author><name>Yellows8</name></author>
	</entry>
	<entry>
		<id>https://www.3dbrew.org/w/index.php?title=11.16.0-48&amp;diff=21948</id>
		<title>11.16.0-48</title>
		<link rel="alternate" type="text/html" href="https://www.3dbrew.org/w/index.php?title=11.16.0-48&amp;diff=21948"/>
		<updated>2022-08-29T22:40:19Z</updated>

		<summary type="html">&lt;p&gt;Yellows8: /* System Titles */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The Old3DS+New3DS 11.16.0-48 system update was released on August 30, 2022 (UTC). This Old3DS update was released for the following regions: USA, EUR, JPN, CHN, KOR, and TWN. This New3DS update was released for the following regions: USA, EUR, JPN, CHN, KOR, and TWN.&lt;br /&gt;
&lt;br /&gt;
Security flaws fixed: &amp;lt;fill this in manually later, see the updatedetails page from the ninupdates-report page(s) once available for now&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
==Change-log==&lt;br /&gt;
[https://en-americas-support.nintendo.com/app/answers/detail/a_id/231/~/system-menu-update-history Official] USA change-log:&lt;br /&gt;
*   &lt;br /&gt;
*    Further improvements to overall system stability and other minor adjustments have been made to enhance the user experience.&lt;br /&gt;
*    &lt;br /&gt;
*   &lt;br /&gt;
&lt;br /&gt;
==System Titles==&lt;br /&gt;
The following was updated: NVer/CVer, eShop, friends-sysmodule, NATIVE_FIRM, mint, Web browser Data (title 0004001B00018002).&lt;br /&gt;
&lt;br /&gt;
===FIRM===&lt;br /&gt;
Besides the usual changes (version bumps / anti-downgrade list), the only other change was updating sm.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
System update report(s):&lt;br /&gt;
* [https://yls8.mtheall.com/ninupdates/reports.php?date=2022-08-30_00-00-33&amp;amp;sys=ctr]&lt;br /&gt;
* [https://yls8.mtheall.com/ninupdates/reports.php?date=2022-08-30_00-00-41&amp;amp;sys=ktr]&lt;/div&gt;</summary>
		<author><name>Yellows8</name></author>
	</entry>
	<entry>
		<id>https://www.3dbrew.org/w/index.php?title=11.8.0-41&amp;diff=21369</id>
		<title>11.8.0-41</title>
		<link rel="alternate" type="text/html" href="https://www.3dbrew.org/w/index.php?title=11.8.0-41&amp;diff=21369"/>
		<updated>2020-12-21T17:57:43Z</updated>

		<summary type="html">&lt;p&gt;Yellows8: /* System Titles */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The Old3DS+New3DS 11.8.0-41 system update was released on July 30, 2018. This Old3DS+New3DS update was released for the following regions: USA, EUR, JPN, CHN, KOR, and TWN.&lt;br /&gt;
&lt;br /&gt;
Security flaws fixed: &amp;lt;fill this in manually later, see the updatedetails page from the ninupdates-report page(s) once available for now&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
==Change-log==&lt;br /&gt;
[https://en-americas-support.nintendo.com/app/answers/detail/a_id/667/p/430/c/267 Official] USA change-log:&lt;br /&gt;
* Further improvements to overall system stability and other minor adjustments have been made to enhance the user experience&lt;br /&gt;
&lt;br /&gt;
==System Titles==&lt;br /&gt;
&amp;lt;fill this in (manually) later&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===NATIVE_FIRM===&lt;br /&gt;
==== Process9 ====&lt;br /&gt;
Actual code changed in Process9.&lt;br /&gt;
&lt;br /&gt;
pxi:am9 command 0x6d0184 was added, see [[AMPXI:ExportTicketWrapped]]&lt;br /&gt;
&lt;br /&gt;
The anti-downgrade list was updated (versions bumped and new titles were added, such as TWL_FIRM).&lt;br /&gt;
&lt;br /&gt;
====Kernel11====&lt;br /&gt;
3 functions were updated, besides the descriptor parsing func (which had the version value updated):&lt;br /&gt;
&lt;br /&gt;
* [[SVC|svcControlProcessMemory]]: At the start, this was added: &amp;lt;code&amp;gt;if (Addr0==NULL || ((Type==MEMOP_MAP || Type==MEMOP_UNMAP) &amp;amp;&amp;amp; Addr1==NULL)) return 0xD8E007F6;&amp;lt;/code&amp;gt;&lt;br /&gt;
* [[SVC|svcConnectToPort]]: The string comparison func was removed and is now inlined.&lt;br /&gt;
* The SlabHeap object allocator func will now panic if the ptr it would have returned is NULL.&lt;br /&gt;
&lt;br /&gt;
====KIPs====&lt;br /&gt;
No changes.&lt;br /&gt;
&lt;br /&gt;
=== AM ===&lt;br /&gt;
New am:net command 0x8290184 was added, see [[AMNet:ExportTicketWrapped]]. This is used by nim.&lt;br /&gt;
&lt;br /&gt;
=== Friends ===&lt;br /&gt;
fpdver version string bumped to 0xC&lt;br /&gt;
&lt;br /&gt;
=== nim ===&lt;br /&gt;
Added 2 new strings in the codebin: &amp;quot;X-Authentication-Key&amp;quot; and &amp;quot;X-Authentication-Data&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Now uses [[AMNet:ExportTicketWrapped]] during code related to downloading contents(?) (function at 0x143B9C; its caller at 0x123ABC uses amnet:Begin/ResumeImportContent)&lt;br /&gt;
&lt;br /&gt;
If ExportTicketWrapped succeeded, then the new http headers are passed: &amp;quot;X-Authentication-Key&amp;quot; set to base64(wrapped_aes_key) and &amp;quot;X-Authentication-Data&amp;quot; set to base64(crypted_ticket).&lt;br /&gt;
&lt;br /&gt;
==Server-side changes==&lt;br /&gt;
When 11.8.0-41 launched, the X-Authentication headers were not required; however, if they were indeed &amp;quot;voluntarily&amp;quot; sent, unsigned tickets would still have resulted in the download being blocked.&lt;br /&gt;
&lt;br /&gt;
On 2018-8-9, at approximately the later half of 13h GMT, ticket-less downloads (of [[NCCH|contents]] as well as [[TMD]]s) started being blocked for a small number of titles, mainly 1st and 2nd party (but not their entirety: [https://gbatemp.net/threads/z.514370/page-12#post-8210076 list as of 2018-8-11])&lt;br /&gt;
&lt;br /&gt;
The selection of affected titles appears to be manually maintained, and it is speculated (but not readily provable) that contractual limitations may influence Nintendo&#039;s ability to implement this change without consent of the original developers, hence the still very limited number of affected titles.&lt;br /&gt;
&lt;br /&gt;
At a similiar time on 2018-8-22, this restriction started being enforced for all 3DS commercial applications (titleID 00040000-*).&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
System update report(s):&lt;br /&gt;
* [https://yls8.mtheall.com/ninupdates/reports.php?date=07-30-18_08-00-36&amp;amp;sys=ctr]&lt;br /&gt;
* [https://yls8.mtheall.com/ninupdates/reports.php?date=07-30-18_08-00-40&amp;amp;sys=ktr]&lt;/div&gt;</summary>
		<author><name>Yellows8</name></author>
	</entry>
	<entry>
		<id>https://www.3dbrew.org/w/index.php?title=11.14.0-46&amp;diff=21366</id>
		<title>11.14.0-46</title>
		<link rel="alternate" type="text/html" href="https://www.3dbrew.org/w/index.php?title=11.14.0-46&amp;diff=21366"/>
		<updated>2020-12-19T00:10:46Z</updated>

		<summary type="html">&lt;p&gt;Yellows8: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The Old3DS+New3DS 11.14.0-46 system update was released for all regions on November 17, 2020 (UTC). This Old3DS update was released for the following regions: USA, EUR, JPN, CHN, KOR, and TWN. This New3DS update was released for the following regions: USA, EUR, JPN, CHN, KOR, and TWN.&lt;br /&gt;
&lt;br /&gt;
Security flaws fixed: yes.&lt;br /&gt;
&lt;br /&gt;
==Change-log==&lt;br /&gt;
[https://en-americas-support.nintendo.com/app/answers/detail/a_id/231/~/system-menu-update-history Official] USA change-log:&lt;br /&gt;
* Further improvements to overall system stability and other minor adjustments have been made to enhance the user experience.&lt;br /&gt;
&lt;br /&gt;
==System Titles==&lt;br /&gt;
===NATIVE_FIRM===&lt;br /&gt;
====Kernel11====&lt;br /&gt;
* svcBindInterrupt and svcUnbindInterrupt will now only accept to handle Arm11 interrupt 15 (FIQ helper) if its running on development hardware, otherwise 0xD8E007EE is returned:&lt;br /&gt;
** this is because the affected code path in svcUnbindInterrupt is vulnerable to a double-free vulnerability; this change makes it impossible to trigger on consumer hardware&lt;br /&gt;
* When mapping the firmlaunch parameter to the user-specified VA, svcKernelSetState now checks that the provided VA is within the 0x10000000..0x14000000 range (an attacker could previously pass VA=0)&lt;br /&gt;
* The compiler seems to have been upgraded (or the optimization parameters changed)&lt;br /&gt;
&lt;br /&gt;
====KIPs====&lt;br /&gt;
No changes.&lt;br /&gt;
&lt;br /&gt;
====Process9====&lt;br /&gt;
The anti-downgrade list has been updated accordingly. No other changes.&lt;br /&gt;
&lt;br /&gt;
====Kernel9====&lt;br /&gt;
Kernel9 has been updated, presumably it&#039;s just a rebuild with the latest sources and toolchain.&lt;br /&gt;
&lt;br /&gt;
===[[Friend_Services|Friends-sysmodule]]===&lt;br /&gt;
* Reported fpdver upgraded to 0xF.&lt;br /&gt;
&lt;br /&gt;
===[[SSL_Services|SSL-sysmodule]]===&lt;br /&gt;
SSLoth was [[3DS_System_Flaws#Standalone_Sysmodules|fixed]].&lt;br /&gt;
&lt;br /&gt;
Unknown whether there&#039;s other changes.&lt;br /&gt;
&lt;br /&gt;
===[[Internet Browser]]===&lt;br /&gt;
* Fix for both exploits used in zoogie&#039;s browserhax 2020.&lt;br /&gt;
* {...}&lt;br /&gt;
&lt;br /&gt;
===Hotspot list===&lt;br /&gt;
* &amp;quot;nintendo[1-5]&amp;quot;, &amp;quot;NCL-NZSERVICE[2-5]&amp;quot;, and &amp;quot;nzae200818&amp;quot; removed&lt;br /&gt;
* All remaining SSIDs except &amp;quot;NintendoSpotPass[1-2]&amp;quot; are not Nintendo Zones anymore.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
System update report(s):&lt;br /&gt;
* [https://yls8.mtheall.com/ninupdates/reports.php?date=2020-11-17_00-00-33&amp;amp;sys=ctr]&lt;br /&gt;
* [https://yls8.mtheall.com/ninupdates/reports.php?date=2020-11-17_00-00-38&amp;amp;sys=ktr]&lt;/div&gt;</summary>
		<author><name>Yellows8</name></author>
	</entry>
	<entry>
		<id>https://www.3dbrew.org/w/index.php?title=11.10.0-43&amp;diff=20982</id>
		<title>11.10.0-43</title>
		<link rel="alternate" type="text/html" href="https://www.3dbrew.org/w/index.php?title=11.10.0-43&amp;diff=20982"/>
		<updated>2019-05-27T23:12:53Z</updated>

		<summary type="html">&lt;p&gt;Yellows8: /* System Titles */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The Old3DS+New3DS 11.10.0-43 system update was released on May 27, 2019. This Old3DS update was released for the following regions: USA, EUR, JPN, CHN, KOR, and TWN. This New3DS update was released for the following regions: USA, EUR, JPN, CHN, KOR, and TWN.&lt;br /&gt;
&lt;br /&gt;
Security flaws fixed: &amp;lt;fill this in manually later, see the updatedetails page from the ninupdates-report page(s) once available for now&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
==Change-log==&lt;br /&gt;
[https://en-americas-support.nintendo.com/app/answers/detail/a_id/667/p/430/c/267 Official] USA change-log:&lt;br /&gt;
* Further improvements to overall system stability and other minor adjustments have been made to enhance the user experience&lt;br /&gt;
&lt;br /&gt;
==System Titles==&lt;br /&gt;
[[CVer]], [[NVer]], [[BOSS_Services|BOSS]]-sysmodule, EUR-only [[Home Menu]], and title 0004001B00010802 were updated.&lt;br /&gt;
&lt;br /&gt;
===BOSS-sysmodule===&lt;br /&gt;
Codebin was updated.&lt;br /&gt;
&lt;br /&gt;
===[[Home Menu]]===&lt;br /&gt;
Only the EUR Home Menu was updated.&lt;br /&gt;
&lt;br /&gt;
Codebin was updated, no change with RomFS.&lt;br /&gt;
&lt;br /&gt;
===0004001B00010802===&lt;br /&gt;
Content of RomFS &amp;quot;/dummy.txt&amp;quot; was bumped from &#039;4&#039; to &#039;5&#039;.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
System update report(s):&lt;br /&gt;
* [https://yls8.mtheall.com/ninupdates/reports.php?date=05-27-19_08-00-37&amp;amp;sys=ctr]&lt;br /&gt;
* [https://yls8.mtheall.com/ninupdates/reports.php?date=05-27-19_08-00-41&amp;amp;sys=ktr]&lt;/div&gt;</summary>
		<author><name>Yellows8</name></author>
	</entry>
	<entry>
		<id>https://www.3dbrew.org/w/index.php?title=11.10.0-43&amp;diff=20981</id>
		<title>11.10.0-43</title>
		<link rel="alternate" type="text/html" href="https://www.3dbrew.org/w/index.php?title=11.10.0-43&amp;diff=20981"/>
		<updated>2019-05-27T23:07:55Z</updated>

		<summary type="html">&lt;p&gt;Yellows8: /* System Titles */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The Old3DS+New3DS 11.10.0-43 system update was released on May 27, 2019. This Old3DS update was released for the following regions: USA, EUR, JPN, CHN, KOR, and TWN. This New3DS update was released for the following regions: USA, EUR, JPN, CHN, KOR, and TWN.&lt;br /&gt;
&lt;br /&gt;
Security flaws fixed: &amp;lt;fill this in manually later, see the updatedetails page from the ninupdates-report page(s) once available for now&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
==Change-log==&lt;br /&gt;
[https://en-americas-support.nintendo.com/app/answers/detail/a_id/667/p/430/c/267 Official] USA change-log:&lt;br /&gt;
* Further improvements to overall system stability and other minor adjustments have been made to enhance the user experience&lt;br /&gt;
&lt;br /&gt;
==System Titles==&lt;br /&gt;
[[CVer]], [[NVer]], [[BOSS_Services|BOSS]]-sysmodule, EUR-only [[Home Menu]], and title 0004001B00010802 were updated.&lt;br /&gt;
&lt;br /&gt;
===[[Home Menu]]===&lt;br /&gt;
Only the EUR Home Menu was updated.&lt;br /&gt;
&lt;br /&gt;
Codebin was updated, no change with RomFS.&lt;br /&gt;
&lt;br /&gt;
===0004001B00010802===&lt;br /&gt;
Content of RomFS &amp;quot;/dummy.txt&amp;quot; was bumped from &#039;4&#039; to &#039;5&#039;.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
System update report(s):&lt;br /&gt;
* [https://yls8.mtheall.com/ninupdates/reports.php?date=05-27-19_08-00-37&amp;amp;sys=ctr]&lt;br /&gt;
* [https://yls8.mtheall.com/ninupdates/reports.php?date=05-27-19_08-00-41&amp;amp;sys=ktr]&lt;/div&gt;</summary>
		<author><name>Yellows8</name></author>
	</entry>
	<entry>
		<id>https://www.3dbrew.org/w/index.php?title=11.10.0-43&amp;diff=20980</id>
		<title>11.10.0-43</title>
		<link rel="alternate" type="text/html" href="https://www.3dbrew.org/w/index.php?title=11.10.0-43&amp;diff=20980"/>
		<updated>2019-05-27T22:56:32Z</updated>

		<summary type="html">&lt;p&gt;Yellows8: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The Old3DS+New3DS 11.10.0-43 system update was released on May 27, 2019. This Old3DS update was released for the following regions: USA, EUR, JPN, CHN, KOR, and TWN. This New3DS update was released for the following regions: USA, EUR, JPN, CHN, KOR, and TWN.&lt;br /&gt;
&lt;br /&gt;
Security flaws fixed: &amp;lt;fill this in manually later, see the updatedetails page from the ninupdates-report page(s) once available for now&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
==Change-log==&lt;br /&gt;
[https://en-americas-support.nintendo.com/app/answers/detail/a_id/667/p/430/c/267 Official] USA change-log:&lt;br /&gt;
* Further improvements to overall system stability and other minor adjustments have been made to enhance the user experience&lt;br /&gt;
&lt;br /&gt;
==System Titles==&lt;br /&gt;
[[CVer]], [[NVer]], [[BOSS_Services|BOSS]]-sysmodule, EUR-only [[Home Menu]], and title 0004001B00010802 were updated.&lt;br /&gt;
&lt;br /&gt;
===0004001B00010802===&lt;br /&gt;
Content of RomFS &amp;quot;/dummy.txt&amp;quot; was bumped from &#039;4&#039; to &#039;5&#039;.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
System update report(s):&lt;br /&gt;
* [https://yls8.mtheall.com/ninupdates/reports.php?date=05-27-19_08-00-37&amp;amp;sys=ctr]&lt;br /&gt;
* [https://yls8.mtheall.com/ninupdates/reports.php?date=05-27-19_08-00-41&amp;amp;sys=ktr]&lt;/div&gt;</summary>
		<author><name>Yellows8</name></author>
	</entry>
	<entry>
		<id>https://www.3dbrew.org/w/index.php?title=11.8.0-41&amp;diff=20767</id>
		<title>11.8.0-41</title>
		<link rel="alternate" type="text/html" href="https://www.3dbrew.org/w/index.php?title=11.8.0-41&amp;diff=20767"/>
		<updated>2018-07-30T23:41:18Z</updated>

		<summary type="html">&lt;p&gt;Yellows8: /* System Titles */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The Old3DS+New3DS 11.8.0-41 system update was released on July 30, 2018. This Old3DS+New3DS update was released for the following regions: USA, EUR, JPN, CHN, KOR, and TWN. This Old3DS+New3DS update was released for the following regions: USA, EUR, JPN, CHN, KOR, and TWN.&lt;br /&gt;
&lt;br /&gt;
Security flaws fixed: &amp;lt;fill this in manually later, see the updatedetails page from the ninupdates-report page(s) once available for now&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
==Change-log==&lt;br /&gt;
[https://en-americas-support.nintendo.com/app/answers/detail/a_id/667/p/430/c/267 Official] USA change-log:&lt;br /&gt;
* Further improvements to overall system stability and other minor adjustments have been made to enhance the user experience&lt;br /&gt;
&lt;br /&gt;
==System Titles==&lt;br /&gt;
&amp;lt;fill this in (manually) later&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Friends ===&lt;br /&gt;
fpdver version string bumped to 0xC&lt;br /&gt;
&lt;br /&gt;
=== nim ===&lt;br /&gt;
Added 2 new strings in the codebin: &amp;quot;X-Authentication-Key&amp;quot; and &amp;quot;X-Authentication-Data&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
System update report(s):&lt;br /&gt;
* [https://yls8.mtheall.com/ninupdates/reports.php?date=07-30-18_08-00-36&amp;amp;sys=ctr]&lt;br /&gt;
* [https://yls8.mtheall.com/ninupdates/reports.php?date=07-30-18_08-00-40&amp;amp;sys=ktr]&lt;/div&gt;</summary>
		<author><name>Yellows8</name></author>
	</entry>
	<entry>
		<id>https://www.3dbrew.org/w/index.php?title=11.8.0-41&amp;diff=20763</id>
		<title>11.8.0-41</title>
		<link rel="alternate" type="text/html" href="https://www.3dbrew.org/w/index.php?title=11.8.0-41&amp;diff=20763"/>
		<updated>2018-07-30T22:21:11Z</updated>

		<summary type="html">&lt;p&gt;Yellows8: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The Old3DS+New3DS 11.8.0-41 system update was released on July 30, 2018. This Old3DS+New3DS update was released for the following regions: USA, EUR, JPN, CHN, KOR, and TWN. This Old3DS+New3DS update was released for the following regions: USA, EUR, JPN, CHN, KOR, and TWN.&lt;br /&gt;
&lt;br /&gt;
Security flaws fixed: &amp;lt;fill this in manually later, see the updatedetails page from the ninupdates-report page(s) once available for now&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
==Change-log==&lt;br /&gt;
[https://en-americas-support.nintendo.com/app/answers/detail/a_id/667/p/430/c/267 Official] USA change-log:&lt;br /&gt;
* Further improvements to overall system stability and other minor adjustments have been made to enhance the user experience&lt;br /&gt;
&lt;br /&gt;
==System Titles==&lt;br /&gt;
&amp;lt;fill this in (manually) later&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
System update report(s):&lt;br /&gt;
* [https://yls8.mtheall.com/ninupdates/reports.php?date=07-30-18_08-00-36&amp;amp;sys=ctr]&lt;br /&gt;
* [https://yls8.mtheall.com/ninupdates/reports.php?date=07-30-18_08-00-40&amp;amp;sys=ktr]&lt;/div&gt;</summary>
		<author><name>Yellows8</name></author>
	</entry>
	<entry>
		<id>https://www.3dbrew.org/w/index.php?title=11.7.0-40&amp;diff=20723</id>
		<title>11.7.0-40</title>
		<link rel="alternate" type="text/html" href="https://www.3dbrew.org/w/index.php?title=11.7.0-40&amp;diff=20723"/>
		<updated>2018-06-19T20:47:55Z</updated>

		<summary type="html">&lt;p&gt;Yellows8: Merge bot changes with the original page.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The Old3DS+New3DS 11.7.0-40 system update was released on June 18, 2018. This Old3DS update was released for the following regions: USA, EUR, JPN, CHN, KOR, and TWN. This New3DS update was released for the following regions: USA, EUR, JPN, CHN, KOR, and TWN.&lt;br /&gt;
&lt;br /&gt;
Security flaws fixed: &amp;lt;fill this in manually later, see the updatedetails page from the ninupdates-report page(s) once available for now&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
==Change-log==&lt;br /&gt;
[https://en-americas-support.nintendo.com/app/answers/detail/a_id/667/p/430/c/267 Official] USA change-log:&lt;br /&gt;
* Further improvements to overall system stability and other minor adjustments have been made to enhance the user experience&lt;br /&gt;
&lt;br /&gt;
==System Titles==&lt;br /&gt;
&amp;lt;fill this in (manually) later&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Nintendo Zone network settings===&lt;br /&gt;
Most third-party-operated hotspots removed from the list, after the Nintendo Zone service was officially discontinued at the end of March 2018; curiously, the [[Nintendo_Zone|already standing out Best Buy]] and a number of Nintendo hotspots are still listed.&lt;br /&gt;
&lt;br /&gt;
===Home Menu===&lt;br /&gt;
No changes in European romfs&lt;br /&gt;
&lt;br /&gt;
===System Settings===&lt;br /&gt;
Network &amp;gt; Spotpass &amp;gt; Send system data: &amp;quot;opting out while online also stops the usage of [already] collected data&amp;quot; (or so is claimed)&lt;br /&gt;
&lt;br /&gt;
Network &amp;gt; Spotpass &amp;gt; Send system data: renamed from &amp;quot;Send usage data&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Initial setup: &amp;quot;and agree to the privacy policy&amp;quot; added to the EULA prompt&lt;br /&gt;
&lt;br /&gt;
===Error display/EULA viewer applet===&lt;br /&gt;
&amp;quot;accept the Nintendo 3DS Service User Agreement and acknowledge the Privacy Policy&amp;quot; &amp;gt; &amp;quot;accept the Nintendo 3DS Service User Agreement and Privacy Policy&amp;quot;&lt;br /&gt;
&lt;br /&gt;
===EULA text===&lt;br /&gt;
Doesn&#039;t claim anymore the right to collect &amp;quot;your name, your address, birth date, gender&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&amp;quot;If this agreement is terminated, your personal data will be deleted [... limitations about eShop records]&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Other crap hardly any common person cares about in a practical manner.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
System update report(s):&lt;br /&gt;
* [https://yls8.mtheall.com/ninupdates/reports.php?date=06-18-18_08-00-36&amp;amp;sys=ctr]&lt;br /&gt;
* [https://yls8.mtheall.com/ninupdates/reports.php?date=06-18-18_08-00-41&amp;amp;sys=ktr]&lt;/div&gt;</summary>
		<author><name>Yellows8</name></author>
	</entry>
	<entry>
		<id>https://www.3dbrew.org/w/index.php?title=EMMC_Registers&amp;diff=20693</id>
		<title>EMMC Registers</title>
		<link rel="alternate" type="text/html" href="https://www.3dbrew.org/w/index.php?title=EMMC_Registers&amp;diff=20693"/>
		<updated>2018-05-15T12:49:37Z</updated>

		<summary type="html">&lt;p&gt;Yellows8: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;These registers are used to access the system [[Flash_Filesystem|NAND]] and the inserted SD card. Both devices use the same interface. Despite the bus clock of the ARM9 being double of the DSi in 3DS mode the SDMMC controller has HCLK=33.513982 MHz.&lt;br /&gt;
&lt;br /&gt;
=Registers=&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
!  Old3DS&lt;br /&gt;
!  Name&lt;br /&gt;
!  Address&lt;br /&gt;
!  Width&lt;br /&gt;
!  Used by&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: green&amp;quot; | Yes&lt;br /&gt;
| EMMC_CMD&lt;br /&gt;
| 0x10006000&lt;br /&gt;
| 2&lt;br /&gt;
| Boot9, NewKernel9Loader, Process9&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: green&amp;quot; | Yes&lt;br /&gt;
| ?&lt;br /&gt;
| 0x10006002&lt;br /&gt;
| 2&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: green&amp;quot; | Yes&lt;br /&gt;
| EMMC_CMDARG0&lt;br /&gt;
| 0x10006004&lt;br /&gt;
| 2&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: green&amp;quot; | Yes&lt;br /&gt;
| EMMC_CMDARG1&lt;br /&gt;
| 0x10006006&lt;br /&gt;
| 2&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: green&amp;quot; | Yes&lt;br /&gt;
| EMMC_STOP&lt;br /&gt;
| 0x10006008&lt;br /&gt;
| 2&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: green&amp;quot; | Yes&lt;br /&gt;
| EMMC_BLKCOUNT&lt;br /&gt;
| 0x1000600a&lt;br /&gt;
| 2&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: green&amp;quot; | Yes&lt;br /&gt;
| EMMC_RESP0-7&lt;br /&gt;
| 0x1000600c&lt;br /&gt;
| 2*8&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: green&amp;quot; | Yes&lt;br /&gt;
| EMMC_STATUS0&lt;br /&gt;
| 0x1000601c&lt;br /&gt;
| 2&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: green&amp;quot; | Yes&lt;br /&gt;
| EMMC_STATUS1&lt;br /&gt;
| 0x1000601e&lt;br /&gt;
| 2&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: green&amp;quot; | Yes&lt;br /&gt;
| ?&lt;br /&gt;
| 0x10006020&lt;br /&gt;
| 2&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: green&amp;quot; | Yes&lt;br /&gt;
| ?&lt;br /&gt;
| 0x10006022&lt;br /&gt;
| 2&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: green&amp;quot; | Yes&lt;br /&gt;
| EMMC_CLKCTL&lt;br /&gt;
| 0x10006024&lt;br /&gt;
| 2&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: green&amp;quot; | Yes&lt;br /&gt;
| EMMC_BLKLEN&lt;br /&gt;
| 0x10006026&lt;br /&gt;
| 2&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: green&amp;quot; | Yes&lt;br /&gt;
| EMMC_OPT&lt;br /&gt;
| 0x10006028&lt;br /&gt;
| 2&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: green&amp;quot; | Yes&lt;br /&gt;
| EMMC_FIFO&lt;br /&gt;
| 0x10006030&lt;br /&gt;
| 2&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: green&amp;quot; | Yes&lt;br /&gt;
| EMMC_RESET&lt;br /&gt;
| 0x100060E0&lt;br /&gt;
| 2&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The IO interface for SDMC/NAND seems to be very similar to the DSi; see libnds for [https://github.com/devkitPro/libnds/blob/master/source/arm7/sdmmc.twl.c sample code] and [https://github.com/devkitPro/libnds/blob/master/include/nds/arm7/sdmmc.h documentation], and GBATEK for [http://problemkaputt.de/gbatek.htm#dsisdmmcioportscommandparamresponsedata better documentation].&lt;br /&gt;
&lt;br /&gt;
3DS SDMC/NAND IO registers are located at 0x10006000 and apparently mirrored at 0x10007000. It seems the 0x10007000 mirror is never used on retail units.&lt;br /&gt;
&lt;br /&gt;
==EMMC_STATUS0==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
!  Bit&lt;br /&gt;
!  Description&lt;br /&gt;
|-&lt;br /&gt;
| 3&lt;br /&gt;
| SD card removal flag (Set to 1 when SD card is removed)&lt;br /&gt;
|-&lt;br /&gt;
| 4&lt;br /&gt;
| SD card insertion flag (Set to 1 when SD card is inserted)&lt;br /&gt;
|-&lt;br /&gt;
| 5&lt;br /&gt;
| SD card insertion status (0 = missing, 1 = inserted)&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===SD card insertion status===&lt;br /&gt;
Assertion happens around 250 ms after SD card insertion and/or enabling the EMMC hardware (delay could possibly be due to an SD bus timeout?).&lt;/div&gt;</summary>
		<author><name>Yellows8</name></author>
	</entry>
	<entry>
		<id>https://www.3dbrew.org/w/index.php?title=11.6.0-39&amp;diff=20321</id>
		<title>11.6.0-39</title>
		<link rel="alternate" type="text/html" href="https://www.3dbrew.org/w/index.php?title=11.6.0-39&amp;diff=20321"/>
		<updated>2017-09-18T22:50:27Z</updated>

		<summary type="html">&lt;p&gt;Yellows8: /* System Titles */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The Old3DS+New3DS 11.6.0-39 system update was released on September 18, 2017. This Old3DS update was released for the following regions: USA, EUR, JPN, CHN, KOR, and TWN. This New3DS update was released for the following regions: USA, EUR, JPN, CHN, KOR, and TWN.&lt;br /&gt;
&lt;br /&gt;
Security flaws fixed: &amp;lt;fill this in manually later, see the updatedetails page from the ninupdates-report page(s) once available for now&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
==Change-log==&lt;br /&gt;
[http://en-americas-support.nintendo.com/app/answers/detail/a_id/667/p/430/c/267 Official] USA change-log:&lt;br /&gt;
* Further improvements to overall system stability and other minor adjustments have been made to enhance the user experience&lt;br /&gt;
&lt;br /&gt;
==System Titles==&lt;br /&gt;
&amp;lt;fill this in (manually) later&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== NS ===&lt;br /&gt;
For .(ro)data, all 3 regions of &amp;quot;Flipnote Studio 3D&amp;quot; was added to the [[APT:IsTitleAllowed]] list, or at least next to it.&lt;br /&gt;
&lt;br /&gt;
=== Error string CFA ===&lt;br /&gt;
Only for JPN, USA, EUR, KOR&lt;br /&gt;
&lt;br /&gt;
romfs:\180000.bin&lt;br /&gt;
&lt;br /&gt;
romfs:\{RGN_Language}\180000_msbt_LZ.bin&lt;br /&gt;
&lt;br /&gt;
Added errors 018-0311, 018-0312, 018-0701, 018-0702 about the use of an [[Title_list/Patches|outdated application]] on your console (018-0??1) or other players&#039; (018-0??2)&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
System update report(s):&lt;br /&gt;
* [https://yls8.mtheall.com/ninupdates/reports.php?date=09-18-17_08-00-39&amp;amp;sys=ctr]&lt;br /&gt;
* [https://yls8.mtheall.com/ninupdates/reports.php?date=09-18-17_08-00-44&amp;amp;sys=ktr]&lt;/div&gt;</summary>
		<author><name>Yellows8</name></author>
	</entry>
	<entry>
		<id>https://www.3dbrew.org/w/index.php?title=11.5.0-38&amp;diff=20176</id>
		<title>11.5.0-38</title>
		<link rel="alternate" type="text/html" href="https://www.3dbrew.org/w/index.php?title=11.5.0-38&amp;diff=20176"/>
		<updated>2017-07-18T01:17:37Z</updated>

		<summary type="html">&lt;p&gt;Yellows8: /* System Titles */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The Old3DS+New3DS 11.5.0-38 system update was released on July 10, 2017. This Old3DS update was released for the following regions: USA, EUR, JPN, CHN, KOR, and TWN. This New3DS update was released for the following regions: USA, EUR, JPN, CHN, KOR, and TWN.&lt;br /&gt;
&lt;br /&gt;
Security flaws fixed: &amp;lt;fill this in manually later, see the updatedetails page from the ninupdates-report page(s) once available for now&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
==Change-log==&lt;br /&gt;
[http://en-americas-support.nintendo.com/app/answers/detail/a_id/667/p/430/c/267 Official] USA change-log:&lt;br /&gt;
* Further improvements to overall system stability and other minor adjustments have been made to enhance the user experience&lt;br /&gt;
&lt;br /&gt;
==System Titles==&lt;br /&gt;
===Modules===&lt;br /&gt;
====GSP====&lt;br /&gt;
Only one function was changed at all, L_1098C8 (N3DS address), previously L_109B20, to add support for the New 2DS XL. Inside the block executed when bit2 of the 32-bit register 0x1EF00000 is set:&lt;br /&gt;
&lt;br /&gt;
 - if(R_FAILED(CFGS_GetInfoBlk8(n3dsBacklightControl, 8, 0x50009))) *n3dsBacklightControl = 0ULL;&lt;br /&gt;
 + if(systemModel == 5 || R_FAILED(CFGS_GetInfoBlk8(n3dsBacklightControl, 8, 0x50009))) *n3dsBacklightControl = 0ULL;&lt;br /&gt;
&lt;br /&gt;
====ACT====&lt;br /&gt;
...&lt;br /&gt;
&lt;br /&gt;
The New2DSXL model-string(&amp;quot;JAN&amp;quot;) was added to ACT-sysmodule.&lt;br /&gt;
&lt;br /&gt;
===[[Home_Menu]]===&lt;br /&gt;
...&lt;br /&gt;
&lt;br /&gt;
RomFS:&lt;br /&gt;
  &amp;quot;/message/&amp;lt;dirname&amp;gt;/menu_msbt_LZ.bin&amp;quot; Updated with strings which are used on New2DSXL.&lt;br /&gt;
  &amp;quot;/news/US_news/news002_jan_LZ.bin&amp;quot; New file.&lt;br /&gt;
  &amp;quot;/news/US_news/news012_jan_LZ.bin&amp;quot; New file.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
System update report(s):&lt;br /&gt;
* [https://yls8.mtheall.com/ninupdates/reports.php?date=07-10-17_08-00-24&amp;amp;sys=ctr]&lt;br /&gt;
* [https://yls8.mtheall.com/ninupdates/reports.php?date=07-10-17_08-00-30&amp;amp;sys=ktr]&lt;/div&gt;</summary>
		<author><name>Yellows8</name></author>
	</entry>
	<entry>
		<id>https://www.3dbrew.org/w/index.php?title=FIRM&amp;diff=19867</id>
		<title>FIRM</title>
		<link rel="alternate" type="text/html" href="https://www.3dbrew.org/w/index.php?title=FIRM&amp;diff=19867"/>
		<updated>2017-04-12T19:16:09Z</updated>

		<summary type="html">&lt;p&gt;Yellows8: /* NATIVE_FIRM */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page describes the file format for the [[Title list#00040138 - System Firmware|3DS&#039; Firmware]], it contains up to four &#039;sections&#039; of data comprising the ARM9 and ARM11 kernels, and some fundamental processes. The firmware sections are not encrypted. In a nutshell, a FIRM contains all the data required to set up the ARM9 and ARM11 kernels, and basic operating functionality.&lt;br /&gt;
&lt;br /&gt;
The ARM9 section contains the ARM9 kernel (and loader) and the Process9 NCCH (which is the only process run in user mode on the ARM9). The ARM11 sections contain the ARM11 kernel (and loader), and various ARM11 process NCCHs. For NATIVE_FIRM/SAFE_MODE_FIRM these ARM11 processes are sm, fs, pm, loader, and pxi. Normally the 4th section is not used. The code loaded from FIRM is constantly running on the system until another FIRM is launched. The ARM11 kernel is hard-coded to always decompress the ExeFS .code of embedded ARM11 NCCHs without checking the exheader compression bit.&lt;br /&gt;
&lt;br /&gt;
== FIRM Header ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  OFFSET&lt;br /&gt;
!  SIZE&lt;br /&gt;
!  DESCRIPTION&lt;br /&gt;
|-&lt;br /&gt;
|  0x000&lt;br /&gt;
|  4&lt;br /&gt;
|  Magic &#039;FIRM&#039;&lt;br /&gt;
|-&lt;br /&gt;
|  0x004&lt;br /&gt;
|  4&lt;br /&gt;
|  Boot priority (highest value = max prio), this is normally zero.&lt;br /&gt;
|-&lt;br /&gt;
|  0x008&lt;br /&gt;
|  4&lt;br /&gt;
|  ARM11 Entrypoint&lt;br /&gt;
|-&lt;br /&gt;
|  0x00C&lt;br /&gt;
|  4&lt;br /&gt;
|  ARM9 Entrypoint&lt;br /&gt;
|-&lt;br /&gt;
|  0x010&lt;br /&gt;
|  0x030&lt;br /&gt;
|  Reserved&lt;br /&gt;
|-&lt;br /&gt;
|  0x040&lt;br /&gt;
|  0x0C0 (0x030*4)&lt;br /&gt;
|  Firmware Section Headers&lt;br /&gt;
|-&lt;br /&gt;
|  0x100&lt;br /&gt;
|  0x100&lt;br /&gt;
|  RSA-2048 signature of the FIRM header&#039;s SHA-256 hash. The signature is checked when bootrom/Process9 are doing FIRM-launch (with the public key being hardcoded in each). The signature is not checked when installing FIRM to the NAND firm0/firm1 partitions.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Firmware Section Headers ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  OFFSET&lt;br /&gt;
!  SIZE&lt;br /&gt;
!  DESCRIPTION&lt;br /&gt;
|-&lt;br /&gt;
|  0x000&lt;br /&gt;
|  4&lt;br /&gt;
|  Byte offset&lt;br /&gt;
|-&lt;br /&gt;
|  0x004&lt;br /&gt;
|  4&lt;br /&gt;
|  Physical address where the section is loaded to.&lt;br /&gt;
|-&lt;br /&gt;
|  0x008&lt;br /&gt;
|  4&lt;br /&gt;
|  Byte-size.  While loading FIRM this is the field used to determine whether the section exists or not, by checking for value 0x0.&lt;br /&gt;
|-&lt;br /&gt;
|  0x00C&lt;br /&gt;
|  4&lt;br /&gt;
|  Copy-method (0 = NDMA, 1 = XDMA, 2 = CPU mem-copy), Process9 ignores this field. Boot9 doesn&#039;t immediately throw an error when this isn&#039;t 0..2. In that case it will jump over section-data-loading which then results in the hash verification with the below hash being done with the hash already stored in the SHA hardware.&lt;br /&gt;
|-&lt;br /&gt;
|  0x010&lt;br /&gt;
|  0x020&lt;br /&gt;
|  SHA-256 Hash of Firmware Section&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== [[New_3DS]] FIRM ==&lt;br /&gt;
For New3DS firmwares (NATIVE_FIRM, TWL_FIRM, ..), the ARM9 FIRM binary has an additional layer of crypto. At the end of each ARM9 binary, there&#039;s a plaintext loader. The format of the FIRM header is identical to regular 3DS FIRM(the RSA modulo is the same as regular 3DS too).&lt;br /&gt;
&lt;br /&gt;
Before checking [[CONFIG_Registers|CFG_SYSPROT9]] the loader main() does the following:&lt;br /&gt;
* On [[9.5.0-22|9.5.0-X]]: executes a nop instruction with r0=0 and r1=&amp;lt;address of arm9binhdr+0x50&amp;gt;.&lt;br /&gt;
* Clears bit6 in [[AES_Registers|REG_AESKEYCNT]].&lt;br /&gt;
&lt;br /&gt;
If [[CONFIG_Registers#CFG_SYSPROT9|CFG_SYSPROT9]] bit 1 is clear (which means the OTP area is unlocked and so it knows that this is a hard reboot), it does the following things:&lt;br /&gt;
* Clears 0x200-bytes on the stack, then reads [[Flash_Filesystem|NAND]] sector 0x96(NAND image offset 0x12C00), with size 0x200-bytes into that stack buffer.&lt;br /&gt;
* Checks [[CONFIG_Registers#CFG_SYSPROT9|CFG_SYSPROT9]] bit 1 again, if it&#039;s set then it executes a panic function(set r0-r2=0, execute nop instruction, then execute instruction &amp;quot;bkpt 0x99&amp;quot;).&lt;br /&gt;
* Hashes data from the OTP region [[IO_Registers|0x10012000-0x10012090]] using SHA256 via the [[SHA_Registers|SHA]] hardware.&lt;br /&gt;
* Clears bit6 in [[AES_Registers|REG_AESKEYCNT]]. Initializes AES keyslot 0x11 keyX, keyY to the lower and higher portion of the above hash, respectively. Due to the above hashed data, the keyX+keyY here are console-unique.&lt;br /&gt;
* Decrypts the first 0x10-byte block in the above read NAND sector with keyslot 0x11 using AES-ECB. [[9.6.0-24|9.6.0-X]]: Then it decrypts the 0x10-bytes at offset 0x10 in the sector with keyslot 0x11.&lt;br /&gt;
* Then the normalkey, keyX, and keyY, for keyslot 0x11 are cleared to zero. Runs the TWL key-init/etc code which was originally in the ARM9-kernel, then writes 0x2 to [[CONFIG_Registers|CFG_SYSPROT9]] to disable the OTP area.&lt;br /&gt;
* Then it uses the above decrypted block from sector+0 to set the normalkey for keyslot 0x11. Decrypts arm9_bin_buf+0 using keyslot 0x11 with AES-ECB, and initialises keyX for keyslot 0x15 with it.&lt;br /&gt;
* [[9.6.0-24|9.6.0-X]]: Then it uses the above decrypted block from sector+0 to set the normalkey for keyslot 0x11. Decrypts a 0x10-byte block from arm9loader .(ro)data using keyslot 0x11 with AES-ECB, and initializes keyX for keyslot 0x18 with it(same block as previous versions).&lt;br /&gt;
* [[9.6.0-24|9.6.0-X]]: Starting with this version keyslot 0x16 keyX init was moved here, see below for details on this. The code for this is same as  [[9.5.0-22|9.5.0-X]], except the decrypted normalkey from sector+0x10 is used for keyslot 0x11 instead.&lt;br /&gt;
* Initialises KeyX for keyslots 0x18..0x1F(0x19..0x1F with [[9.6.0-24|9.6.0-X]]) with the output of decrypting a 0x10-byte block with AES-ECB using keyslot 0x11. This block was changed to a new one separate from keyslot 0x18, starting with [[9.6.0-24|9.6.0-X]]. The last byte in this 0x10-byte input block is increased by 0x01 after initializing each keyslot. Before doing the crypto each time, the loader sets the normal-key for keyslot 0x11 to the plaintext normalkey from sector+0(+0x10 with [[9.6.0-24|9.6.0-X]]). These are New3DS-specific keys.&lt;br /&gt;
* [[9.5.0-22|9.5.0-X]](moved to above with [[9.6.0-24|9.6.0-X]]): Sets the normal-key for keyslot 0x11 to the same one already decrypted on the stack. Decrypts the 0x10-byte block at arm9binhdr+0x60 with AES-ECB using keyslot 0x11, then sets the keyX for keyslot 0x16 to the output data.&lt;br /&gt;
* [[9.5.0-22|9.5.0-X]]: The normalkey, keyX, and keyY, for keyslot 0x11 are then cleared to zero.&lt;br /&gt;
&lt;br /&gt;
When [[CONFIG_Registers#CFG_SYSPROT9|CFG_SYSPROT9]] bit 1 is set(which means this happens only when this loader runs again for firm-launch), the normalkey, keyX, and keyY, for keyslot 0x11 are cleared to zero.&lt;br /&gt;
&lt;br /&gt;
It sets KeyY for keyslot 0x15(0x16 with [[9.5.0-22|9.5.0-X]]) to arm9_bin_buf+16, the CTR to arm9_bin_buf+32 (both are unique for every version). It then proceeds to decrypt the binary with AES-CTR. When done, it sets the normal-key for the keyslot used for binary decryption to zeros. It then decrypts arm9_bin_buf+64 using an hardcoded keyY for keyslot 0x15([[9.5.0-22|9.5.0-X]]/[[9.6.0-24|9.6.0-X]] also uses keyslot 0x15), sets the normal-key for this keyslot to zeros again, then makes sure the output block is all zeroes. If it is, it does some cleanup then it jumps to the entrypoint for the decrypted binary. Otherwise it will clear the keyX, keyY, and normal-key for each of the keyslots initialized by this loader (on [[9.6.0-24|9.6.0-X]]+, on older versions this was bugged and cleared keys 0x00..0x07 instead of 0x18..0x1F), do cleanup(same cleanup as when the decrypted block is all-zero) then just loop forever.&lt;br /&gt;
&lt;br /&gt;
Thus, the ARM9 binary has the following header:&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  OFFSET&lt;br /&gt;
!  SIZE&lt;br /&gt;
!  DESCRIPTION&lt;br /&gt;
|-&lt;br /&gt;
|  0x000&lt;br /&gt;
|  16&lt;br /&gt;
|  Encrypted KeyX (same for all FIRM&#039;s)&lt;br /&gt;
|-&lt;br /&gt;
|  0x010&lt;br /&gt;
|  16&lt;br /&gt;
|  KeyY&lt;br /&gt;
|-&lt;br /&gt;
|  0x020&lt;br /&gt;
|  16&lt;br /&gt;
|  CTR&lt;br /&gt;
|-&lt;br /&gt;
|  0x030&lt;br /&gt;
|  8&lt;br /&gt;
|  Size of encrypted binary, as ASCII text?&lt;br /&gt;
|-&lt;br /&gt;
|  0x038&lt;br /&gt;
|  8&lt;br /&gt;
|  ?&lt;br /&gt;
|-&lt;br /&gt;
|  0x040&lt;br /&gt;
|  16&lt;br /&gt;
|  Control block&lt;br /&gt;
|-&lt;br /&gt;
|  0x050&lt;br /&gt;
|  16&lt;br /&gt;
|  Added with [[9.5.0-22|9.5.0-X]]. Only used for hardware debugging: a nop instruction is executed with r0=0 and r1=&amp;lt;address of this data&amp;gt;.&lt;br /&gt;
|-&lt;br /&gt;
|  0x060&lt;br /&gt;
|  16&lt;br /&gt;
|  Added with [[9.5.0-22|9.5.0-X]]. Encrypted keyX for keyslot 0x16.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Originally the padding after the header before offset 0x800(start of actual ARM9-binary) was 0xFF bytes, with [[9.5.0-22|9.5.0-X]] this was changed to 0x0.&lt;br /&gt;
&lt;br /&gt;
For the New3DS NATIVE_FIRM arm9-section header, the only difference between the [[8.1.0-0_New3DS]] version and the [[9.0.0-20]] version is that the keyY, CTR, and the block at 0x30 in the header were updated.&lt;br /&gt;
&lt;br /&gt;
===New3DS ARM9 binary loader versions===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  FIRM system version(s)&lt;br /&gt;
!  Description&lt;br /&gt;
|-&lt;br /&gt;
| [[8.1.0-0_New3DS]] - [[9.3.0-21|9.3.0-X]]&lt;br /&gt;
| Initial version.&lt;br /&gt;
|-&lt;br /&gt;
| [[9.5.0-22|9.5.0-X]]&lt;br /&gt;
| Added keyX initialization for keyslot 0x16(see above), and added code for clearing keyslot 0x11 immediately after the code finishes using keyslot 0x11. The keyslot used for arm9bin decryption was changed from 0x15 to 0x16. Added code for clearing keyslot 0x16 when control-block decryption fails. Added code for using arm9bin_hdr+0x50 with a nop instruction, at the very beginning of the main arm9-loader function. Added two new 0x10-blocks to the arm9bin-hdr.&lt;br /&gt;
|-&lt;br /&gt;
| [[9.6.0-24|9.6.0-X]] - [[11.3.0-36|11.3.0-X]]&lt;br /&gt;
| See above and [[9.6.0-24|here]].&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===New3DS ARM9 kernel===&lt;br /&gt;
The only actual code-difference for the Old3DS/New3DS ARM9-kernels&#039; crt0, besides TWL AES / [[IO_Registers|0x10012000]] related code, is that the New3DS ARM9-kernel writes 0x1 to [[CONFIG_Registers|REG_EXTMEMCNT9]] in the crt0.&lt;br /&gt;
&lt;br /&gt;
===New3DS Process9===&lt;br /&gt;
The following is all of the differences for Old3DS/New3DS Process9 with [[9.3.0-21|9.3.0-X]]:&lt;br /&gt;
* The FIRM-launch code called at the end of the New3DS proc9 main() has different mem-range checks.&lt;br /&gt;
* In the New3DS proc9, the v6.0/v7.0 keyinit function at the very beginning(before the original code) had additional code added for setting [[Flash_Filesystem|CTRNAND]] [[AES_Registers|keyslot]] 0x5, with keydata from .data. After setting the keyY, the keyY in .data is cleared.&lt;br /&gt;
* In New3DS proc9, the functions for getting the gamecard crypto keyslots / NCCH keyslot can return New3DS keyslots when New3DS flags(NCSD/NCCH) are set.&lt;br /&gt;
* The code/data for the binary near the end of arm9mem is slightly different, because of memory-region sizes.&lt;br /&gt;
* The only difference in .data(besides the above code binary) is that the New3DS proc9 has an additional 0x10-byte block for the keyslot 0x5 keyY, see above.&lt;br /&gt;
&lt;br /&gt;
== Variations ==&lt;br /&gt;
There exists different official firmwares for the 3DS: The default one (NATIVE_FIRM) is used to run all 3DS content and boots by default, while backwards compatibility is handled by TWL_FIRM and AGB_FIRM. There furthermore is a rescue mode provided by SAFE_MODE_FIRM.&lt;br /&gt;
&lt;br /&gt;
=== NATIVE_FIRM ===&lt;br /&gt;
NATIVE_FIRM is the FIRM which is installed to the [[Flash_Filesystem|NAND]] firm partitions, which is loaded by bootrom.&lt;br /&gt;
&lt;br /&gt;
Version history:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
!  System version&lt;br /&gt;
!  old 3DS title version&lt;br /&gt;
!  old 3DS hex title contentID&lt;br /&gt;
!  Kernel/FIRM version (old 3DS/new 3DS)&lt;br /&gt;
!  FIRM ARM11-sysmodule Product Code&lt;br /&gt;
|-&lt;br /&gt;
| [[Factory_Setup|Factory]] FIRM (titleID 00040001-00000002)&lt;br /&gt;
| v0&lt;br /&gt;
| 00&lt;br /&gt;
| 2.3-0&lt;br /&gt;
|-&lt;br /&gt;
| Pre-1.0. Referenced in the v1.0 Home Menu NCCH plain-region.&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| 2.23-X&lt;br /&gt;
|-&lt;br /&gt;
| [[1.0.0-0|1.0.0]]&lt;br /&gt;
| v432&lt;br /&gt;
| 00&lt;br /&gt;
| 2.27-0&lt;br /&gt;
|-&lt;br /&gt;
| [[1.1.0-1|1.1.0]]&lt;br /&gt;
| v1472&lt;br /&gt;
| 02&lt;br /&gt;
| 2.28-0&lt;br /&gt;
|-&lt;br /&gt;
| [[2.0.0-2|2.0.0]]&lt;br /&gt;
| v2516&lt;br /&gt;
| 09&lt;br /&gt;
| 2.29-7&lt;br /&gt;
|-&lt;br /&gt;
| [[2.1.0-3|2.1.0]]&lt;br /&gt;
| v3553&lt;br /&gt;
| 0B&lt;br /&gt;
| 2.30-18&lt;br /&gt;
| 0608builder&lt;br /&gt;
|-&lt;br /&gt;
| [[2.2.0-X|2.2.0]]&lt;br /&gt;
| v4595&lt;br /&gt;
| 0F&lt;br /&gt;
| 2.31-40&lt;br /&gt;
| 0909builder&lt;br /&gt;
|-&lt;br /&gt;
| [[3.0.0-5|3.0.0]]&lt;br /&gt;
| v5647&lt;br /&gt;
| 18&lt;br /&gt;
| 2.32-15&lt;br /&gt;
| 1128builder&lt;br /&gt;
|-&lt;br /&gt;
| [[4.0.0-7|4.0.0]]&lt;br /&gt;
| v6677&lt;br /&gt;
| 1D&lt;br /&gt;
| 2.33-4&lt;br /&gt;
| 0406builder&lt;br /&gt;
|-&lt;br /&gt;
| [[4.1.0-8|4.1.0]]&lt;br /&gt;
| v7712&lt;br /&gt;
| 1F&lt;br /&gt;
| 2.34-0&lt;br /&gt;
| 0508builder&lt;br /&gt;
|-&lt;br /&gt;
| [[5.0.0-11|5.0.0]]&lt;br /&gt;
| v8758&lt;br /&gt;
| 25&lt;br /&gt;
| 2.35-6&lt;br /&gt;
| 0228builder&lt;br /&gt;
|-&lt;br /&gt;
| [[5.1.0-11|5.1.0]]&lt;br /&gt;
| v9792&lt;br /&gt;
| 26&lt;br /&gt;
| 2.36-0&lt;br /&gt;
| 0401builder&lt;br /&gt;
|-&lt;br /&gt;
| [[6.0.0-11|6.0.0]]&lt;br /&gt;
| v10833&lt;br /&gt;
| 29&lt;br /&gt;
| 2.37-0&lt;br /&gt;
| 0520builder&lt;br /&gt;
|-&lt;br /&gt;
| [[6.1.0-11|6.1.0]]&lt;br /&gt;
| v11872&lt;br /&gt;
| 2A&lt;br /&gt;
| 2.38-0&lt;br /&gt;
| 0625builder&lt;br /&gt;
|-&lt;br /&gt;
| [[7.0.0-13|7.0.0]]&lt;br /&gt;
| v12916&lt;br /&gt;
| 2E&lt;br /&gt;
| 2.39-4&lt;br /&gt;
| 1125builder&lt;br /&gt;
|-&lt;br /&gt;
| [[7.2.0-17|7.2.0]]&lt;br /&gt;
| v13956&lt;br /&gt;
| 30&lt;br /&gt;
| 2.40-0&lt;br /&gt;
| 0404builder&lt;br /&gt;
|-&lt;br /&gt;
| [[8.0.0-18|8.0.0]]&lt;br /&gt;
| v15047&lt;br /&gt;
| 37&lt;br /&gt;
| 2.44-6&lt;br /&gt;
| 0701builder&lt;br /&gt;
|-&lt;br /&gt;
| [[8.1.0-0_New3DS]]&lt;br /&gt;
|N/A&lt;br /&gt;
|N/A&lt;br /&gt;
| 2.45-5&lt;br /&gt;
|-&lt;br /&gt;
| [[9.0.0-20|9.0.0]]&lt;br /&gt;
| v17120&lt;br /&gt;
| 38&lt;br /&gt;
| 2.46-0&lt;br /&gt;
| 0828builder&lt;br /&gt;
|-&lt;br /&gt;
| [[9.3.0-21|9.3.0]]&lt;br /&gt;
| v18182&lt;br /&gt;
| 3F&lt;br /&gt;
| 2.48-3&lt;br /&gt;
| 1125builder&lt;br /&gt;
|-&lt;br /&gt;
| [[9.5.0-22|9.5.0]]&lt;br /&gt;
| v19216&lt;br /&gt;
| 40&lt;br /&gt;
| 2.49-0&lt;br /&gt;
| 0126builder&lt;br /&gt;
|-&lt;br /&gt;
| [[9.6.0-24|9.6.0]]&lt;br /&gt;
| v20262&lt;br /&gt;
| 49&lt;br /&gt;
| 2.50-1&lt;br /&gt;
| 0311builder&lt;br /&gt;
|-&lt;br /&gt;
| [[10.0.0-27|10.0.0]]&lt;br /&gt;
| v21288&lt;br /&gt;
| 4B&lt;br /&gt;
| 2.50-7&lt;br /&gt;
| 0812builder&lt;br /&gt;
|-&lt;br /&gt;
| [[10.2.0-28|10.2.0]]&lt;br /&gt;
| v22313&lt;br /&gt;
| 4C&lt;br /&gt;
| 2.50-9&lt;br /&gt;
| 1009builder&lt;br /&gt;
|-&lt;br /&gt;
| [[10.4.0-29|10.4.0]]&lt;br /&gt;
| v23341&lt;br /&gt;
| 50&lt;br /&gt;
| 2.50-11&lt;br /&gt;
| 1224builder&lt;br /&gt;
|-&lt;br /&gt;
| [[11.0.0-33|11.0.0]]&lt;br /&gt;
| v24368&lt;br /&gt;
| 52&lt;br /&gt;
| 2.51-0&lt;br /&gt;
| 0406builder&lt;br /&gt;
|-&lt;br /&gt;
| [[11.1.0-34|11.1.0]]&lt;br /&gt;
| v25396&lt;br /&gt;
| 56&lt;br /&gt;
| 2.51-2&lt;br /&gt;
| 0805builder&lt;br /&gt;
|-&lt;br /&gt;
| [[11.2.0-35|11.2.0]]&lt;br /&gt;
| v26432&lt;br /&gt;
| 58&lt;br /&gt;
| 2.52-0&lt;br /&gt;
| 1015builder&lt;br /&gt;
|-&lt;br /&gt;
| [[11.3.0-36|11.3.0]]&lt;br /&gt;
| v27476&lt;br /&gt;
| 5C&lt;br /&gt;
| 2.53-0&lt;br /&gt;
| 0126builder&lt;br /&gt;
|-&lt;br /&gt;
| [[11.4.0-37|11.4.0]]&lt;br /&gt;
| v28512&lt;br /&gt;
| 5E&lt;br /&gt;
| 2.54-0&lt;br /&gt;
| 0314builder&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The above kernel/FIRM versions are in the format: &amp;lt;KERNEL_VERSIONMAJOR&amp;gt;.&amp;lt;KERNEL_VERSIONMINOR&amp;gt;-&amp;lt;KERNEL_VERSIONREVISION&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== SAFE_MODE_FIRM ===&lt;br /&gt;
SAFE_MODE is used for running the [[System_Settings#System_Updater|System Updater]]. SAFE_MODE_FIRM and NATIVE_FIRM for the initial versions are exactly the same, except for the system core version fields.&lt;br /&gt;
&lt;br /&gt;
=== TWL_FIRM ===&lt;br /&gt;
TWL_FIRM handles DS(i) backwards compatibility.&lt;br /&gt;
&lt;br /&gt;
The 3DS-mode ARM9 core seems to switch into DSi-mode(for running DSi-mode ARM9 code) by writing to a [[PDN]] register(this changes the memory layout to DSi-mode / etc, therefore this register poke *must* be executed from ITCM). This is the final 3DS-mode register poke before the ARM9 switches into DSi-mode. DS(i)-mode ARM7 code is run on the internal [[ARM7]] core, which is started up during TWL_FIRM boot. Trying to read from the exception-vector region(address 0x0) under this DSi-mode ARM7 seems to only return 0x00/0xFF data. Also note that this DSi-mode ARM7 runs code(stored in TWL_FIRM) which pokes some DSi-mode registers that on the DSi were used for disabling access to the DSi bootROMs, however these registers do not affect the 3DS DSi-mode ARM9/ARM7 &amp;quot;bootrom&amp;quot; region(exceptionvector region + 0x8000) at all.&lt;br /&gt;
&lt;br /&gt;
For shutting down the system, TWL_FIRM writes u8 value 8 to [[I2C]] MCU register 0x20. For returning to 3DS-mode, TWL_FIRM writes value 4 to that MCU register to trigger a hardware system reboot.&lt;br /&gt;
&lt;br /&gt;
The TWL_FIRM ARM11-process includes a TWL bootloader, see [http://dsibrew.org/wiki/Bootloader here] and [[Memory_layout#Detailed_TWL_FIRM_ARM11_Memory|here]] for details.&lt;br /&gt;
&lt;br /&gt;
TWL_FIRM verifies all TWL RSA padding with the following. This is different from the DSi &amp;quot;BIOS&amp;quot; code.&lt;br /&gt;
* The first byte must be 0x0.&lt;br /&gt;
* The second byte must be 0x1 or 0x2.&lt;br /&gt;
* Executes a while(&amp;lt;value of byte at current pos in RSA message&amp;gt;). When the second_byte in the message is 0x1, the byte at curpos must be 0xFF(otherwise the non-zero value of the byte at curpos doesn&#039;t matter). This loop must find a zero byte before offset 0x7F in the message otherwise an error is returned.&lt;br /&gt;
* Returns an address for msg_curpos+1.&lt;br /&gt;
totalhashdatasize = rsasig_bytesize - above position in the message for the hashdata. The actual &amp;quot;totalhashdatasize&amp;quot; in the RSA message must be &amp;lt;= &amp;lt;expected hashdata_size&amp;gt;(0x74 for bootloader). The TWL_FIRM code copies the RSA &amp;quot;hashdata&amp;quot; to the output buffer, using the actual size of the RSA &amp;quot;hashdata&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=== AGB_FIRM ===&lt;br /&gt;
AGB_FIRM handles running GBA VC titles. The ARM9 FIRM section for TWL_FIRM and AGB_FIRM are exactly the same (for TWL_FIRM and AGB_FIRM versions which were updated with the same system-update).&lt;br /&gt;
&lt;br /&gt;
== FIRM Launch Parameters ==&lt;br /&gt;
The FIRM-launch parameters structure is located at FCRAM+0, size 0x1000-bytes. The ARM11-kernel copies this structure elsewhere, then clears the 0x1000-bytes at FCRAM+0. It will not handle an existing structure at FCRAM+0 if [[CONFIG Registers#CFG_BOOTENV|CFG_BOOTENV]] is zero. The ARM9 kernel [[Configuration_Memory#0x1FF80016|writes some values]] about the boot environment to AXI WRAM during init to enable this.&lt;br /&gt;
&lt;br /&gt;
Note: it seems NATIVE_FIRM ARM11-kernel didn&#039;t parse this during boot until [[3.0.0-5|3.0.0-X]]?&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  OFFSET&lt;br /&gt;
!  SIZE&lt;br /&gt;
!  DESCRIPTION&lt;br /&gt;
|-&lt;br /&gt;
| 0x300&lt;br /&gt;
| 0x100&lt;br /&gt;
| &#039;TLNC&#039; block created by TWL applications, handled by NS for backwards-compatibility purposes. See [[NS#Auto-boot|here]] for more info.&lt;br /&gt;
|-&lt;br /&gt;
| 0x400&lt;br /&gt;
| 0x4&lt;br /&gt;
| Flags&lt;br /&gt;
|-&lt;br /&gt;
| 0x410&lt;br /&gt;
| 0xC&lt;br /&gt;
| This is used for overriding the FIRM_* fields in [[Configuration_Memory]], when the flag listed below is set, in the following order(basically just data-copy from here to 0x1FF80060): &amp;quot;FIRM_?&amp;quot;, FIRM_VERSIONREVISION, FIRM_VERSIONMINOR, FIRM_VERSIONMAJOR, FIRM_SYSCOREVER, and FIRM_CTRSDKVERSION.&lt;br /&gt;
|-&lt;br /&gt;
| 0x438&lt;br /&gt;
| 0x4&lt;br /&gt;
| The kernel checks this field for value 0xFFFF, if it matches the kernel uses the rest of these parameter fields, otherwise FIRM-launch parameters fields are ignored by the kernel.&lt;br /&gt;
|-&lt;br /&gt;
| 0x43C&lt;br /&gt;
| 0x4&lt;br /&gt;
| CRC32, this is calculated starting at FIRM-params offset 0x400, with size 0x140(with this field cleared to zero during calculation). When invalid the kernel clears the entire buffer used for storing the FIRM-params, therefore no actual FIRM-params are handled after that.&lt;br /&gt;
|-&lt;br /&gt;
| 0x440&lt;br /&gt;
| 0x10&lt;br /&gt;
| Titleinfo [[Filesystem_services#ProgramInfo|Program Info]], used by NS during NS startup, to launch the specified title when the below flag is set.&lt;br /&gt;
|-&lt;br /&gt;
| 0x450&lt;br /&gt;
| 0x10&lt;br /&gt;
| Titleinfo [[Filesystem_services#ProgramInfo|Program Info]]. This might be used for returning to the specified title, once the above launched title terminates?&lt;br /&gt;
|-&lt;br /&gt;
| 0x460&lt;br /&gt;
| 0x4&lt;br /&gt;
| Bit0: 0 = titleinfo structure isn&#039;t set, 1 = titleinfo structure is set.&lt;br /&gt;
|-&lt;br /&gt;
| 0x480&lt;br /&gt;
| 0x20&lt;br /&gt;
| This can be set via buf1 for [[APT:SendDeliverArg]]/[[APT:StartApplication]].&lt;br /&gt;
|-&lt;br /&gt;
| 0x4A0&lt;br /&gt;
| 0x10&lt;br /&gt;
| This can be set by [[NSS:SetWirelessRebootInfo]].&lt;br /&gt;
|-&lt;br /&gt;
| 0x4B0&lt;br /&gt;
| 0x14&lt;br /&gt;
| SHA1-HMAC of the banner for TWL/NTR titles. This can be set by [[NSS:SetTWLBannerHMAC]].&lt;br /&gt;
|-&lt;br /&gt;
| 0x500&lt;br /&gt;
| 0x40&lt;br /&gt;
| This is used by [[APT:LoadSysMenuArg]] and [[APT:StoreSysMenuArg]].&lt;br /&gt;
|-&lt;br /&gt;
| 0xD70&lt;br /&gt;
| 0x290&lt;br /&gt;
| [[Config Savegame|Config]] data struct for LGY FIRM.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Flags from offset 0x400:&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  OFFSET&lt;br /&gt;
!  SIZE&lt;br /&gt;
!  DESCRIPTION&lt;br /&gt;
|-&lt;br /&gt;
| 0x0&lt;br /&gt;
| 0x1&lt;br /&gt;
| This can be used for overriding the default FCRAM [[Memory_layout|memory-regions]] allocation sizes(APPLICATION, SYSTEM, and BASE). The values for this is the same as [[Configuration_Memory#APPMEMTYPE|Configmem-APPMEMTYPE]]. Values 0-1 are handled the same way by the kernel. However for NS, 0=titleinfo structure for launching a title isn&#039;t set, while non-zero=titleinfo structure is set.&lt;br /&gt;
|-&lt;br /&gt;
| 0x1&lt;br /&gt;
| 0x3&lt;br /&gt;
| Setting bit0 here enables overriding the FIRM_* fields in [[Configuration_Memory]].&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
[[Config Savegame|Config]] struct for booting LGY FIRMs from offset 0xD70:&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  OFFSET&lt;br /&gt;
!  SIZE&lt;br /&gt;
!  DESCRIPTION&lt;br /&gt;
|-&lt;br /&gt;
| 0x0&lt;br /&gt;
| 0x1&lt;br /&gt;
| Config block 0x30000.&lt;br /&gt;
|-&lt;br /&gt;
| 0x1&lt;br /&gt;
| 0x1&lt;br /&gt;
| Config block 0x70001.&lt;br /&gt;
|-&lt;br /&gt;
| 0x2&lt;br /&gt;
| 0x1&lt;br /&gt;
| System language (Config block 0xA0002).&lt;br /&gt;
|-&lt;br /&gt;
| 0x3&lt;br /&gt;
| 0x1&lt;br /&gt;
| [[Cfg:SecureInfoGetRegion|Region from SecureInfo]] (&amp;quot;pseudo-block&amp;quot; 0x140000 in LGY FIRM).&lt;br /&gt;
|-&lt;br /&gt;
| 0x4&lt;br /&gt;
| 0xF&lt;br /&gt;
| [[CfgS:SecureInfoGetSerialNo|Serial number from SecureInfo]] (&amp;quot;pseudo-block&amp;quot; 0x140001 in LGY FIRM).&lt;br /&gt;
|-&lt;br /&gt;
| 0x13&lt;br /&gt;
| 0x1&lt;br /&gt;
| Config block 0x100002.&lt;br /&gt;
|-&lt;br /&gt;
| 0x14&lt;br /&gt;
| 0x10&lt;br /&gt;
| Config block 0x100003.&lt;br /&gt;
|-&lt;br /&gt;
| 0x24&lt;br /&gt;
| 0x2&lt;br /&gt;
| Config block 0x100000.&lt;br /&gt;
|-&lt;br /&gt;
| 0x26&lt;br /&gt;
| 0x1&lt;br /&gt;
| Cleared to zero.&lt;br /&gt;
|-&lt;br /&gt;
| 0x27&lt;br /&gt;
| 0x1&lt;br /&gt;
| Cleared to zero.&lt;br /&gt;
|-&lt;br /&gt;
| 0x28&lt;br /&gt;
| 0x94&lt;br /&gt;
| Config block 0x100001.&lt;br /&gt;
|-&lt;br /&gt;
| 0xBC&lt;br /&gt;
| 0x2&lt;br /&gt;
| Config block 0x50000.&lt;br /&gt;
|-&lt;br /&gt;
| 0xBE&lt;br /&gt;
| 0x2&lt;br /&gt;
| Config block 0x50001.&lt;br /&gt;
|-&lt;br /&gt;
| 0xC0&lt;br /&gt;
| 0x38&lt;br /&gt;
| Config block 0x50002.&lt;br /&gt;
|-&lt;br /&gt;
| 0xF8&lt;br /&gt;
| 0x20&lt;br /&gt;
| Config block 0x50004.&lt;br /&gt;
|-&lt;br /&gt;
| 0x118&lt;br /&gt;
| 0x134&lt;br /&gt;
| Config block 0x20000.&lt;br /&gt;
|-&lt;br /&gt;
| 0x24C&lt;br /&gt;
| 0x10&lt;br /&gt;
| Config block 0x40000.&lt;br /&gt;
|-&lt;br /&gt;
| 0x25C&lt;br /&gt;
| 0x1C&lt;br /&gt;
| Config block 0x40001.&lt;br /&gt;
|-&lt;br /&gt;
| 0x278&lt;br /&gt;
| 0x4&lt;br /&gt;
| Cleared to zero.&lt;br /&gt;
|-&lt;br /&gt;
| 0x27C&lt;br /&gt;
| 0x4&lt;br /&gt;
| Cleared to zero.&lt;br /&gt;
|-&lt;br /&gt;
| 0x280&lt;br /&gt;
| 0x8&lt;br /&gt;
| Config block 0x30001.&lt;br /&gt;
|-&lt;br /&gt;
| 0x288&lt;br /&gt;
| 0x2&lt;br /&gt;
| CRC16 over the above fields from offset 0x0, size 0x288. If not valid, LGY FIRM uses dummy data from .(ro)data.&lt;br /&gt;
|-&lt;br /&gt;
| 0x28A&lt;br /&gt;
| 0x2&lt;br /&gt;
| If non-zero, the size (below) is hardcoded (currently) to value 0x288, otherwise the size field below is used.&lt;br /&gt;
|-&lt;br /&gt;
| 0x28C&lt;br /&gt;
| 0x4&lt;br /&gt;
| Value 0x288 (size used for verifying the CRC16).&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Cleared to zero&amp;quot; fields above are not read at all by LGY FIRM.&lt;/div&gt;</summary>
		<author><name>Yellows8</name></author>
	</entry>
	<entry>
		<id>https://www.3dbrew.org/w/index.php?title=11.4.0-37&amp;diff=19866</id>
		<title>11.4.0-37</title>
		<link rel="alternate" type="text/html" href="https://www.3dbrew.org/w/index.php?title=11.4.0-37&amp;diff=19866"/>
		<updated>2017-04-12T18:28:34Z</updated>

		<summary type="html">&lt;p&gt;Yellows8: /* ARM11 kernel */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The Old3DS+New3DS 11.4.0-37 system update was released on April 10, 2017. This Old3DS update was released for the following regions: USA, EUR, JPN, CHN, KOR, and TWN. This New3DS update was released for the following regions: USA, EUR, JPN, CHN, KOR, and TWN.&lt;br /&gt;
&lt;br /&gt;
Security flaws fixed: yes.&lt;br /&gt;
&lt;br /&gt;
==Change-log==&lt;br /&gt;
[http://en-americas-support.nintendo.com/app/answers/detail/a_id/667/p/430/c/267 Official] USA change-log:&lt;br /&gt;
* Further improvements to overall system stability and other minor adjustments have been made to enhance the user experience&lt;br /&gt;
&lt;br /&gt;
==System Titles==&lt;br /&gt;
===NATIVE_FIRM===&lt;br /&gt;
====Process9====&lt;br /&gt;
Exactly two functions were changed.&lt;br /&gt;
&lt;br /&gt;
The global boolean preventing [[FIRM|SAFE_FIRM]] from being launched is now set in Process9&#039;s main() if [[CONFIG9_Registers#CFG9_BOOTENV|CFG9_BOOTENV]] has bit0 set, that is to say, if it has been launched from a firmlaunch (this register is set to 1 just before a firmlaunch). The following code has also been added in the firmlaunch function itself, immediately after the code-block where the boolean is checked: &amp;lt;code&amp;gt;if(!(CFG9_BOOTENV &amp;amp; 1) /* not a firmlaunch */ || (CFG9_BOOTENV &amp;amp; 6) /* firmlaunched from LGY_FIRM (if even possible at all) */) goto panic&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
This is to properly fix [[3DS_System_Flaws#Process9|safehax]].&lt;br /&gt;
&lt;br /&gt;
====New3DS kernel9loader====&lt;br /&gt;
New3DS kernel9loader wasn&#039;t updated.&lt;br /&gt;
&lt;br /&gt;
====ARM11 kernel====&lt;br /&gt;
There&#039;s exactly three code changes:&lt;br /&gt;
&lt;br /&gt;
* [[CONFIG11_Registers#CFG11_WIFIUNK|CFG11_WIFIUNK]] is now set to 0x10 in Kernel11&#039;s crt0&lt;br /&gt;
* A new SVC, [[SVC|svc 0x5A]] has been introduced, to enable or disable wifi&lt;br /&gt;
* The code handling [[SVC|svcArbitrateAddress]] with type = SIGNAL, has been changed. It now counts the actual number of threads arbitrating on that address, and if it is non-zero, it executes the following hack: &amp;lt;code&amp;gt;if(coreId == 0 &amp;amp;&amp;amp; currentThread-&amp;gt;dynamicPriority &amp;gt;= 50) waitCycles(0x64E)&amp;lt;/code&amp;gt;. This supposedly works around the lag issue in some games, which has been introduced on [[11.3.0-36]]&lt;br /&gt;
&lt;br /&gt;
===Modules===&lt;br /&gt;
No FIRM ARM11 sysmodule was changed.&lt;br /&gt;
&lt;br /&gt;
===[[NWM_Services|NWM-sysmodule]]===&lt;br /&gt;
The [[CONFIG11_Registers]] are no longer directly mapped under userland for NWM-sysmodule.&lt;br /&gt;
This prevents anything under NWM-module from modifying the GPUPROT register. This was used by both *hax payload(prior to v11.4 release) and [https://github.com/smealum/udsploit udsploit].&lt;br /&gt;
&lt;br /&gt;
The codebin was updated.&lt;br /&gt;
&lt;br /&gt;
The crt0-poke in PDN that NWM previously did:&lt;br /&gt;
  0x1EC4010C |= 0x10&lt;br /&gt;
&lt;br /&gt;
.. has been removed from NWM. This one has been moved into kernel bootup.&lt;br /&gt;
&lt;br /&gt;
All accesses to 0x1EC40180 have been replaced by a new syscall, [[SVC|0x5A]].&lt;br /&gt;
&lt;br /&gt;
This now includes code from old CTRSDK update(s). A new func was added for calling a func, previously that func was directly called via vtable funcptr. The only other changes was new heap code(and the code for using it basically), for fixing the NWMUDS sharedmem [[3DS_System_Flaws|vuln]]. This includes code which actually validates heap memchunkhdrs, with svcBreak being executed on failure.&lt;br /&gt;
&lt;br /&gt;
A new string was added at 0x13E200: &amp;quot;used&amp;quot;(with 3 0xFF bytes afterwards), this is used by the new heap code. The wifi-fw was moved from .data to .rodata.&lt;br /&gt;
&lt;br /&gt;
===[[HTTP_Services|HTTP-sysmodule]]===&lt;br /&gt;
There were exactly 3 changes in the HTTP-sysmodule codebin.&lt;br /&gt;
&lt;br /&gt;
Two functions, the memalloc and memfree functions used with HTTP sharedmem, were updated to use the new function. The new function is for heap memchunkhdr validation. This additional code is the same new heap code as NWM-sysmodule. This fixed the vuln used by ctr-httpwn at the time of sysupdate release.&lt;br /&gt;
&lt;br /&gt;
===[[Friend_Services|Friends-sysmodule]]===&lt;br /&gt;
Like past updates the only change in this codebin was the fpdver(0x9-&amp;gt;0xA).&lt;br /&gt;
&lt;br /&gt;
===[[NS_and_APT_Services|NS-sysmodule]]===&lt;br /&gt;
The only changes for NS was version values in the codebin, nothing else.&lt;br /&gt;
&lt;br /&gt;
===[[Internet Browser]]===&lt;br /&gt;
The web-browser was updated, only for New3DS. See [[Internet Browser|here]] for details.&lt;br /&gt;
&lt;br /&gt;
===[[Nintendo_3DS_Sound]]===&lt;br /&gt;
soundhax was fixed, it appears other vulns were fixed too.&lt;br /&gt;
&lt;br /&gt;
Exactly 8 functions were changed in the codebin.&lt;br /&gt;
&lt;br /&gt;
  L_1d3ba8&lt;br /&gt;
  updated, prev ver @ L_1d3ba8.&lt;br /&gt;
  Added only the following code:&lt;br /&gt;
  if(len&amp;lt;2)return;&lt;br /&gt;
  if(len&amp;gt;=0xfe)len=0xfe;&lt;br /&gt;
  *lenstorage = len;&lt;br /&gt;
  &lt;br /&gt;
  L_1d3d10&lt;br /&gt;
  updated, prev ver @ L_1d3cfc.&lt;br /&gt;
  When L_1ea0b8 returns non-zero, this now clears the 4-bytes at inr1.&lt;br /&gt;
  &lt;br /&gt;
  L_1f32c4&lt;br /&gt;
  updated, prev ver @ L_1f329c.&lt;br /&gt;
  This now writes u32 val0 to inr0+0x34 immediately after the nop instruction.&lt;br /&gt;
  &lt;br /&gt;
  L_275754&lt;br /&gt;
  updated, prev ver @ L_27572c.&lt;br /&gt;
  This now executes the following each time L_1ea0b8 returns non-zero: sp20 = 0;&lt;br /&gt;
  &lt;br /&gt;
  L_275ed4&lt;br /&gt;
  updated, prev ver @ L_275e94.&lt;br /&gt;
  Added the following code after the branch for &amp;quot;if(*(inr1+8)==0)&amp;quot;:&lt;br /&gt;
  if(len&amp;gt;0xfe){len=0xfe;&amp;lt;jump over the code which checks len0&amp;gt;}&lt;br /&gt;
  Identical changes were added at 0x276054, except with len val 0x82.&lt;br /&gt;
  Likewise at 0x276138 except with len val 0x76.&lt;br /&gt;
  &lt;br /&gt;
  L_280000&lt;br /&gt;
  updated, prev ver @ L_27ff90.&lt;br /&gt;
  This was added at 0x280444: if(len&amp;gt;0xfe)len=0xfe;&lt;br /&gt;
  Minor(?) other changes.&lt;br /&gt;
  &lt;br /&gt;
  L_280c74&lt;br /&gt;
  updated, prev ver @ L_280b60.&lt;br /&gt;
  This now writes u32 val0 to inr0+0x34 immediately after the nop instruction.&lt;br /&gt;
  &lt;br /&gt;
  L_281ab0&lt;br /&gt;
  updated, prev ver @ L_281998.&lt;br /&gt;
  Added the following: if(len&amp;gt;=0xfe)len=0xfe;&lt;br /&gt;
  This was added at 0x281b94:&lt;br /&gt;
  if(somelen&amp;gt;=0xfe)&lt;br /&gt;
  {&lt;br /&gt;
  	len=0xfe;&lt;br /&gt;
  }&lt;br /&gt;
  else&lt;br /&gt;
  {&lt;br /&gt;
  	len=somelen;&lt;br /&gt;
  }&lt;br /&gt;
  *r4 = val;&lt;br /&gt;
  Then len is used for a string data-copy(ASCII/UTF16), unless it&#039;s UTF16 and len is &amp;lt;=0.&lt;br /&gt;
&lt;br /&gt;
===[[Title_list|SNOTE_AP]]===&lt;br /&gt;
This was updated with vuln fixes similar to the sound-app.&lt;br /&gt;
&lt;br /&gt;
  LT_1004d6&lt;br /&gt;
  updated, prev ver @ LT_1004d6.&lt;br /&gt;
  Added a func call for LT_1017c8 at 0x100508.&lt;br /&gt;
  &lt;br /&gt;
  LT_1017c8&lt;br /&gt;
  new func.&lt;br /&gt;
  Only called by LT_1004d6.&lt;br /&gt;
  return LT_10250c(0x405, 5, 0x5109d503);&lt;br /&gt;
  &lt;br /&gt;
  LT_103368&lt;br /&gt;
  updated, prev ver @ LT_1032f8.&lt;br /&gt;
  The first func call was removed, it&#039;s now located in LT_1017c8.&lt;br /&gt;
  &lt;br /&gt;
  LT_11ea6c&lt;br /&gt;
  updated, prev ver @ LT_11ea60.&lt;br /&gt;
  Added the following: if(len&amp;gt;0xfe)*lenptr = 0xfe;&lt;br /&gt;
  &lt;br /&gt;
  LT_11f210&lt;br /&gt;
  updated, prev ver @ LT_11f1fc.&lt;br /&gt;
  The following was added at 0x11f49c: if(len&amp;gt;0xfe)len=0xfe;&lt;br /&gt;
  Before executing &amp;quot;return ~0x63;&amp;quot; this now calls LT_12f542.&lt;br /&gt;
  minor other changes.&lt;br /&gt;
  &lt;br /&gt;
  LT_11f84c&lt;br /&gt;
  updated, prev ver @ LT_11f828.&lt;br /&gt;
  This now clears inr0+0x34 after calling L_14cabc.&lt;br /&gt;
  &lt;br /&gt;
  LT_11f9ac&lt;br /&gt;
  updated, prev ver @ LT_11f984.&lt;br /&gt;
  Added the following: if(len&amp;gt;0xfe)*lenptr=0xfe;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
System update report(s):&lt;br /&gt;
* [https://yls8.mtheall.com/ninupdates/reports.php?date=04-10-17_08-00-38&amp;amp;sys=ctr]&lt;br /&gt;
* [https://yls8.mtheall.com/ninupdates/reports.php?date=04-10-17_08-00-47&amp;amp;sys=ktr]&lt;/div&gt;</summary>
		<author><name>Yellows8</name></author>
	</entry>
	<entry>
		<id>https://www.3dbrew.org/w/index.php?title=11.4.0-37&amp;diff=19864</id>
		<title>11.4.0-37</title>
		<link rel="alternate" type="text/html" href="https://www.3dbrew.org/w/index.php?title=11.4.0-37&amp;diff=19864"/>
		<updated>2017-04-12T13:35:55Z</updated>

		<summary type="html">&lt;p&gt;Yellows8: /* Process9 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The Old3DS+New3DS 11.4.0-37 system update was released on April 10, 2017. This Old3DS update was released for the following regions: USA, EUR, JPN, CHN, KOR, and TWN. This New3DS update was released for the following regions: USA, EUR, JPN, CHN, KOR, and TWN.&lt;br /&gt;
&lt;br /&gt;
Security flaws fixed: yes.&lt;br /&gt;
&lt;br /&gt;
==Change-log==&lt;br /&gt;
[http://en-americas-support.nintendo.com/app/answers/detail/a_id/667/p/430/c/267 Official] USA change-log:&lt;br /&gt;
* Further improvements to overall system stability and other minor adjustments have been made to enhance the user experience&lt;br /&gt;
&lt;br /&gt;
==System Titles==&lt;br /&gt;
===NATIVE_FIRM===&lt;br /&gt;
====Process9====&lt;br /&gt;
Exactly two functions were changed.&lt;br /&gt;
&lt;br /&gt;
The global boolean preventing [[FIRM|SAFE_FIRM]] from being launched is now set in Process9&#039;s main() if [[CONFIG9_Registers#CFG9_BOOTENV|CFG9_BOOTENV]] has bit0 set, that is to say, if it has been launched from a firmlaunch (this register is set to 1 just before a firmlaunch). The following code has also been added in the firmlaunch function itself, immediately after the code-block where the boolean is checked: &amp;lt;code&amp;gt;if(!(CFG9_BOOTENV &amp;amp; 1) /* not a firmlaunch */ || (CFG9_BOOTENV &amp;amp; 6) /* firmlaunched from LGY_FIRM (if even possible at all) */) goto panic&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
This is to properly fix [[3DS_System_Flaws#Process9|safehax]].&lt;br /&gt;
&lt;br /&gt;
====New3DS kernel9loader====&lt;br /&gt;
New3DS kernel9loader wasn&#039;t updated.&lt;br /&gt;
&lt;br /&gt;
====ARM11 kernel====&lt;br /&gt;
There are at least, and likely, three changes:&lt;br /&gt;
&lt;br /&gt;
* [[CONFIG11_Registers#CFG11_WIFIUNK|CFG11_WIFIUNK]] is now set to 0x10 in Kernel11&#039;s crt0&lt;br /&gt;
* A new SVC, [[SVC|svc 0x5A]] has been introduced, to enable or disable wifi&lt;br /&gt;
* The code handling [[SVC|svcArbitrateAddress]] with type = SIGNAL, has been changed. It now counts the actual number of threads arbitrating on that address, and if it is non-zero, it executes the following hack: &amp;lt;code&amp;gt;if(coreId == 0 &amp;amp;&amp;amp; currentThread-&amp;gt;dynamicPriority &amp;gt;= 50) waitCycles(0x64E)&amp;lt;/code&amp;gt;. This supposedly works around the lag issue in some games, which has been introduced on [[11.3.0-36]]&lt;br /&gt;
&lt;br /&gt;
===Modules===&lt;br /&gt;
No FIRM ARM11 sysmodule was changed.&lt;br /&gt;
&lt;br /&gt;
===[[NWM_Services|NWM-sysmodule]]===&lt;br /&gt;
The [[CONFIG11_Registers]] are no longer directly mapped under userland for NWM-sysmodule.&lt;br /&gt;
This prevents anything under NWM-module from modifying the GPUPROT register. This was used by both *hax payload(prior to v11.4 release) and [https://github.com/smealum/udsploit udsploit].&lt;br /&gt;
&lt;br /&gt;
The codebin was updated.&lt;br /&gt;
&lt;br /&gt;
The crt0-poke in PDN that NWM previously did:&lt;br /&gt;
  0x1EC4010C |= 0x10&lt;br /&gt;
&lt;br /&gt;
.. has been removed from NWM. This one has been moved into kernel bootup.&lt;br /&gt;
&lt;br /&gt;
All accesses to 0x1EC40180 have been replaced by a new syscall, [[SVC|0x5A]].&lt;br /&gt;
&lt;br /&gt;
This now includes code from old CTRSDK update(s). A new func was added for calling a func, previously that func was directly called via vtable funcptr. The only other changes was new heap code(and the code for using it basically), for fixing the NWMUDS sharedmem [[3DS_System_Flaws|vuln]]. This includes code which actually validates heap memchunkhdrs, with svcBreak being executed on failure.&lt;br /&gt;
&lt;br /&gt;
A new string was added at 0x13E200: &amp;quot;used&amp;quot;(with 3 0xFF bytes afterwards), this is used by the new heap code. The wifi-fw was moved from .data to .rodata.&lt;br /&gt;
&lt;br /&gt;
===[[HTTP_Services|HTTP-sysmodule]]===&lt;br /&gt;
There were exactly 3 changes in the HTTP-sysmodule codebin.&lt;br /&gt;
&lt;br /&gt;
Two functions, the memalloc and memfree functions used with HTTP sharedmem, were updated to use the new function. The new function is for heap memchunkhdr validation. This additional code is the same new heap code as NWM-sysmodule. This fixed the vuln used by ctr-httpwn at the time of sysupdate release.&lt;br /&gt;
&lt;br /&gt;
===[[Friend_Services|Friends-sysmodule]]===&lt;br /&gt;
Like past updates the only change in this codebin was the fpdver(0x9-&amp;gt;0xA).&lt;br /&gt;
&lt;br /&gt;
===[[NS_and_APT_Services|NS-sysmodule]]===&lt;br /&gt;
The only changes for NS was version values in the codebin, nothing else.&lt;br /&gt;
&lt;br /&gt;
===[[Internet Browser]]===&lt;br /&gt;
The web-browser was updated, only for New3DS. See [[Internet Browser|here]] for details.&lt;br /&gt;
&lt;br /&gt;
===[[Nintendo_3DS_Sound]]===&lt;br /&gt;
soundhax was fixed, it appears other vulns were fixed too.&lt;br /&gt;
&lt;br /&gt;
Exactly 8 functions were changed in the codebin.&lt;br /&gt;
&lt;br /&gt;
  L_1d3ba8&lt;br /&gt;
  updated, prev ver @ L_1d3ba8.&lt;br /&gt;
  Added only the following code:&lt;br /&gt;
  if(len&amp;lt;2)return;&lt;br /&gt;
  if(len&amp;gt;=0xfe)len=0xfe;&lt;br /&gt;
  *lenstorage = len;&lt;br /&gt;
  &lt;br /&gt;
  L_1d3d10&lt;br /&gt;
  updated, prev ver @ L_1d3cfc.&lt;br /&gt;
  When L_1ea0b8 returns non-zero, this now clears the 4-bytes at inr1.&lt;br /&gt;
  &lt;br /&gt;
  L_1f32c4&lt;br /&gt;
  updated, prev ver @ L_1f329c.&lt;br /&gt;
  This now writes u32 val0 to inr0+0x34 immediately after the nop instruction.&lt;br /&gt;
  &lt;br /&gt;
  L_275754&lt;br /&gt;
  updated, prev ver @ L_27572c.&lt;br /&gt;
  This now executes the following each time L_1ea0b8 returns non-zero: sp20 = 0;&lt;br /&gt;
  &lt;br /&gt;
  L_275ed4&lt;br /&gt;
  updated, prev ver @ L_275e94.&lt;br /&gt;
  Added the following code after the branch for &amp;quot;if(*(inr1+8)==0)&amp;quot;:&lt;br /&gt;
  if(len&amp;gt;0xfe){len=0xfe;&amp;lt;jump over the code which checks len0&amp;gt;}&lt;br /&gt;
  Identical changes were added at 0x276054, except with len val 0x82.&lt;br /&gt;
  Likewise at 0x276138 except with len val 0x76.&lt;br /&gt;
  &lt;br /&gt;
  L_280000&lt;br /&gt;
  updated, prev ver @ L_27ff90.&lt;br /&gt;
  This was added at 0x280444: if(len&amp;gt;0xfe)len=0xfe;&lt;br /&gt;
  Minor(?) other changes.&lt;br /&gt;
  &lt;br /&gt;
  L_280c74&lt;br /&gt;
  updated, prev ver @ L_280b60.&lt;br /&gt;
  This now writes u32 val0 to inr0+0x34 immediately after the nop instruction.&lt;br /&gt;
  &lt;br /&gt;
  L_281ab0&lt;br /&gt;
  updated, prev ver @ L_281998.&lt;br /&gt;
  Added the following: if(len&amp;gt;=0xfe)len=0xfe;&lt;br /&gt;
  This was added at 0x281b94:&lt;br /&gt;
  if(somelen&amp;gt;=0xfe)&lt;br /&gt;
  {&lt;br /&gt;
  	len=0xfe;&lt;br /&gt;
  }&lt;br /&gt;
  else&lt;br /&gt;
  {&lt;br /&gt;
  	len=somelen;&lt;br /&gt;
  }&lt;br /&gt;
  *r4 = val;&lt;br /&gt;
  Then len is used for a string data-copy(ASCII/UTF16), unless it&#039;s UTF16 and len is &amp;lt;=0.&lt;br /&gt;
&lt;br /&gt;
===[[Title_list|SNOTE_AP]]===&lt;br /&gt;
This was updated with vuln fixes similar to the sound-app.&lt;br /&gt;
&lt;br /&gt;
  LT_1004d6&lt;br /&gt;
  updated, prev ver @ LT_1004d6.&lt;br /&gt;
  Added a func call for LT_1017c8 at 0x100508.&lt;br /&gt;
  &lt;br /&gt;
  LT_1017c8&lt;br /&gt;
  new func.&lt;br /&gt;
  Only called by LT_1004d6.&lt;br /&gt;
  return LT_10250c(0x405, 5, 0x5109d503);&lt;br /&gt;
  &lt;br /&gt;
  LT_103368&lt;br /&gt;
  updated, prev ver @ LT_1032f8.&lt;br /&gt;
  The first func call was removed, it&#039;s now located in LT_1017c8.&lt;br /&gt;
  &lt;br /&gt;
  LT_11ea6c&lt;br /&gt;
  updated, prev ver @ LT_11ea60.&lt;br /&gt;
  Added the following: if(len&amp;gt;0xfe)*lenptr = 0xfe;&lt;br /&gt;
  &lt;br /&gt;
  LT_11f210&lt;br /&gt;
  updated, prev ver @ LT_11f1fc.&lt;br /&gt;
  The following was added at 0x11f49c: if(len&amp;gt;0xfe)len=0xfe;&lt;br /&gt;
  Before executing &amp;quot;return ~0x63;&amp;quot; this now calls LT_12f542.&lt;br /&gt;
  minor other changes.&lt;br /&gt;
  &lt;br /&gt;
  LT_11f84c&lt;br /&gt;
  updated, prev ver @ LT_11f828.&lt;br /&gt;
  This now clears inr0+0x34 after calling L_14cabc.&lt;br /&gt;
  &lt;br /&gt;
  LT_11f9ac&lt;br /&gt;
  updated, prev ver @ LT_11f984.&lt;br /&gt;
  Added the following: if(len&amp;gt;0xfe)*lenptr=0xfe;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
System update report(s):&lt;br /&gt;
* [https://yls8.mtheall.com/ninupdates/reports.php?date=04-10-17_08-00-38&amp;amp;sys=ctr]&lt;br /&gt;
* [https://yls8.mtheall.com/ninupdates/reports.php?date=04-10-17_08-00-47&amp;amp;sys=ktr]&lt;/div&gt;</summary>
		<author><name>Yellows8</name></author>
	</entry>
	<entry>
		<id>https://www.3dbrew.org/w/index.php?title=Home_Menu&amp;diff=19863</id>
		<title>Home Menu</title>
		<link rel="alternate" type="text/html" href="https://www.3dbrew.org/w/index.php?title=Home_Menu&amp;diff=19863"/>
		<updated>2017-04-12T13:21:54Z</updated>

		<summary type="html">&lt;p&gt;Yellows8: /* System Versions List */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The &#039;&#039;&#039;Home Menu&#039;&#039;&#039; is the heart of the Nintendo 3DS. From there one can start games, applications, and access various processes including the friends list. It is launched by [[NS]], and is always running in the background in 3DS-mode except when other programID-high 00040030 applications like Internet Browser, Friend-List, etc are running. Home Menu is still running while [[System Settings]] is running, however the System Settings application does not allow directly returning to home-menu. The system will normally re-launch Home Menu when the Home Menu process crashes/terminates. When this re-launch occurs while Home Menu is active, Home Menu displays an error message which says to manually reboot the system.&lt;br /&gt;
&lt;br /&gt;
== System Versions ==&lt;br /&gt;
Nintendo devised a system, whereby updates would be delivered via two channels: &lt;br /&gt;
*Card Updates (CUP) - The Nintendo 3DS is updated with data from an [[System Update CFA|update partition]] on retail gamecard title. &lt;br /&gt;
*Network Updates (NUP) - The Nintendo 3DS is updated by downloading data from Nintendo&#039;s [[Title list|CDN]].&lt;br /&gt;
&lt;br /&gt;
CUPs will only deliver updates to core features, such as the Home Menu, [[Download Play]] etc. CUPs will not deliver updates to Network features, such as [[System Transfer]], [[Internet Browser]], [[StreetPass Mii Plaza]] or [[EShop|eShop]].&lt;br /&gt;
&lt;br /&gt;
NUPs can deliver updates to core features as well as (updated) Network Features.&lt;br /&gt;
&lt;br /&gt;
As a result of deciding to make a distinction between what content could be updated and how, Nintendo split the system version displayed by [[System Settings]] into two parts: [[CVer]] (Console Version) and [[NVer]] (Network Update Version). Represented as: &lt;br /&gt;
 &amp;lt;CVer Major&amp;gt;.&amp;lt;CVer Minor&amp;gt;.&amp;lt;CVer Micro&amp;gt;-&amp;lt;NUP Version&amp;gt;&amp;lt;NUP Region&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The Console Version represents the version of the collectively installed core features. And the NUP Version represents the version of the collectively installed network features.&lt;br /&gt;
&lt;br /&gt;
So if a 3DS&#039; System Firmware read &#039;&#039;&#039;2.1.0-2U&#039;&#039;&#039;, it would indicate a console version of &#039;&#039;&#039;2.1.0&#039;&#039;&#039; and a NUP version of &#039;&#039;&#039;2U&#039;&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
NOTES:&lt;br /&gt;
* CUPs can only update core content, so [[NVer]] is never updated with CUPs.&lt;br /&gt;
* NUPs will not update [[NVer]] if network features are not updated. (Best seen with the USA vs JPN/EUR 6.0.0 NUP)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
CUPs are implemented by adding a [[System Update CFA]] to retail NCSD gamecard images. Nintendo generally creates CUPs after NUPs are released.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When updating the system from 4.5.0-6 to 4.5.0-10, the following titles are updated(in the order of title download+install): [[Health and Safety Information]], [[Nintendo 3DS Camera]], [[eShop]], [[System Transfer]], [[Internet Browser]], [[Title_list|0004009B00014102]], [[Title_list|0004009B00014202]], [[Title_list|0004009B00014302]], [[NVer]], and [[FIRM|AGB_FIRM]].&lt;br /&gt;
&lt;br /&gt;
=== System Versions List ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! System version &lt;br /&gt;
! Home Menu title version&lt;br /&gt;
! Release date &lt;br /&gt;
! Changelog &lt;br /&gt;
! System security [[3DS_System_Flaws|flaws]] fixed*&lt;br /&gt;
! Userland security [[3DS_Userland_Flaws|flaws]] fixed*&lt;br /&gt;
! 3DS-mode homebrew affected*&lt;br /&gt;
! CUP Released&lt;br /&gt;
! CDN Availability&lt;br /&gt;
! CDN Post Date&lt;br /&gt;
|-&lt;br /&gt;
| [[1.0.0-0|1.0.0-0]]&lt;br /&gt;
| 0&lt;br /&gt;
| February 26, 2011&lt;br /&gt;
| Shipped with 3DS on launch&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| Yes&lt;br /&gt;
| Available&lt;br /&gt;
| February 18, 2011&lt;br /&gt;
|-&lt;br /&gt;
| [[1.1.0-1|1.1.0-1]] &lt;br /&gt;
| 0 &lt;br /&gt;
| February ?, 2011&lt;br /&gt;
| General bug fixes&lt;br /&gt;
Added 3D Video title to menu. (&amp;quot;For a Limited Time Only&amp;quot;)&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| Yes&lt;br /&gt;
| Available&lt;br /&gt;
| March 1, 2011&lt;br /&gt;
|-&lt;br /&gt;
| [[2.0.0-2|2.0.0-2]]&lt;br /&gt;
| 1029&lt;br /&gt;
| June 6/7, 2011&lt;br /&gt;
| [[eShop]] added, web browser available, [[System Transfer]] added. Full DSiWare data management available. [[Automatic_System_Update_Download|Automatic]] downloading for system updates added. Video stubbed.&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| No&lt;br /&gt;
| Available&lt;br /&gt;
| June 6, 2011&lt;br /&gt;
|-&lt;br /&gt;
| [[2.1.0-3|2.1.0-3]]&lt;br /&gt;
| 2049&lt;br /&gt;
| June 15, 2011&lt;br /&gt;
| Fixes the Ridge Racer freeze.&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| Yes&lt;br /&gt;
| Available&lt;br /&gt;
| June 15, 2011&lt;br /&gt;
|-&lt;br /&gt;
| [[2.1.0-4|2.1.0-4]]&lt;br /&gt;
| Not updated&lt;br /&gt;
| July 25, 2011&lt;br /&gt;
| System stability improvements and other adjustments.&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| No&lt;br /&gt;
| Available&lt;br /&gt;
| July 25, 2011&lt;br /&gt;
|-&lt;br /&gt;
| [[2.2.0-X|2.2.0]]&lt;br /&gt;
| ?&lt;br /&gt;
| November 6, 2011&lt;br /&gt;
| CUP Only Release. Add &amp;quot;join game&amp;quot; feature to [[Friend List]]. Update from some game cards such as Super Mario 3D Land.&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| Yes&lt;br /&gt;
| Unavailable&lt;br /&gt;
| ?&lt;br /&gt;
|-&lt;br /&gt;
| [[3.0.0-5|3.0.0-5]]&lt;br /&gt;
| 4111&lt;br /&gt;
| December 7, 2011&lt;br /&gt;
| Added 3D video recording to the camera title, updated Mii Streetpass Plaza, [[System Transfer]] between 3DS systems available, improved eShop, home menu QR code scanning with QR codes containing URLs. [[Nintendo Zone]] is now always accessible, 3D video streaming support was added to NZone. This added support for running GBA VC titles via AGB_FIRM as well, support for GBA VC titles was also added to NATIVE_FIRM.&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| Yes&lt;br /&gt;
| Available&lt;br /&gt;
| December 7, 2011&lt;br /&gt;
|-&lt;br /&gt;
| [[3.0.0-6|3.0.0-6]]&lt;br /&gt;
| Not updated&lt;br /&gt;
| December 21, 2011&lt;br /&gt;
| Only StreetPass Mii Plaza and the [[NVer]] title were updated. From Nintendo&#039;s release notes: &amp;quot;System stability improvements and other adjustments&amp;quot;.&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| No&lt;br /&gt;
| Available&lt;br /&gt;
| December 21, 2011&lt;br /&gt;
|-&lt;br /&gt;
| [[3.1.0-6|3.1.0-6]]&lt;br /&gt;
| Unknown&lt;br /&gt;
| Unknown&lt;br /&gt;
| Unknown. Sighted preinstalled on some early European 3DS XLs.&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| ?&lt;br /&gt;
| Unknown&lt;br /&gt;
| Unknown&lt;br /&gt;
|-&lt;br /&gt;
| [[4.0.0-7|4.0.0-7]]&lt;br /&gt;
| 5131&lt;br /&gt;
| April 24, 2012&lt;br /&gt;
| Add folders to Home Menu, game patching added, buy more expensive games than 1000 yen in JPN. System titles for CHN, TWN, and KOR became available.&lt;br /&gt;
| Yes&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| Yes&lt;br /&gt;
| Available&lt;br /&gt;
| April 24, 2012&lt;br /&gt;
|-&lt;br /&gt;
| [[4.1.0-8|4.1.0-8]]&lt;br /&gt;
| Not updated&lt;br /&gt;
| May 14, 2012&lt;br /&gt;
| From changelog: &amp;quot;improvements to overall system stability and other minor adjustments&amp;quot;. Once updated to [[4.1.0-8]], the parental-controls PIN is no longer required for future system updates.&lt;br /&gt;
| Yes&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| Yes&lt;br /&gt;
| Available&lt;br /&gt;
| May 14, 2012&lt;br /&gt;
|-&lt;br /&gt;
| [[4.2.0-9|4.2.0-9]]&lt;br /&gt;
| 6146&lt;br /&gt;
| June 26, 2012&lt;br /&gt;
| Improved eShop safety for entering credit-card info, and behind the scenes improvements. Stored CC info will be deleted by this updated eShop, and can be re-entered again.&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| Yes&lt;br /&gt;
| Available&lt;br /&gt;
| June 26, 2012&lt;br /&gt;
|-&lt;br /&gt;
| [[4.3.0-10|4.3.0-10]]&lt;br /&gt;
| Not updated&lt;br /&gt;
| July 24, 2012&lt;br /&gt;
| Updated eShop, bad word list and NZone hotspot list updated.&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| Yes&lt;br /&gt;
| Available&lt;br /&gt;
| July 24, 2012&lt;br /&gt;
|-&lt;br /&gt;
| [[4.4.0-10|4.4.0-10]]&lt;br /&gt;
| Not updated&lt;br /&gt;
| September 19, 2012&lt;br /&gt;
| NZone hotspot list updated and TWL_FIRM updated for blocking flash cards.&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| Yes&lt;br /&gt;
| Available&lt;br /&gt;
| September 19, 2012&lt;br /&gt;
|-&lt;br /&gt;
| [[4.4.0-10|4.4.0-10C]]&lt;br /&gt;
| Not updated&lt;br /&gt;
| October 17, 2012&lt;br /&gt;
| China-only, the *only* updated title was [[System Settings]]. This title was updated to a version already available in TWN/KOR.&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| ?&lt;br /&gt;
| Available&lt;br /&gt;
| October 17, 2012&lt;br /&gt;
|-&lt;br /&gt;
| [[4.5.0-10|4.5.0-10]]&lt;br /&gt;
| Not updated&lt;br /&gt;
| December 4, 2012&lt;br /&gt;
| Flash-card block via updated TWL_FIRM and whitelist. NZone hotspot list updated as well.&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| Yes&lt;br /&gt;
| Available&lt;br /&gt;
| December 4, 2012&lt;br /&gt;
|-&lt;br /&gt;
| [[5.0.0-11|5.0.0-11]]&lt;br /&gt;
| 7172&lt;br /&gt;
| March 25, 2013&lt;br /&gt;
| Many system titles including NATIVE_FIRM were updated, multiple vulnerabilities were fixed as well.&lt;br /&gt;
| Yes&lt;br /&gt;
| &lt;br /&gt;
| Yes&lt;br /&gt;
| No&lt;br /&gt;
| Available&lt;br /&gt;
| March 25, 2013&lt;br /&gt;
|-&lt;br /&gt;
| [[5.1.0-11|5.1.0-11]]&lt;br /&gt;
| Not updated&lt;br /&gt;
| April 4, 2013&lt;br /&gt;
| NATIVE_FIRM and NS were updated. According to the official change-log: &amp;quot;Resolves an issue that may prevent access to the System Settings or other features.&amp;quot;&lt;br /&gt;
| No&lt;br /&gt;
| &lt;br /&gt;
| No&lt;br /&gt;
| Yes&lt;br /&gt;
| Available&lt;br /&gt;
| April 4, 2013&lt;br /&gt;
|-&lt;br /&gt;
| [[6.0.0-11|6.0.0-12 (-11U)]]&lt;br /&gt;
| 8198&lt;br /&gt;
| June 17, 2013&lt;br /&gt;
| Official change-log: &amp;quot;Users can now back up save data for downloadable versions of Nintendo 3DS software and most Virtual Console games&amp;quot;. For EUR/JPN, the [[StreetPass Mii Plaza]] application and the [[Nintendo 3DS Camera]] application were updated. Other titles for all regions were updated as well.&lt;br /&gt;
| Yes&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| No&lt;br /&gt;
| Available&lt;br /&gt;
| June 17, 2013&lt;br /&gt;
|-&lt;br /&gt;
| [[6.1.0-11|6.1.0-12 (-11U)]]&lt;br /&gt;
| Not updated&lt;br /&gt;
| June 27, 2013&lt;br /&gt;
| Official change-log: &amp;quot;Further improvements to overall system stability and other minor adjustments have been made to enhance the user experience.&amp;quot;&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| Yes&lt;br /&gt;
| Available&lt;br /&gt;
| June 27, 2013&lt;br /&gt;
|-&lt;br /&gt;
| [[6.1.0-12U]]&lt;br /&gt;
| Not updated&lt;br /&gt;
| July 11, 2013&lt;br /&gt;
| This USA-only update added the updated network features applications which were first released in JPN/EUR with the [[6.0.0-11|6.0.0-12 NUP]] update.&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| No&lt;br /&gt;
| Available&lt;br /&gt;
| July 11, 2013&lt;br /&gt;
|-&lt;br /&gt;
| [[6.2.0-12]]&lt;br /&gt;
| Not updated&lt;br /&gt;
| August 6, 2013&lt;br /&gt;
| This update added support for the StreetPass relay feature, updated TWL_FIRM, and updated the Nintendo Zone hotspots list.&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| Yes&lt;br /&gt;
| Available&lt;br /&gt;
| August 6, 2013&lt;br /&gt;
|-&lt;br /&gt;
| [[6.3.0-12]]&lt;br /&gt;
| Not updated&lt;br /&gt;
| September 13, 2013&lt;br /&gt;
| See [[6.3.0-12|this]].&lt;br /&gt;
| No&lt;br /&gt;
| &lt;br /&gt;
| No&lt;br /&gt;
| No&lt;br /&gt;
| Available&lt;br /&gt;
| September 13, 2013&lt;br /&gt;
|-&lt;br /&gt;
| [[6.4.0-12]]&lt;br /&gt;
| ?&lt;br /&gt;
| November 11, 2013&lt;br /&gt;
| See [[6.4.0-12|this]](Only for the KOR and TWN regions).&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| No&lt;br /&gt;
| Available&lt;br /&gt;
| November 11, 2013&lt;br /&gt;
|-&lt;br /&gt;
| [[7.0.0-13]]&lt;br /&gt;
| 9230&lt;br /&gt;
| December 9, 2013&lt;br /&gt;
| See [[7.0.0-13|this]].&lt;br /&gt;
| Yes&lt;br /&gt;
| Yes&lt;br /&gt;
| &lt;br /&gt;
| No&lt;br /&gt;
| Available&lt;br /&gt;
| December 9, 2013&lt;br /&gt;
|-&lt;br /&gt;
| [[7.1.0-14]]&lt;br /&gt;
| Not updated&lt;br /&gt;
| December 19, 2013&lt;br /&gt;
| See [[7.1.0-14|this]].&lt;br /&gt;
| No&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| Yes&lt;br /&gt;
| Available&lt;br /&gt;
| December 19, 2013&lt;br /&gt;
|-&lt;br /&gt;
| [[7.1.0-15]]&lt;br /&gt;
| Not updated&lt;br /&gt;
| January 22, 2014&lt;br /&gt;
| See [[7.1.0-15|this]].&lt;br /&gt;
| No&lt;br /&gt;
| &lt;br /&gt;
| No&lt;br /&gt;
| No&lt;br /&gt;
| Available&lt;br /&gt;
| January 22, 2014&lt;br /&gt;
|-&lt;br /&gt;
| [[7.1.0-16]]&lt;br /&gt;
| Not updated&lt;br /&gt;
| February 26, 2014&lt;br /&gt;
| See [[7.1.0-16|this]].&lt;br /&gt;
| No&lt;br /&gt;
| &lt;br /&gt;
| No&lt;br /&gt;
| No&lt;br /&gt;
| Available&lt;br /&gt;
| February 26, 2014&lt;br /&gt;
|-&lt;br /&gt;
| [[7.2.0-17]]&lt;br /&gt;
| Not updated&lt;br /&gt;
| May 12, 2014&lt;br /&gt;
| See [[7.2.0-17|this]].&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| No&lt;br /&gt;
| Yes&lt;br /&gt;
| Available&lt;br /&gt;
| May 12, 2014&lt;br /&gt;
|-&lt;br /&gt;
| [[8.0.0-18]]&lt;br /&gt;
| Not updated&lt;br /&gt;
| July 7, 2014&lt;br /&gt;
| See [[8.0.0-18|this]].&lt;br /&gt;
| No&lt;br /&gt;
| &lt;br /&gt;
| No&lt;br /&gt;
| Yes&lt;br /&gt;
| Available&lt;br /&gt;
| July 7, 2014&lt;br /&gt;
|-&lt;br /&gt;
| [[8.1.0-18]]&lt;br /&gt;
| Not updated&lt;br /&gt;
| July 24, 2014&lt;br /&gt;
| See [[8.1.0-18|this]].&lt;br /&gt;
| No&lt;br /&gt;
| &lt;br /&gt;
| No&lt;br /&gt;
| Yes&lt;br /&gt;
| Available&lt;br /&gt;
| July 24, 2014&lt;br /&gt;
|-&lt;br /&gt;
| [[8.1.0-19]]&lt;br /&gt;
| Not updated&lt;br /&gt;
| August 7, 2014&lt;br /&gt;
| See [[8.1.0-19|this]].&lt;br /&gt;
| No&lt;br /&gt;
| &lt;br /&gt;
| No&lt;br /&gt;
| No&lt;br /&gt;
| Available&lt;br /&gt;
| August 7, 2014&lt;br /&gt;
|-&lt;br /&gt;
| [[8.1.0-0 New3DS]]&lt;br /&gt;
| Not updated&lt;br /&gt;
| September 26, 2014&lt;br /&gt;
| See [[8.1.0-0 New3DS|this]].&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| No&lt;br /&gt;
| No&lt;br /&gt;
| Available&lt;br /&gt;
| September 26, 2014&lt;br /&gt;
|-&lt;br /&gt;
| 8.1.0-19&lt;br /&gt;
| Not updated&lt;br /&gt;
| October 2, 2014&lt;br /&gt;
| Japan-only &amp;quot;update&amp;quot;, see [http://yls8.mtheall.com/ninupdates/reports.php?date=10-02-14_02-05-03&amp;amp;sys=ctr here]. The only change was that a new title([[New_3DS]]-only system application) was added, CVer/NVer titles were not even updated. The initial version of this [[Title_list|title]] is a stub.&lt;br /&gt;
| No&lt;br /&gt;
| &lt;br /&gt;
| No&lt;br /&gt;
| No&lt;br /&gt;
| Available&lt;br /&gt;
| October 2, 2014&lt;br /&gt;
|-&lt;br /&gt;
| [[9.0.0-20]]&lt;br /&gt;
| v11272&lt;br /&gt;
| October 6, 2014&lt;br /&gt;
| See [[9.0.0-20|this]].&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| No&lt;br /&gt;
| Yes (K)&lt;br /&gt;
| Available&lt;br /&gt;
| October 6, 2014&lt;br /&gt;
|-&lt;br /&gt;
| [[9.1.0-20J]]&lt;br /&gt;
| v14336(JPN-region title)&lt;br /&gt;
| October 10, 2014&lt;br /&gt;
| Japan-only, see [[9.1.0-20J|this]].&lt;br /&gt;
| No&lt;br /&gt;
| &lt;br /&gt;
| No&lt;br /&gt;
| No&lt;br /&gt;
| Available&lt;br /&gt;
| October 10, 2014&lt;br /&gt;
|-&lt;br /&gt;
| [[9.2.0-20]]&lt;br /&gt;
| &lt;br /&gt;
| October 29, 2014&lt;br /&gt;
| See [[9.2.0-20|this]].&lt;br /&gt;
| No&lt;br /&gt;
| &lt;br /&gt;
| No&lt;br /&gt;
| Yes (U/E)&lt;br /&gt;
| Available&lt;br /&gt;
| October 29, 2014&lt;br /&gt;
|-&lt;br /&gt;
| [[9.3.0-21]]&lt;br /&gt;
| &lt;br /&gt;
| December 8, 2014&lt;br /&gt;
| See [[9.3.0-21|this]].&lt;br /&gt;
| Yes&lt;br /&gt;
| &lt;br /&gt;
| Yes&lt;br /&gt;
| No&lt;br /&gt;
| Available&lt;br /&gt;
| December 8, 2014&lt;br /&gt;
|-&lt;br /&gt;
| [[9.4.0-21]]&lt;br /&gt;
| &lt;br /&gt;
| December 11, 2014&lt;br /&gt;
| See [[9.4.0-21|this]].&lt;br /&gt;
| No&lt;br /&gt;
| &lt;br /&gt;
| No&lt;br /&gt;
| No&lt;br /&gt;
| Available&lt;br /&gt;
| December 11, 2014&lt;br /&gt;
|-&lt;br /&gt;
| [[9.5.0-22]]&lt;br /&gt;
| &lt;br /&gt;
| February 2, 2015&lt;br /&gt;
| See [[9.5.0-22|this]].&lt;br /&gt;
| Yes&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| Yes (J/U/E)&lt;br /&gt;
| Available&lt;br /&gt;
| February 2, 2015&lt;br /&gt;
|-&lt;br /&gt;
| [[9.5.0-23]]&lt;br /&gt;
| &lt;br /&gt;
| March 2, 2015&lt;br /&gt;
| See [[9.5.0-23|this]].&lt;br /&gt;
| No&lt;br /&gt;
| Yes&lt;br /&gt;
| &lt;br /&gt;
| As above&lt;br /&gt;
| Available&lt;br /&gt;
| March 2, 2015&lt;br /&gt;
|-&lt;br /&gt;
| [[9.6.0-24]]&lt;br /&gt;
| &lt;br /&gt;
| March 23, 2015&lt;br /&gt;
| See [[9.6.0-24|this]].&lt;br /&gt;
| See [[9.6.0-24|here]].&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| Yes (J/U/E)&lt;br /&gt;
| Available&lt;br /&gt;
| March 23, 2015&lt;br /&gt;
|-&lt;br /&gt;
| [[9.7.0-25]]&lt;br /&gt;
| &lt;br /&gt;
| April 20, 2015&lt;br /&gt;
| See [[9.7.0-25|this]].&lt;br /&gt;
| Probably none?&lt;br /&gt;
| &lt;br /&gt;
| No&lt;br /&gt;
| Yes (J/U/E)&lt;br /&gt;
| Available&lt;br /&gt;
| April 20, 2015&lt;br /&gt;
|-&lt;br /&gt;
| [[9.8.0-25]]&lt;br /&gt;
| &lt;br /&gt;
| June 1, 2015&lt;br /&gt;
| See [[9.8.0-25|this]].&lt;br /&gt;
| No&lt;br /&gt;
| No&lt;br /&gt;
| No&lt;br /&gt;
| Yes (J/U/E)&lt;br /&gt;
| Available&lt;br /&gt;
| June 1, 2015&lt;br /&gt;
|-&lt;br /&gt;
| [[9.9.0-26|9.9.0-26]]&lt;br /&gt;
| &lt;br /&gt;
| July 13, 2015&lt;br /&gt;
| See [[9.9.0-26|this]].&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| Yes (J/U/E/K)&lt;br /&gt;
| Available&lt;br /&gt;
| July 13, 2015&lt;br /&gt;
|-&lt;br /&gt;
| [[10.0.0-27|10.0.0-27]]&lt;br /&gt;
| &lt;br /&gt;
| September 8, 2015&lt;br /&gt;
| See [[10.0.0-27|this]].&lt;br /&gt;
| Yes&lt;br /&gt;
| No&lt;br /&gt;
| No&lt;br /&gt;
| No&lt;br /&gt;
| Available&lt;br /&gt;
| September 8, 2015&lt;br /&gt;
|-&lt;br /&gt;
| [[10.1.0-27|10.1.0-27]]&lt;br /&gt;
| &lt;br /&gt;
| September 14, 2015&lt;br /&gt;
| See [[10.1.0-27|this]].&lt;br /&gt;
| No&lt;br /&gt;
| No&lt;br /&gt;
| No&lt;br /&gt;
| Yes (J/U/E/K)&lt;br /&gt;
| Available&lt;br /&gt;
| September 14, 2015&lt;br /&gt;
|-&lt;br /&gt;
| [[10.2.0-28|10.2.0-28]]&lt;br /&gt;
| &lt;br /&gt;
| October 19, 2015&lt;br /&gt;
| See [[10.2.0-28|this]].&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| Yes (J/U/E)&lt;br /&gt;
| Available&lt;br /&gt;
| October 19, 2015&lt;br /&gt;
|-&lt;br /&gt;
| [[10.3.0-28|10.3.0-28]]&lt;br /&gt;
| &lt;br /&gt;
| November 9, 2015&lt;br /&gt;
| See [[10.3.0-28|this]].&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| Yes (J/U/E)&lt;br /&gt;
| Available&lt;br /&gt;
| November 9, 2015&lt;br /&gt;
|-&lt;br /&gt;
| [[10.4.0-29|10.4.0-29]]&lt;br /&gt;
| &lt;br /&gt;
| January 18, 2016&lt;br /&gt;
| See [[10.4.0-29|this]].&lt;br /&gt;
| Yes&lt;br /&gt;
| Launching old Ironfall was blocked.&lt;br /&gt;
| Yes&lt;br /&gt;
| No&lt;br /&gt;
| Available&lt;br /&gt;
| January 18, 2016&lt;br /&gt;
|-&lt;br /&gt;
| [[10.5.0-30|10.5.0-30]]&lt;br /&gt;
| &lt;br /&gt;
| January 25, 2016&lt;br /&gt;
| See [[10.5.0-30|this]].&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| Yes (J/U/E)&lt;br /&gt;
| Available&lt;br /&gt;
| January 25, 2016&lt;br /&gt;
|-&lt;br /&gt;
| [[10.6.0-31|10.6.0-31]]&lt;br /&gt;
| &lt;br /&gt;
| February 22, 2016&lt;br /&gt;
| See [[10.6.0-31|this]].&lt;br /&gt;
| Yes&lt;br /&gt;
| Yes&lt;br /&gt;
| Yes&lt;br /&gt;
| Yes (J/U)&lt;br /&gt;
| Available&lt;br /&gt;
| February 22, 2016&lt;br /&gt;
|-&lt;br /&gt;
| [[10.7.0-32|10.7.0-32]]&lt;br /&gt;
| &lt;br /&gt;
| March 14, 2016&lt;br /&gt;
| See [[10.7.0-32|this]].&lt;br /&gt;
| No&lt;br /&gt;
| Yes&lt;br /&gt;
| Yes&lt;br /&gt;
| Yes (J/U/E)&lt;br /&gt;
| Available&lt;br /&gt;
| March 14, 2016&lt;br /&gt;
|-&lt;br /&gt;
| [[11.0.0-33|11.0.0-33]]&lt;br /&gt;
| &lt;br /&gt;
| May 9, 2016&lt;br /&gt;
| See [[11.0.0-33|this]].&lt;br /&gt;
| Yes&lt;br /&gt;
| No&lt;br /&gt;
| Yes&lt;br /&gt;
| Yes (J/U/E)&lt;br /&gt;
| Available&lt;br /&gt;
| May 9, 2016&lt;br /&gt;
|-&lt;br /&gt;
| [[11.1.0-34|11.1.0-34]]&lt;br /&gt;
| &lt;br /&gt;
| September 13, 2016&lt;br /&gt;
| See [[11.1.0-34|this]].&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| Yes (J/U/E)&lt;br /&gt;
| Available&lt;br /&gt;
| September 13, 2016&lt;br /&gt;
|-&lt;br /&gt;
| [[11.2.0-35|11.2.0-35]]&lt;br /&gt;
| &lt;br /&gt;
| October 24, 2016&lt;br /&gt;
| See [[11.2.0-35|this]].&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| No&lt;br /&gt;
| Available&lt;br /&gt;
| October 24, 2016&lt;br /&gt;
|-&lt;br /&gt;
| [[11.3.0-36|11.3.0-36]]&lt;br /&gt;
| &lt;br /&gt;
| February 6, 2017&lt;br /&gt;
| See [[11.3.0-36|this]].&lt;br /&gt;
| Yes&lt;br /&gt;
| Yes&lt;br /&gt;
| Yes&lt;br /&gt;
| No&lt;br /&gt;
| Available&lt;br /&gt;
| February 6, 2017&lt;br /&gt;
|-&lt;br /&gt;
| [[11.4.0-37|11.4.0-37]]&lt;br /&gt;
| &lt;br /&gt;
| April 10, 2017&lt;br /&gt;
| See [[11.4.0-37|this]].&lt;br /&gt;
| Yes&lt;br /&gt;
| Yes&lt;br /&gt;
| Yes&lt;br /&gt;
| No&lt;br /&gt;
| Available&lt;br /&gt;
| April 10, 2017&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;quot;[[3DS_System_Flaws|System]]/[[3DS_Userland_Flaws|Userland]] security flaws fixed*&amp;quot;: This includes known flaws, and any fixed flaws discovered via code bin-diff.&lt;br /&gt;
&lt;br /&gt;
&amp;quot;[[3DS_System_Flaws|System]]/[[3DS_Userland_Flaws|Userland]] security flaws fixed*&amp;quot; and &amp;quot;3DS-mode homebrew affected&amp;quot; only apply to the changes done with that specific system-update(&amp;quot;affected&amp;quot; does not include hax codebases breaking *just* due to updated codebins).&lt;br /&gt;
&lt;br /&gt;
[[Category:Nintendo Software]]&lt;br /&gt;
&lt;br /&gt;
== Auto-Boot Function ==&lt;br /&gt;
When the Home Menu is initially loaded by [[NS]], it checks the gamecard ExeFS:/[[SMDH|icon]] for the auto-boot flag. If the auto-boot flag is set, it will load the application on the cartridge and the home menu will not remain running in the background, or at least not in an operational state. Using software cues to return to the home menu, or sleep menu while in this state, causes a shutdown.&lt;br /&gt;
&lt;br /&gt;
Notable features of demo titles:&lt;br /&gt;
*Auto-boot demos generally disable the functionality of the home button.&lt;br /&gt;
*The &#039;&#039;New Super Mario Bros 2&#039;&#039; demo, retained the functionality of the home button, and had an timer which triggered the demo to quit after a period of inactivity.&lt;br /&gt;
&lt;br /&gt;
Auto-boot cartridges, can bypass some of the functions of the Home Menu. Auto Booted software:&lt;br /&gt;
* Doesn&#039;t show usage history in the [[Activity Log]]&lt;br /&gt;
* Bypasses Parental controls&lt;br /&gt;
* Bypasses Forced Game Card Updates&lt;br /&gt;
* Bypasses Initial 3DS Setup&lt;br /&gt;
* The console does not have a friends list presence.&lt;br /&gt;
* Is still subject to region lock(see below).&lt;br /&gt;
&lt;br /&gt;
Region lock is still active, so the home menu will refuse to launch demos with incorrect region lock will not load, displaying &amp;quot;An Error has Occurred&amp;quot;. However, game card update partition checks are not done, which allows launching demos that have region free encoding, but have an alternate(or even invalid) region update partition.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following auto-boot paths can be used by Home Menu, checked in the same order listed below(the above gamecard auto-boot is checked before this):&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Key-combo / requirements for this path&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| R, L, and X&lt;br /&gt;
| This launches [[System Settings]] for touchscreen calibration.&lt;br /&gt;
|-&lt;br /&gt;
| R, L, and Y&lt;br /&gt;
| This launches [[System Settings]] for circlepad calibration.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The following is only checked when the low u16 from [[Config_Savegame|config]] block 0x00110000 is value zero(normally this is non-zero). Thus, the below is only handled when a system setup is required.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Key-combo / requirements for this path&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| R, X, Y, A, and B, a 3DS gamecard must be inserted as well.&lt;br /&gt;
| This launches the gamecard application. Note that pressing the HOME button in the gamecard application launched this way will only result in the system shutting down.&lt;br /&gt;
|-&lt;br /&gt;
| This is used when the above path isn&#039;t used.&lt;br /&gt;
| This launches System Settings for the system setup.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Region Lockout ==&lt;br /&gt;
&lt;br /&gt;
One of the Home Menu&#039;s functions, is to regulate region lockout. The region lockout data for any given title is held in the [[SMDH#BNR Region|ICN data]]. There are 6 regions of which have their own region lockout, Japan, USA, Europe(including Nintendo Australia), China, Taiwan and Korea. There is also a value which makes a title exempt from region lockout, and consequently accessible from any region of 3DS.&lt;br /&gt;
&lt;br /&gt;
The region-field stored in the [[SMDH|ICN-data]] is only checked when Home Menu itself launches a title, not when other titles use NS to have Home Menu launch titles. This isn&#039;t actually useful for gamecard region-free however, due to the gamecard system-updates, see below.&lt;br /&gt;
&lt;br /&gt;
Also note that while some gamecard games are mostly region-free(main CXI is identical for all regions of the gamecard), those gamecards can&#039;t actually be launched with all 3DS regions due to the gamecard system-update, see below. Note that the main CXI being identical for all regions of a gamecard also means the savedata keyY is identical for all regions of that gamecard too(except for old system-version &amp;lt;v2.2 games, in some cases, due to different cardIDs).&lt;br /&gt;
&lt;br /&gt;
=== Effects of Region Lockout  ===&lt;br /&gt;
Every 3DS title regardless of location (NAND/SD Card/Game Card) is subject to region lockout scrutiny by the Home Menu. And the home menu treats &#039;out-of-region&#039; titles by simply refusing to show them on the home menu. No messages are shown on the home menu to notify the user, the title is simply ignored. However out-of-region SD Card titles, will appear and quickly disappear, while all the SD Titles are being processed. In cases where access to the home menu GUI is not needed to launch the title (like in the case of kiosk demos), the home menu states an error has occurred, and launching of the title is stopped.&lt;br /&gt;
&lt;br /&gt;
=== Game Card Updates ===&lt;br /&gt;
Either intentionally a region lock mechanism or not, the function which checks the game card update partition returns an error when it is detected the update is for a region other than the 3DS&#039;s region (Most likely triggered by the absence of the correct CVer title). And errors returned from checking the update partition, will result in the home menu displaying &amp;quot;This Game Card cannnot be used&amp;quot;, when the user attempts to launch the title.&lt;br /&gt;
&lt;br /&gt;
== Home-menu [[SpotPass]] usage ==&lt;br /&gt;
&lt;br /&gt;
Home-menu originally used two domains with HTTPS for SpotPass. SpotPass stores this content in Home-menu&#039;s NAND shared extdata.&lt;br /&gt;
&lt;br /&gt;
* The system notifications are downloaded from: &amp;lt;nowiki&amp;gt;https://a248.e.akamai.net/f/248/103046/10m/npdl.c.app.nintendowifi.net/p01/nsa/&amp;lt;regionID&amp;gt;/&amp;lt;filename&amp;gt;/&amp;lt;langcode&amp;gt;/&amp;lt;filename&amp;gt;&amp;lt;/nowiki&amp;gt; Where langcode is the two-character language codes from [[Config Savegame#Languages|config]], and regionID is from the below table. &amp;lt;filename&amp;gt; is bashoX/sysmsgX where X is 0-3.&lt;br /&gt;
* https://pls.c.shop.nintendowifi.net/pl/upload This URL is used for uploading data from the home menu NAND shared extdata, it&#039;s unknown what this is used for. This data is uploaded every 24 hours.&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;https://npul.c.app.nintendowifi.net/p01/recv/&amp;lt;regionID&amp;gt;/&amp;lt;filename&amp;gt;&amp;lt;/nowiki&amp;gt; This is used for uploading unknown data from extdata. &amp;lt;filename&amp;gt; can be one of the following:&lt;br /&gt;
** &amp;quot;phu&amp;quot;&lt;br /&gt;
** &amp;quot;tiu&amp;quot; The POST data contains a list of [[BOSS_Services|BOSS]] taskIDs etc. This seems to be only for Nintendo titles?(system+eShop apps)&lt;br /&gt;
** &amp;quot;splu&amp;quot;&lt;br /&gt;
** &amp;quot;sendmgn&amp;quot; For this it appears SpotPass does a HTTP POST with data originally from Launcher.dat?&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Region&lt;br /&gt;
! ID&lt;br /&gt;
|-&lt;br /&gt;
| JPN&lt;br /&gt;
| gWr4JXxb2mKTG3lq&lt;br /&gt;
|-&lt;br /&gt;
| NA&lt;br /&gt;
| uuI82221UKkqmtbp&lt;br /&gt;
|-&lt;br /&gt;
| EUR / Others&lt;br /&gt;
| UrXSeurnxhPrq7AS&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The SpotPass content payload for notifications begin with a header, followed by an [[SMDH|icon]] and the UTF-16 text, and various metadata.&lt;br /&gt;
&lt;br /&gt;
=== VersionList ===&lt;br /&gt;
During startup, Home Menu loads &amp;quot;/versionList.dat&amp;quot; from NAND extdata 0xf000000e. This is downloaded via SpotPass, the file-data downloaded via HTTPS here is raw (no SpotPass container):&lt;br /&gt;
* Retail: [https://tagaya-ctr.cdn.nintendo.net/tagaya/versionlist]&lt;br /&gt;
* Dev-unit: [https://tagaya-dev-ctr.cdn.nintendo.net/tagaya/versionlist] The titles listed in this are not available on the [[Title list|normal]] CDN.&lt;br /&gt;
&lt;br /&gt;
This is a list of title-updates available on the eShop, for regular app titles and update-titles. This is what Home Menu checks to determine whether the currently selected application needs to be updated or not. When an Internet connection is not available or wifi is disabled, Home Menu will skip VersionList handling/messages when you launch applications.&lt;br /&gt;
&lt;br /&gt;
File structure:&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Offset&lt;br /&gt;
! Size&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| 0x0&lt;br /&gt;
| 0x10&lt;br /&gt;
| The first u32 is normally 0x1, the rest is normally all-zero.&lt;br /&gt;
|-&lt;br /&gt;
| 0x10&lt;br /&gt;
| &amp;lt;Filesize-0x10&amp;gt;&lt;br /&gt;
| Title entries, 0x10-bytes each.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Title entry structure:&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Offset&lt;br /&gt;
! Size&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| 0x0&lt;br /&gt;
| 0x8&lt;br /&gt;
| u64 TitleID&lt;br /&gt;
|-&lt;br /&gt;
| 0x8&lt;br /&gt;
| 0x4&lt;br /&gt;
| u32 titleversion&lt;br /&gt;
|-&lt;br /&gt;
| 0xC&lt;br /&gt;
| 0x4&lt;br /&gt;
| Unknown u32, usually zero?&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== [[BOSS_Services|BOSS]] usage notes ===&lt;br /&gt;
Home Menu uses 4 hard-coded NsDataIds: 0x1, 0x2, 0x3, and 0x4, under a loop in the same function for writing to &amp;quot;bashotorya.dat&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
== Automatic System Update Download ==&lt;br /&gt;
See [[Automatic System Update Download]].&lt;br /&gt;
&lt;br /&gt;
== Home Menu Error Messages ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Dialog Text&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;quot;An error has occured. Please save your data ... then restart the system&amp;quot;&lt;br /&gt;
| This dialog is displayed when a system applet(including Home Menu) crashes/terminates. This dialog is also displayed for system errors as well.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Home Menu Themes ==&lt;br /&gt;
See [[Home_Menu/Themes|here]].&lt;br /&gt;
&lt;br /&gt;
As of [[11.0.0-33]] Home Menu themes are only supported with USA, EUR, and JPN. CHN Home Menu was last updated with v7.0, and TWN doesn&#039;t even have a Home Menu settings menu(just the old screen brightness config menu + an [[amiibo Settings]] icon on the right side of the browser icon).&lt;br /&gt;
&lt;br /&gt;
KOR Home Menu doesn&#039;t have the theme-settings menu button. While this does have the theme handling code, it isn&#039;t actually usable since extdataID 0x0 is used for theme-extdata for non-&amp;lt;JPN/USA/EUR&amp;gt; regions(which is invalid).&lt;br /&gt;
&lt;br /&gt;
== Home Menu [[System_SaveData|NAND]] savedata ==&lt;br /&gt;
=== Launcher.dat ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Offset&lt;br /&gt;
!  Size&lt;br /&gt;
!  Description&lt;br /&gt;
|-&lt;br /&gt;
| 0x0&lt;br /&gt;
| 0x1&lt;br /&gt;
| Launcher.dat format version.&lt;br /&gt;
|-&lt;br /&gt;
| 0x1&lt;br /&gt;
| 0x1&lt;br /&gt;
| Padding?&lt;br /&gt;
|-&lt;br /&gt;
| 0x2&lt;br /&gt;
| 0x2&lt;br /&gt;
| Unknown, normally 0x1.&lt;br /&gt;
|-&lt;br /&gt;
| 0x4&lt;br /&gt;
| 0x4&lt;br /&gt;
| Unknown, normally 0x0.&lt;br /&gt;
|-&lt;br /&gt;
| 0x8&lt;br /&gt;
| 0xB40&lt;br /&gt;
| 360 u64s, list of titleIDs. For an unused entry, the u64 value is ~0(in that case, the corresponding entries at 0xD9A/0x106A for this titleID are not used either). This is used for the icons displayed on the main Home Menu screen.&lt;br /&gt;
|-&lt;br /&gt;
| 0xD9A&lt;br /&gt;
| 0x2D0&lt;br /&gt;
| Array of 360 s16 fields, each one corresponds to the titleIDs at the array located at offset 0x8. This is used for icon position, 0x0 for the very first icon, 0x1 for the next one and so on. This is completely linear, no X/Y coordinates. Implemented with the format-version for [[4.0.0-7|4.0.0-X]].&lt;br /&gt;
|-&lt;br /&gt;
| 0x106A&lt;br /&gt;
| 0x168&lt;br /&gt;
| Array of 360 s8 fields, each one corresponds to the titleIDs at the array located at offset 0x8. This is used for icon position. When an s8 here is -1(which is the normal value), the icon is located with the first chunk of icons(outbuf+0), otherwise the base address is outbuf+0xB40+&amp;lt;s8val*0x1E0&amp;gt;(which is equivalent to 60 icons * s8val). Implemented with the format-version for [[4.0.0-7|4.0.0-X]].&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== SD ExtData ==&lt;br /&gt;
The SD ExtData [[Extdata#Filesystem|File System]] for Home Menu introduced with [[2.0.0-2|2.0.0-X]] is as follows:&lt;br /&gt;
&lt;br /&gt;
 root&lt;br /&gt;
 ├── icon&lt;br /&gt;
 ├── boss&lt;br /&gt;
 └── user&lt;br /&gt;
     ├── SaveData.dat&lt;br /&gt;
     ├── Cache.dat&lt;br /&gt;
     └── CacheD.dat&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  File&lt;br /&gt;
!  Details&lt;br /&gt;
!  Size&lt;br /&gt;
!  FW Introduced&lt;br /&gt;
!  Plaintext&lt;br /&gt;
|-&lt;br /&gt;
|  icon&lt;br /&gt;
|  Stubbed. Always image 00000002.&lt;br /&gt;
|  0x4 Bytes&lt;br /&gt;
|  n/a&lt;br /&gt;
|  &lt;br /&gt;
|-&lt;br /&gt;
|  SaveData.dat&lt;br /&gt;
|  Always image 00000003.&lt;br /&gt;
|  0x2cb0 Bytes (0x2da0 starting with [[4.0.0-7]])&lt;br /&gt;
|  [[2.0.0-2]]&lt;br /&gt;
|  [https://dl.dropboxusercontent.com/u/60710927/CTR/Sample/HomeMenuExtdata/SaveData.dat Download]&lt;br /&gt;
|-&lt;br /&gt;
|  Cache.dat&lt;br /&gt;
|  Indexes and records details for the cached icon data. Always image 00000004.&lt;br /&gt;
|  0x1688 Bytes&lt;br /&gt;
|  [[2.0.0-2]]&lt;br /&gt;
|  [https://dl.dropboxusercontent.com/u/60710927/CTR/Sample/HomeMenuExtdata/Cache.dat Download]&lt;br /&gt;
|-&lt;br /&gt;
|  CacheD.dat&lt;br /&gt;
|  Cached icon data for Home Menu. Always image 00000005.&lt;br /&gt;
|  0x4cfe00 Bytes&lt;br /&gt;
|  [[2.0.0-2]]&lt;br /&gt;
|  [https://dl.dropboxusercontent.com/u/60710927/CTR/Sample/HomeMenuExtdata/CacheD.dat Download]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Cache.dat &amp;amp; CacheD.dat ===&lt;br /&gt;
These two files work in tandem to allow the home menu to cache icon data for applications which are presented on the Home Menu. The size of both files suggests a maximum cache size of 360 icons. Cache.dat stores details about the cache icon data, and CacheD.dat stores the icon data. The icon cache stores icon data for *all* applications shown on the Home Menu, this includes DSi NAND Titles, and DS(i) cartridges. The format of cached DS(i) icon data is not understood, but they are the same size as 3DS icon data (0x36c0).&lt;br /&gt;
&lt;br /&gt;
In Cache.dat the first 8 bytes are a header where the first byte is the format-version, then follows each icon slots&#039;s entry in the format:&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  OFFSET&lt;br /&gt;
!  SIZE&lt;br /&gt;
!  DESCRIPTION&lt;br /&gt;
|-&lt;br /&gt;
|  0x0&lt;br /&gt;
|  8&lt;br /&gt;
|  Title ID in Little Endian&lt;br /&gt;
|-&lt;br /&gt;
|  0x8&lt;br /&gt;
|  4&lt;br /&gt;
|  Unknown&lt;br /&gt;
|-&lt;br /&gt;
|  0xc&lt;br /&gt;
|  4&lt;br /&gt;
|  Unknown&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
All unused entries have the Title IDs filled with &amp;quot;0xff&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
In CacheD.dat, the icon data is concatenated together, with the first icon at offset 0x0.&lt;br /&gt;
&lt;br /&gt;
=== SaveData.dat ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Offset&lt;br /&gt;
!  Size&lt;br /&gt;
!  Description&lt;br /&gt;
|-&lt;br /&gt;
| 0x0&lt;br /&gt;
| 0x1&lt;br /&gt;
| SaveData.dat format version.&lt;br /&gt;
|-&lt;br /&gt;
| 0x8&lt;br /&gt;
| 0xB40&lt;br /&gt;
| 360 u64s, list of titleIDs(used with icons). Equivalent to the same array in Launcher.dat.&lt;br /&gt;
|-&lt;br /&gt;
| 0xB48&lt;br /&gt;
| 0x168&lt;br /&gt;
| s8 bool array with 360 entries. Some SD-only icon array. Probably an array for each icon present status? Each entry is only known to be set to 0x00 or 0x01, with the former being the default.&lt;br /&gt;
|-&lt;br /&gt;
| 0xCB0&lt;br /&gt;
| 0x2D0&lt;br /&gt;
| s16 array with 360 entries, used with icons. Equivalent to the same array in Launcher.dat. Implemented with format-version 2.&lt;br /&gt;
|-&lt;br /&gt;
| 0xF80&lt;br /&gt;
| 0x168&lt;br /&gt;
| s8 array with 360 entries, used with icons. Equivalent to the same array in Launcher.dat. Implemented with format-version 2.&lt;br /&gt;
|-&lt;br /&gt;
| 0x13b8&lt;br /&gt;
| 0x8&lt;br /&gt;
| Theme entry structure for the regular theme.&lt;br /&gt;
|-&lt;br /&gt;
| 0x13c0&lt;br /&gt;
| 0x8*10(0x50)&lt;br /&gt;
| Array of theme entry structures for theme [[9.3.0-21|shuffling]].&lt;br /&gt;
|-&lt;br /&gt;
| 0x141b&lt;br /&gt;
| 0x1&lt;br /&gt;
| 0 = one regular theme, 1 = multiple themes for theme [[9.3.0-21|shuffle]].&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The icon arrays above are handled exactly the same way as Launcher.dat.&lt;br /&gt;
&lt;br /&gt;
When the theme cache is enabled via the above fields, Home Menu loads the cache at startup(if the used theme structure is valid).&lt;br /&gt;
&lt;br /&gt;
Theme entry structure:&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Offset&lt;br /&gt;
!  Size&lt;br /&gt;
!  Description&lt;br /&gt;
|-&lt;br /&gt;
| 0x0&lt;br /&gt;
| 0x4&lt;br /&gt;
| Theme index: for DLC this is the content-index, for built-in themes this is an index for an array selecting the built-in theme.&lt;br /&gt;
|-&lt;br /&gt;
| 0x4&lt;br /&gt;
| 0x1&lt;br /&gt;
| Normally zero. This is the low 8-bits in the DLC titleID that this theme was originally loaded from.&lt;br /&gt;
|-&lt;br /&gt;
| 0x5&lt;br /&gt;
| 0x1&lt;br /&gt;
| Theme type, the valid range is 0..5. 0 = none, 1 = built-in theme from Home Menu RomFS, 2 = theme data loaded from SD cache / content archive. 3 = ?, 4 = ?, 5 = ?&lt;br /&gt;
|-&lt;br /&gt;
| 0x6&lt;br /&gt;
| 0x1&lt;br /&gt;
| Normally zero?&lt;br /&gt;
|-&lt;br /&gt;
| 0x7&lt;br /&gt;
| 0x1&lt;br /&gt;
| Normally zero?&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
When the theme-type is value1 the themeindex must be &amp;lt;9. When the theme-type is value2 the themeindex has to be non-zero, and the u8 at offset 0x4 must not be &amp;gt;=10.&lt;br /&gt;
&lt;br /&gt;
The theme-loader code (besides the AM &amp;lt;is-current-themeindex-DLC-installed&amp;gt; code) handles all theme-types &amp;gt;=2 the same way. However, it seems all DLC AM code involving checking the currently-used theme DLC only gets executed when the theme-type is value2. The code in the theme-loader for that also checks that a certain Home Menu state flag is non-zero, before running the AM DLC code(it&#039;s unknown where this flag value comes from).&lt;br /&gt;
&lt;br /&gt;
==== SaveData.dat format versions ====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Version value&lt;br /&gt;
!  Filesize&lt;br /&gt;
!  Implemented with Home Menu system-version&lt;br /&gt;
|-&lt;br /&gt;
| 0&lt;br /&gt;
| 0x2CB0&lt;br /&gt;
| [[2.0.0-2|2.0.0-X]]&lt;br /&gt;
|-&lt;br /&gt;
| 2&lt;br /&gt;
| 0x2DA0&lt;br /&gt;
| [[4.0.0-7|4.0.0-X]]&lt;br /&gt;
|-&lt;br /&gt;
| 3&lt;br /&gt;
| 0x2DA0&lt;br /&gt;
| [[9.0.0-20|9.0.0-X]]&lt;br /&gt;
|-&lt;br /&gt;
| 4 (Latest version as of v10.6-v11.0 Home Menu)&lt;br /&gt;
| 0x2DA0&lt;br /&gt;
| [[9.3.0-21|9.3.0-X]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The Home Menu code for writing the updated SaveData.dat to FS is broken when the filesize is smaller than expected due to being from an older format-version originally. When writing to the file, Home Menu checks the filesize then attempts to use [[FSFile:SetSize]] on mismatch, but [[FSFile:SetSize]] can&#039;t be used with extdata(error from [[FSFile:SetSize]] appears to be ignored). When writing to SaveData.dat the write-size is the one for the current format-version, but since extdata files are fixed-size this will only result in the first {original filesize} bytes being written(result-code = 0xE0E046C1).&lt;br /&gt;
&lt;br /&gt;
Basically, unless the extdata is deleted from the SD card FS manually, the SaveData.dat filesize will never be successfully updated from an old filesize to the current-format filesize by Home Menu.&lt;br /&gt;
&lt;br /&gt;
== Home Menu [[Home_Menu/Themes|Theme]] SD [[Extdata|ExtData]] ==&lt;br /&gt;
The filesystem for this extdata is as follows:&lt;br /&gt;
&lt;br /&gt;
 root&lt;br /&gt;
 ├── icon&lt;br /&gt;
 ├── boss&lt;br /&gt;
 └── user&lt;br /&gt;
     ├── ThemeManage.bin&lt;br /&gt;
     ├── BodyCache.bin&lt;br /&gt;
     ├── BgmCache.bin&lt;br /&gt;
     └── nsalist&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  File&lt;br /&gt;
!  Details&lt;br /&gt;
!  Size&lt;br /&gt;
!  Extdata image ID&lt;br /&gt;
!  FW Introduced&lt;br /&gt;
!  Plaintext&lt;br /&gt;
|-&lt;br /&gt;
| ThemeManage.bin&lt;br /&gt;
| Theme management info. The filesize must match 0x800, otherwise the Home Menu code returns an error.&lt;br /&gt;
| 0x800&lt;br /&gt;
| 00000003&lt;br /&gt;
| [[9.0.0-20]]&lt;br /&gt;
|-&lt;br /&gt;
| BodyCache.bin&lt;br /&gt;
| Contains cached data from the last loaded [[Home_Menu/Themes|theme]] RomFS body_LZ.bin file. The filesize must match 0x150000, otherwise the Home Menu code returns an error.&lt;br /&gt;
| 0x150000&lt;br /&gt;
| 00000004&lt;br /&gt;
| [[9.0.0-20]]&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| BgmCache.bin&lt;br /&gt;
| Contains cached data from the last loaded [[Home_Menu/Themes|theme]] RomFS bgm.bcstm file. The filesize must match 0x337000, otherwise the Home Menu code returns an error.&lt;br /&gt;
| 0x337000&lt;br /&gt;
| 00000005&lt;br /&gt;
| [[9.0.0-20]]&lt;br /&gt;
|-&lt;br /&gt;
| nsalist&lt;br /&gt;
| Contains the list of DLC themes(IDs+prices), downloaded via [[SpotPass]].&lt;br /&gt;
| &lt;br /&gt;
| 00000007&lt;br /&gt;
| [[9.0.0-20]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
BodyCache.bin and BgmCache.bin contain cached theme data for the currently used DLC theme. ThemeManage.bin is loaded by Home Menu during startup. The cached theme data is loaded at startup when a DLC theme is selected. This also contains theme-shop [[SpotPass]] data.&lt;br /&gt;
&lt;br /&gt;
BodyCache.bin and BgmCache.bin are all-zero when no theme is selected.&lt;br /&gt;
&lt;br /&gt;
Starting with [[9.3.0-21|9.3.0-X]] Home Menu can use more files in this extdata, for theme shuffling. &amp;quot;theme:/ThemeManage.bin&amp;quot; &amp;quot;theme:/BgmCache_%02d.bin&amp;quot; &amp;quot;theme:/BodyCache_rd.bin&amp;quot;&lt;br /&gt;
&lt;br /&gt;
=== ThemeManage.bin ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Offset&lt;br /&gt;
!  Size&lt;br /&gt;
!  Description&lt;br /&gt;
|-&lt;br /&gt;
| 0x0&lt;br /&gt;
| 0x4&lt;br /&gt;
| Unknown, normally value 0x1?&lt;br /&gt;
|-&lt;br /&gt;
| 0x4&lt;br /&gt;
| 0x4&lt;br /&gt;
| Unknown, normally zero?&lt;br /&gt;
|-&lt;br /&gt;
| 0x8&lt;br /&gt;
| 0x4&lt;br /&gt;
| Actual size of the cached body_LZ.bin data.&lt;br /&gt;
|-&lt;br /&gt;
| 0xC&lt;br /&gt;
| 0x4&lt;br /&gt;
| Actual size of the cached bgm.bcstm data.&lt;br /&gt;
|-&lt;br /&gt;
| 0x10&lt;br /&gt;
| 0x4&lt;br /&gt;
| Unknown&lt;br /&gt;
|-&lt;br /&gt;
| 0x14&lt;br /&gt;
| 0x4&lt;br /&gt;
| Unknown&lt;br /&gt;
|-&lt;br /&gt;
| 0x18&lt;br /&gt;
| 0x4&lt;br /&gt;
| When a DLC theme is selected, this is the content-index of the DLC theme.&lt;br /&gt;
|-&lt;br /&gt;
| 0x1C&lt;br /&gt;
| 0x4&lt;br /&gt;
| Unknown, usually value 0x200 when the data in theme-cache is actually used?&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The total filesize is 0x800-bytes, normally the data starting at offset 0x1C is all-zero.&lt;br /&gt;
&lt;br /&gt;
When no theme is actually used,  the only non-zero fields are the following: the u32 stored at offset 0x0 in ThemeManage.bin is value 0x1, with offset 0x10 u32 set to value 0x1.&lt;br /&gt;
&lt;br /&gt;
== Home Menu badge SD [[Extdata|ExtData]] ==&lt;br /&gt;
The filesystem for this extdata(when it actually exists) is as follows:&lt;br /&gt;
&lt;br /&gt;
 root&lt;br /&gt;
 ├── icon&lt;br /&gt;
 ├── boss&lt;br /&gt;
 └── user&lt;br /&gt;
     ├── BadgeData.dat&lt;br /&gt;
     └── BadgeMngFile.dat&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  File&lt;br /&gt;
!  Details&lt;br /&gt;
!  Size&lt;br /&gt;
!  Extdata image ID&lt;br /&gt;
!  FW Introduced&lt;br /&gt;
|-&lt;br /&gt;
| BadgeData.dat&lt;br /&gt;
| [[Home_Menu#BadgeData.dat|See below.]]&lt;br /&gt;
| 0xF4DF80&lt;br /&gt;
| &lt;br /&gt;
| [[9.0.0-20]]&lt;br /&gt;
|-&lt;br /&gt;
| BadgeMngFile.dat&lt;br /&gt;
| [[Home_Menu#BadgeMngFile.dat|See below.]]&lt;br /&gt;
| 0xD4A8&lt;br /&gt;
| &lt;br /&gt;
| [[9.0.0-20]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== BadgeData.dat ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Offset&lt;br /&gt;
!  Size&lt;br /&gt;
!  Description&lt;br /&gt;
|-&lt;br /&gt;
| 0x0&lt;br /&gt;
| 100 * 16 * 0x8A&lt;br /&gt;
| UTF-16 Badge Set Titles (16 per set for different languages)&lt;br /&gt;
|-&lt;br /&gt;
| 0x35E80&lt;br /&gt;
| 1000 * 16 * 0x8A&lt;br /&gt;
| UTF-16 Badge Titles (16 per set for different languages)&lt;br /&gt;
|-&lt;br /&gt;
| 0x250F80&lt;br /&gt;
| 100 * 0x2000&lt;br /&gt;
| [http://en.wikipedia.org/wiki/Z-order_curve Tiled] RGB565 64x64 Badge Set Icons&lt;br /&gt;
|-&lt;br /&gt;
| 0x318F80&lt;br /&gt;
| 1000 * 0x2800&lt;br /&gt;
| [http://en.wikipedia.org/wiki/Z-order_curve Tiled] RGB565 64x64 + Tiled A4 64x64 Badge Icons&lt;br /&gt;
|-&lt;br /&gt;
| 0xCDCF80&lt;br /&gt;
| 1000 * 0xA00&lt;br /&gt;
| [http://en.wikipedia.org/wiki/Z-order_curve Tiled] RGB565 32x32 + Tiled A4 32x32 Badge Icons&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== BadgeMngFile.dat ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Offset&lt;br /&gt;
!  Size&lt;br /&gt;
!  Description&lt;br /&gt;
|-&lt;br /&gt;
| 0x0&lt;br /&gt;
| 0x4&lt;br /&gt;
| u32, Must Be Zero&lt;br /&gt;
|-&lt;br /&gt;
| 0x4&lt;br /&gt;
| 0x4&lt;br /&gt;
| u32, Number of Badge Sets&lt;br /&gt;
|-&lt;br /&gt;
| 0x8&lt;br /&gt;
| 0x4&lt;br /&gt;
| u32, Number of Unique Badges&lt;br /&gt;
|-&lt;br /&gt;
| 0xC&lt;br /&gt;
| 0x4&lt;br /&gt;
| u32, Number of Placed Badges&lt;br /&gt;
|-&lt;br /&gt;
| 0x10&lt;br /&gt;
| 0x4&lt;br /&gt;
| u32, Selected Badge Set in Home Menu (0xFFFFFFFF = All Badges)&lt;br /&gt;
|-&lt;br /&gt;
| 0x14&lt;br /&gt;
| 0x4&lt;br /&gt;
| u32, Selected Badge Column in All Badges&lt;br /&gt;
|-&lt;br /&gt;
| 0x18&lt;br /&gt;
| 0x4&lt;br /&gt;
| u32, Number of Total Badges&lt;br /&gt;
|-&lt;br /&gt;
| 0x1C&lt;br /&gt;
| 0x4&lt;br /&gt;
| u32, Nintendo Network ID Number&lt;br /&gt;
|-&lt;br /&gt;
| 0x20&lt;br /&gt;
| 0x338&lt;br /&gt;
| Unknown (always zeros? unused?)&lt;br /&gt;
|-&lt;br /&gt;
| 0x358&lt;br /&gt;
| 0x80&lt;br /&gt;
| Used Badge Slots (each bit = 1 slot)&lt;br /&gt;
|-&lt;br /&gt;
| 0x3D8&lt;br /&gt;
| 0x10&lt;br /&gt;
| Used Badge Set Slots (each bit = 1 slot)&lt;br /&gt;
|-&lt;br /&gt;
| 0x3E8&lt;br /&gt;
| 1000 * 0x28&lt;br /&gt;
| [[Home_Menu#BadgeInfo|BadgeInfo]] Entries&lt;br /&gt;
|-&lt;br /&gt;
| 0xA028&lt;br /&gt;
| 100 * 0x30&lt;br /&gt;
| [[Home_Menu#BadgeSetInfo|BadgeSetInfo]] Entries&lt;br /&gt;
|-&lt;br /&gt;
| 0xB2E8&lt;br /&gt;
| 360 * 0x18&lt;br /&gt;
| [[Home_Menu#BadgeLayoutSlot|BadgeLayoutSlot]] Entries&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==== BadgeIdentifier ====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Offset&lt;br /&gt;
!  Size&lt;br /&gt;
!  Description&lt;br /&gt;
|-&lt;br /&gt;
| 0x0&lt;br /&gt;
| 0x4&lt;br /&gt;
| u32, Unknown&lt;br /&gt;
|-&lt;br /&gt;
| 0x4&lt;br /&gt;
| 0x4&lt;br /&gt;
| u32, Badge ID&lt;br /&gt;
|-&lt;br /&gt;
| 0x8&lt;br /&gt;
| 0x4&lt;br /&gt;
| u32, Badge Set ID&lt;br /&gt;
|-&lt;br /&gt;
| 0xC&lt;br /&gt;
| 0x2&lt;br /&gt;
| u16, Badge Index&lt;br /&gt;
|-&lt;br /&gt;
| 0xE&lt;br /&gt;
| 0x2&lt;br /&gt;
| u16, Badge Sub ID (used for multi-part badges)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==== BadgeSetIdentifier ====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Offset&lt;br /&gt;
!  Size&lt;br /&gt;
!  Description&lt;br /&gt;
|-&lt;br /&gt;
| 0x0&lt;br /&gt;
| 0x4&lt;br /&gt;
| u32, Unknown (Usually 0xFFFFFFFF)&lt;br /&gt;
|-&lt;br /&gt;
| 0x4&lt;br /&gt;
| 0x4&lt;br /&gt;
| u32, Unknown (Usually 0xFFFFFFFF)&lt;br /&gt;
|-&lt;br /&gt;
| 0x8&lt;br /&gt;
| 0x4&lt;br /&gt;
| u32, Unknown (Usually 0x0)&lt;br /&gt;
|-&lt;br /&gt;
| 0xC&lt;br /&gt;
| 0x4&lt;br /&gt;
| u32, Unknown (Usually 0x2710)&lt;br /&gt;
|-&lt;br /&gt;
| 0x10&lt;br /&gt;
| 0x4&lt;br /&gt;
| u32, Badge Set ID&lt;br /&gt;
|-&lt;br /&gt;
| 0x14&lt;br /&gt;
| 0x4&lt;br /&gt;
| u32, Badge Set Index&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==== BadgeInfo ====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Offset&lt;br /&gt;
!  Size&lt;br /&gt;
!  Description&lt;br /&gt;
|-&lt;br /&gt;
| 0x0&lt;br /&gt;
| 0x10&lt;br /&gt;
| [[Home_Menu#BadgeIdentifier|BadgeIdentifier]]&lt;br /&gt;
|-&lt;br /&gt;
| 0x10&lt;br /&gt;
| 0x2&lt;br /&gt;
| u16, Number Placed&lt;br /&gt;
|-&lt;br /&gt;
| 0x12&lt;br /&gt;
| 0x2&lt;br /&gt;
| u16, Quantity&lt;br /&gt;
|-&lt;br /&gt;
| 0x14&lt;br /&gt;
| 0x4&lt;br /&gt;
| u32, Unknown (packed data?)&lt;br /&gt;
|-&lt;br /&gt;
| 0x18&lt;br /&gt;
| 0x10&lt;br /&gt;
| u64[2], Shortcut Title ID (twice, once per u64)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==== BadgeSetInfo ====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Offset&lt;br /&gt;
!  Size&lt;br /&gt;
!  Description&lt;br /&gt;
|-&lt;br /&gt;
| 0x0&lt;br /&gt;
| 0x18&lt;br /&gt;
| [[Home_Menu#BadgeSetIdentifier|BadgeSetIdentifier]]&lt;br /&gt;
|-&lt;br /&gt;
| 0x18&lt;br /&gt;
| 0x4&lt;br /&gt;
| u32, Unknown (usually 0xFFFFFFFF)&lt;br /&gt;
|-&lt;br /&gt;
| 0x1C&lt;br /&gt;
| 0x4&lt;br /&gt;
| u32, Number of Unique Badges&lt;br /&gt;
|-&lt;br /&gt;
| 0x20&lt;br /&gt;
| 0x4&lt;br /&gt;
| u32, Number of Total Badges&lt;br /&gt;
|-&lt;br /&gt;
| 0x24&lt;br /&gt;
| 0x4&lt;br /&gt;
| u32, Start Badge Index&lt;br /&gt;
|-&lt;br /&gt;
| 0x28&lt;br /&gt;
| 0x4&lt;br /&gt;
| u32, Unknown (usually 0x0)&lt;br /&gt;
|-&lt;br /&gt;
| 0x2C&lt;br /&gt;
| 0x4&lt;br /&gt;
| u32, Unknown (usually 0x0)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==== BadgeLayoutSlot ====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Offset&lt;br /&gt;
!  Size&lt;br /&gt;
!  Description&lt;br /&gt;
|-&lt;br /&gt;
| 0x0&lt;br /&gt;
| 0x10&lt;br /&gt;
| [[Home_Menu#BadgeIdentifier|BadgeIdentifier]]&lt;br /&gt;
|-&lt;br /&gt;
| 0x10&lt;br /&gt;
| 0x4&lt;br /&gt;
| u32, Position&lt;br /&gt;
|-&lt;br /&gt;
| 0x14&lt;br /&gt;
| 0x4&lt;br /&gt;
| u32, Folder (0xF0FF = Icon of a folder, 0xFFFFFFFF = No folder)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The file size must match 0xD4A8, otherwise the Home Menu code returns an error.&lt;br /&gt;
&lt;br /&gt;
== Home Menu theme layout SD [[Extdata|ExtData]] ==&lt;br /&gt;
The filesystem for this extdata(when it actually exists) is as follows:&lt;br /&gt;
&lt;br /&gt;
 root&lt;br /&gt;
 ├── icon&lt;br /&gt;
 ├── boss&lt;br /&gt;
 └── user&lt;br /&gt;
     └── MngFile.dat&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  File&lt;br /&gt;
!  Details&lt;br /&gt;
!  Size&lt;br /&gt;
!  Extdata image ID&lt;br /&gt;
!  FW Introduced&lt;br /&gt;
!  Plaintext&lt;br /&gt;
|-&lt;br /&gt;
| MngFile.dat&lt;br /&gt;
| See below.&lt;br /&gt;
| 0x004D1280&lt;br /&gt;
| 00000003&lt;br /&gt;
| [[9.6.0-24]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== MngFile.dat ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Offset&lt;br /&gt;
!  Size&lt;br /&gt;
!  Description&lt;br /&gt;
|-&lt;br /&gt;
| 0x0&lt;br /&gt;
| 0x4&lt;br /&gt;
| u32, must be zero.&lt;br /&gt;
|-&lt;br /&gt;
| 0x4&lt;br /&gt;
| 0x4&lt;br /&gt;
| u32, total number of stored layouts.&lt;br /&gt;
|-&lt;br /&gt;
| 0x8&lt;br /&gt;
| 0x4&lt;br /&gt;
| ?&lt;br /&gt;
|-&lt;br /&gt;
| 0xC&lt;br /&gt;
| ?&lt;br /&gt;
| Start of the layout entries.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Layout entries structure:&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Offset&lt;br /&gt;
!  Size&lt;br /&gt;
!  Description&lt;br /&gt;
|-&lt;br /&gt;
| 0x0&lt;br /&gt;
| 0x2558&lt;br /&gt;
| Exact copy of the entire Home Menu [[System_SaveData]] Launcher.dat, this is the actual layout data.&lt;br /&gt;
|-&lt;br /&gt;
| 0x2558&lt;br /&gt;
| ?&lt;br /&gt;
| Layout preview screenshot gfx data, displayed by the Home Menu layout settings menu.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The filesize must match 0x004D1280, otherwise the Home Menu code returns an error. The saved Home Menu layouts are stored here.&lt;br /&gt;
&lt;br /&gt;
When saving a layout, the total layout field is increased, then a new layout entry is created with the contents of the current Home Menu [[System_SaveData]](NAND savedata) Launcher.dat + a screenshot of the main Home Menu screen is written. When loading a layout, Launcher.dat in savedata is written with the current Launcher.dat data already stored in memory(unknown if any data gets changed for it here), then data from the layout entry is copied into the Home Menu [[System_SaveData]] Launcher.dat.&lt;br /&gt;
&lt;br /&gt;
Home Menu *only* accesses this file with the Home Menu layout-settings menu / when entering that menu.&lt;br /&gt;
&lt;br /&gt;
== Home Menu startup ==&lt;br /&gt;
The following is what Home Menu does at startup(converted from cmd-logs), from [[9.4.0-21]], in the same order Home Menu does it.&lt;br /&gt;
&lt;br /&gt;
Originally Home Menu mounted sdmc in main(), starting(?) with [[6.0.0-11]] Home Menu only has sdmc mounted while handling [[SD_Savedata_Backups]].&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Archive&lt;br /&gt;
!  Filename&lt;br /&gt;
!  Read size&lt;br /&gt;
!  Notes&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| srv_init(), then srv_GetServiceHandle is used to initialize the service handles for the following services: [[NS_and_APT_Services|ns:s]], [[PTM_Services|ptm:sysm]], and [[Config_Services|cfg:s]].&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| [[CfgS:SecureInfoGetByte101]] and [[CfgS:GetLocalFriendCodeSeed]] are used, the output data from these are not used. If either of these return an error, Home Menu uses [[ERR:Throw]].&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| [[Cfg:GetSystemModel]] is then used to initialize a Home Menu state field.&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| Home Menu then loads the system language via [[CfgS:GetConfigInfoBlk2]], and uses [[Cfg:SecureInfoGetRegion]], to initialize Home Menu region/language state. Home Menu then uses [[Cfg:SecureInfoGetRegion]] again, then loads the [[Config_Savegame|CountryInfo]] via [[CfgS:GetConfigInfoBlk2]].&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| Home Menu initializes [[Filesystem_services|fs:USER]] here. Home Menu then mounts the Home Menu CXI RomFS. Then Home Menu uses [[Filesystem_services|FSUSER:GetPriority]].&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| Home Menu starts APT initialization / using APT service commands here. Eventually Home Menu then [[NSS:LaunchTitle|launches]] various system-modules.&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| Here Home Menu attempts to open NAND shared-[[extdata]] 0xe0000000, which will normally fail since it doesn&#039;t exist.&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| Here Home Menu uses [[Application_Manager_Services|AM]] command 0x00130040, with input u8 = value 0x0. Home Menu continues using APT commands after this.&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| [[HID_Services|hid:SPVR]] service initialization is done here.&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| [[PTM_Services|PTMSYSM:GetShellStatus]] is used here.&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| [[Filesystem_services|FSUSER:GetCardType]] is used here. AM commands are then used to get the inserted gamecard programID, when successful the gamecard ExeFS:/icon is then read to check the auto-boot flag(see the auto-boot section on this page). The system-setup-required flag is then read here if needed, as mentioned under the auto-boot section of this page.&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| Home Menu then uses cfg commands to load system language, region, and CountryInfo.&lt;br /&gt;
|-&lt;br /&gt;
| Home Menu CXI RomFS&lt;br /&gt;
| &amp;quot;/message/&amp;lt;Region&amp;gt;_&amp;lt;Language&amp;gt;/menu_msbt_LZ.bin&amp;quot;&lt;br /&gt;
| Presumably loaded from the filesize.&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| Home Menu CXI RomFS&lt;br /&gt;
| &amp;quot;/message/&amp;lt;Region&amp;gt;_&amp;lt;Language&amp;gt;/RI_mstl_LZ.bin&amp;quot;&lt;br /&gt;
| Presumably loaded from the filesize.&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| Home Menu CXI RomFS&lt;br /&gt;
| &amp;quot;/message_hud/&amp;lt;Region&amp;gt;_&amp;lt;Language&amp;gt;/hud_msbt_LZ.bin&amp;quot;&lt;br /&gt;
| Presumably loaded from the filesize.&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| Home Menu CXI RomFS&lt;br /&gt;
| &amp;quot;/message_hud/&amp;lt;Region&amp;gt;_&amp;lt;Language&amp;gt;/RI_mstl_LZ.bin&amp;quot;&lt;br /&gt;
| Presumably loaded from the filesize.&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| [[NS_and_APT_Services|APT:GetSharedFont]] is used here.&lt;br /&gt;
|-&lt;br /&gt;
| Home Menu CXI RomFS&lt;br /&gt;
| &amp;quot;/font/Hud_JP.bcfnt&amp;quot;&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
|&lt;br /&gt;
| Here Home Menu loads the [[Config_Savegame|cfg]] state for blkID 0x50005.&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| Here Home Menu loads the GPU shaders from RomFS.&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| Here Home Menu does DSP initialization then starts using DSP commands etc + loads sound data from RomFS.&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| Here Home Menu does GSP initialization.&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| [[APT:GetCaptureInfo]] is used here.&lt;br /&gt;
|-&lt;br /&gt;
| Home Menu CXI RomFS&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| Here Home Menu uses [[PTM_Services|PTMSYSM:GetShellStatus]], [[PTMSYSM:GetSoftwareClosedFlag]], and [[PTMSYSM:ClearSoftwareClosedFlag]]. Home Menu then uses [[PTM_Services|PTMSYSM:GetShellStatus]] 3 times in a row. Starting from here, Home Menu uses [[PTM_Services|PTMSYSM:GetShellStatus]] frequently(presumably from a separate thread).&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| Home Menu opens the archive for the Home Menu [[System_SaveData]] here. Then Home Menu attempts to open &amp;quot;/Launcher.dat&amp;quot; for reading, when successful Home Menu just closes the file.&lt;br /&gt;
|-&lt;br /&gt;
| Home Menu [[System_SaveData]]&lt;br /&gt;
| &amp;quot;/Launcher.dat&amp;quot;&lt;br /&gt;
| 0x2490&lt;br /&gt;
| Prior to doing the read, Home Menu uses [[FSFile:GetSize]].&lt;br /&gt;
|-&lt;br /&gt;
| System CFA, titleID for USA: 0004009B00013302&lt;br /&gt;
| &amp;quot;/country.bin&amp;quot;&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| [[NS CFA]]&lt;br /&gt;
| &amp;quot;/ctr_backup_black_list&amp;quot;&lt;br /&gt;
| &lt;br /&gt;
| Home Menu first reads 0x10-bytes from offset 0x0, then after that it reads the rest of the file.&lt;br /&gt;
|-&lt;br /&gt;
| Home Menu CXI RomFS&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| Home Menu reads various RomFS files here.&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| Home Menu [[NSS:LaunchTitle|launches]] the camera system-module here.&lt;br /&gt;
|-&lt;br /&gt;
| Home Menu CXI RomFS&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| Home Menu reads various RomFS files here.&lt;br /&gt;
|-&lt;br /&gt;
| NGWord bad word list CFA&lt;br /&gt;
| &amp;quot;/version.dat&amp;quot;&lt;br /&gt;
| 0x4&lt;br /&gt;
| Home Menu mounts the ngword archive here, then reads version.dat. Home Menu then loads the [[Config_Savegame|cfg]] data for blkID 0x000A0000.&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| Home Menu [[NSS:LaunchTitle|launches]] various system-modules here(from a separate thread?).&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| Home Menu opens the following NAND shared extdata archives here: 0xf0000001, 0xf0000002, 0xf0000009, 0xf000000b, 0xf000000c, 0xf000000d, and 0xf000000b again.&lt;br /&gt;
|-&lt;br /&gt;
| NAND [[extdata]] 0xf000000b&lt;br /&gt;
| &amp;quot;/ubll.lst&amp;quot;&lt;br /&gt;
| 0x2ee0&lt;br /&gt;
| Prior to doing the read, Home Menu uses [[FSFile:GetSize]].&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| Home Menu opens NAND shared extdata archive 0xf000000b again.&lt;br /&gt;
|-&lt;br /&gt;
| NAND extdata 0xf000000b&lt;br /&gt;
| &amp;quot;/CFL_DB.dat&amp;quot;&lt;br /&gt;
| 0xe4c0&lt;br /&gt;
| Home Menu only does one read with size 0xe4c0 for this, even though the value it loads from [[FSFile:GetSize]] is larger than that.&lt;br /&gt;
|-&lt;br /&gt;
| NAND extdata 0xf000000b&lt;br /&gt;
| &amp;quot;/CFL_OldDB.dat&amp;quot;&lt;br /&gt;
| &lt;br /&gt;
| Home Menu just closes this file immediately after opening it, when opening it was successful at least.&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| Home Menu loads the [[Config_Savegame|cfg]] data for blkID 0x000C0000 here.&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| Home Menu opens NAND shared extdata archive 0xf000000b again.&lt;br /&gt;
|-&lt;br /&gt;
| NAND extdata 0xf000000b&lt;br /&gt;
| [[Extdata|&amp;quot;/gamecoin.dat&amp;quot;]]&lt;br /&gt;
| 0x14&lt;br /&gt;
| Home Menu first tries to use [[FS:CreateFile]] with this, which will fail when the file already exists. This file is then opened with openflags=RW. After reading this file, Home Menu then uses [[PTM:GetTotalStepCount]], then uses [[FSFile:GetSize]]. Then the service handle for [[NDM_Services|&amp;quot;ndm:u&amp;quot;]] is initialized with srv_GetServiceHandle(done from a separate thread perhaps?). Then Home Menu writes to the already opened gamecoin.dat file.&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| [[Filesystem_services|FSUSER:CardSlotIsInserted]] and [[Filesystem_services|FSUSER:GetCardType]] is used here. AM commands are then used to get the inserted gamecard programID, when successful the gamecard ExeFS:/icon is then read.&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| [[BOSS_Services|&amp;quot;boss:P&amp;quot;]] service handle initialization with srv_GetServiceHandle is done here. Then [[Services|srv_Subscribe]] is used with various noticationIDs. Home Menu then uses [[FS:IsSdmcDetected]] and [[FS:IsSdmcWritable]]. Home Menu then loads the [[Config_Savegame|cfg]] data for blkID 0x000D0000. Home Menu uses boss:P command 0x4010082, then uses srv_GetServiceHandle for initializing service handles with the following services: [[News_Services|&amp;quot;news:s&amp;quot;]] and &amp;quot;cecd:s&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| srv_GetServiceHandle is used to initialize the service handle for service [[Friend_Services|&amp;quot;frd:a&amp;quot;]], then various service commands are used for that.&lt;br /&gt;
|-&lt;br /&gt;
| NAND [[extdata]] 0xf000000c&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| Home Menu first attempts to use [[FS:CreateFile]] with &amp;quot;/bashotorya.dat&amp;quot;, which normally fails since that file already exists. Home Menu then repeats this with &amp;quot;/bashotorya2.dat&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| Here, Home Menu opens the following SD extdata archives: Home Menu badge SD extdata, Home Menu SD extdata, and the theme-cache SD extdata.&lt;br /&gt;
|-&lt;br /&gt;
| Home Menu SD extdata&lt;br /&gt;
| &amp;quot;/SaveData.dat&amp;quot;&lt;br /&gt;
| 0x2da0&lt;br /&gt;
| Prior to doing the read, Home Menu uses [[FSFile:GetSize]].&lt;br /&gt;
|-&lt;br /&gt;
| Home Menu SD extdata&lt;br /&gt;
| &amp;quot;/Cache.dat&amp;quot;&lt;br /&gt;
| 0x1688&lt;br /&gt;
| Prior to doing the read, Home Menu uses [[FSFile:GetSize]].&lt;br /&gt;
|-&lt;br /&gt;
| Home Menu SD extdata&lt;br /&gt;
| &amp;quot;/CacheD.dat&amp;quot;&lt;br /&gt;
| 0x36c0&lt;br /&gt;
| This is used to read the cached icon data for the currently inserted gamecard, if any. Prior to doing the read, Home Menu uses [[FSFile:GetSize]]. After opening the file and before [[FSFile:GetSize]] is used, Home Menu uses AM commands 0x10070102(for theme DLC) and 0x30084(gamecard &amp;quot;title-listing&amp;quot;).&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| Home Menu uses the following AM commands for theme DLC here: 0x10050084 and 0x10020104.&lt;br /&gt;
|-&lt;br /&gt;
| Home Menu Theme SD extdata&lt;br /&gt;
| &amp;quot;/BodyCache.bin&amp;quot;&lt;br /&gt;
| 0x150000&lt;br /&gt;
| Before opening the file, Home Menu firsts opens this archive under a new archive-handle again, then closes it. Prior to doing the read, Home Menu uses [[FSFile:GetSize]].&lt;br /&gt;
|-&lt;br /&gt;
| Home Menu Theme SD extdata&lt;br /&gt;
| &amp;quot;/ThemeManage.bin&amp;quot;&lt;br /&gt;
| 0x8&lt;br /&gt;
| Prior to doing the read, Home Menu uses [[FSFile:GetSize]](the result is filesize 0x800).&lt;br /&gt;
|-&lt;br /&gt;
| Home Menu Theme SD extdata&lt;br /&gt;
| &amp;quot;/BgmCache.bin&amp;quot;&lt;br /&gt;
| &lt;br /&gt;
| The data is read from here as needed. After opening the file, Home Menu uses [[FSFile:GetSize]].&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| boss:P commands 0x00040000 and 0x04040080 are used here. Home Menu opens NAND shared-extdata 0xf000000e, then closes it when the archive was opened successfully. Then Home Menu uses boss:P command 0x04500102 with the theme extdata, with string &amp;quot;thmtop&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| boss:P command 0x04040080 is used, with the input programID set to the gamecard one. Then boss:P commands 0x000E0000 and 0x00160082 are used.&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| [[AMNet:GetTitleIDList|AM:GetTitleIDList]] is used with mediatype=SD and maxTIDs = 0x1c00.&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| boss:P command 0x00160082 is used.&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| [[PTM_Services|PTM:GetStepHistory]] is used.&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| srv_GetServiceHandle is used to initialize the service handle for [[AC_Services|&amp;quot;ac:u&amp;quot;]], then [[AC_Services|ACU:SetClientVersion]] is used. [[Services|srv_Subscribe]] is used, then ACU command 0x002F0004 is used.&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| [[AMNet:GetTitleIDList|AM:GetTitleIDList]] is used with mediatype=NAND and maxTIDs = 0x1c00.&lt;br /&gt;
|-&lt;br /&gt;
| NAND extdata 0xf000000b&lt;br /&gt;
| &amp;quot;/gamecoin.dat&amp;quot;&lt;br /&gt;
| 0x14&lt;br /&gt;
| Home Menu first tries to use FS:CreateFile with this, which will fail when the file already exists. This file is then opened with openflags=RW. After reading this file, Home Menu then uses [[PTM_Services|PTM:GetTotalStepCount]], then uses FSFile:GetSize. Then Home Menu writes to the already opened gamecoin.dat file. &lt;br /&gt;
&lt;br /&gt;
At the same time as doing the above, Home Menu also uses(probably from a different thread) [[AMNet:GetTitleIDList3|AM:GetTitleIDList3]] with mediatype=NAND and maxTIDs=0x2000. Then Home Menu uses [[AMNet:ListTitles|AM:ListTitles]] with the NAND promotional-video titleID. Then Home Menu attempts to open the ExeFS:/icon in the NAND promotional-video title.&lt;br /&gt;
|-&lt;br /&gt;
| Home Menu [[System_SaveData]]&lt;br /&gt;
| &amp;quot;/Launcher.dat&amp;quot;&lt;br /&gt;
| &lt;br /&gt;
| Prior to doing the write, Home Menu uses [[FSFile:GetSize]]. Home Menu writes 0x2490-bytes to the file here. From a separate thread(?) at the same time, Home Menu also uses [[AM:ReloadDBS]] and AM command 0x00130040 with input=0x1.&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| Home Menu loads the u8 value from [[Config_Savegame|cfg]] blkID 0x000E0000 here.&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| [[AM:ReloadDBS]], AM command 0x10070102(for theme DLC), AM command 0x00130040, and AM command 0x10050084(for theme DLC) are used here.&lt;br /&gt;
At the same time(from a different thread?), the &amp;quot;act:u&amp;quot; service handle is initialized with srv_GetServiceHandle. Then ACTU commands 0x00010084 and 0x000600C2 are used.&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| The [[NIM_Services|&amp;quot;nim:u&amp;quot;]] service handle is initialized with srv_GetServiceHandle. Then NIMU commands 0x000F0042, 0x00170042, 0x00150000, and 0x00050000 are used.&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| AM command 0x10020104(theme DLC) is used here. Then Home Menu CXI RomFS data is read.&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| Home Menu CXI RomFS data is read. [[Filesystem_services|FS:GetSpecialContentIndex]] for the gamecard is used, then MICU initialization is done here(separate thread maybe?).&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| [[ACU:GetWifiStatus]] is used, the NAND shared-extdata 0xf000000b archive is then opened here.&lt;br /&gt;
|-&lt;br /&gt;
| NAND extdata 0xf000000b&lt;br /&gt;
| &amp;quot;/idb.dat&amp;quot;&lt;br /&gt;
| 0x2008&lt;br /&gt;
| This first opens the file for writing, then uses [[FSFile:GetSize]](output filesize is 0x6d4000). Then it writes to the file using size 0, then closes the file. Then [[PTM_Services|PTM:GetStepHistory]] is used. Then Home Menu opens &amp;quot;/idbt.dat&amp;quot;, then reads 0x2008-bytes.&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| Home Menu starts using [[News_Services|&amp;quot;news:s&amp;quot;]] commands here. While Home Menu is doing this, it also uses(from another thread?) [[NS_and_APT_Services|APT:PrepareToStartNewestHomeMenu]], [[NIM_Services|NIMU:GetState]], and [[NDM_Services|NDMU:OverrideDefaultDaemons]] with input value 0xF.&lt;br /&gt;
Later with that news-command code still running, Home Menu also uses the following commands: [[ACU:GetWifiStatus]], [[NDM_Services|NDMU:QueryExclusiveMode]], and CECDS command 0x000E0000. Then [[Config_Savegame|cfg]] blkID 0x000D0000 is loaded.&lt;br /&gt;
|-&lt;br /&gt;
| NAND extdata 0xf000000b&lt;br /&gt;
| &amp;quot;/idbt.dat&amp;quot;&lt;br /&gt;
| &lt;br /&gt;
| Home Menu writes 0x2008-bytes to this file.&lt;br /&gt;
|-&lt;br /&gt;
| NAND extdata 0xf000000e&lt;br /&gt;
| &amp;quot;/versionList.dat&amp;quot;&lt;br /&gt;
| Loaded from the filesize.&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| boss:P command 0x00200082 is used with string &amp;quot;mmVerDl&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| ...&lt;br /&gt;
|-&lt;br /&gt;
| Home Menu [[System_SaveData]]&lt;br /&gt;
| &amp;quot;/Launcher.dat&amp;quot;&lt;br /&gt;
| &lt;br /&gt;
| When Home Menu is terminating(?), Home Menu writes 0x2490-bytes to the file here. After doing this, Home Menu opens, writes, and closes the file again.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Hardware reboot ===&lt;br /&gt;
During Home Menu start-up it uses [[APT:PrepareToStartNewestHomeMenu]]. If that doesn&#039;t return an error(normally NS returns 0xC8A0CFFC for that), Home Menu starts a hardware reboot with [[APT:StartNewestHomeMenu]] etc.&lt;br /&gt;
&lt;br /&gt;
On retail this essentially means a hardware-reboot will automatically trigger if [[Configuration_Memory|configmem]] SYSCOREVER doesn&#039;t match FIRM_SYSCOREVER, or when the current APPMEMTYPE doesn&#039;t match the default APPMEMTYPE for this Old3DS/New3ds model. The latter can happen with running New3DS NATIVE_FIRM with Old3DS system-titles, for example.&lt;br /&gt;
&lt;br /&gt;
== Returning to Home Menu from a crashed application ==&lt;br /&gt;
When returning to Home Menu from an application that didn&#039;t properly shutdown(like with an exception), PTM module writes data to the PTM system savedata. Then the system terminates Home Menu, and starts Home Menu again.&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
* http://www.nintendo.com/consumer/systems/3ds/en_na/menu_update.jsp&lt;br /&gt;
* http://www.nintendo.co.jp/netinfo/3ds/JPN/ja.html&lt;br /&gt;
* https://yls8.mtheall.com/ninupdates/reports.php&lt;/div&gt;</summary>
		<author><name>Yellows8</name></author>
	</entry>
	<entry>
		<id>https://www.3dbrew.org/w/index.php?title=3DS_System_Flaws&amp;diff=19862</id>
		<title>3DS System Flaws</title>
		<link rel="alternate" type="text/html" href="https://www.3dbrew.org/w/index.php?title=3DS_System_Flaws&amp;diff=19862"/>
		<updated>2017-04-12T12:45:16Z</updated>

		<summary type="html">&lt;p&gt;Yellows8: /* Process9 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Exploits are used to execute unofficial code (homebrew) on the Nintendo 3DS. This page is a list of publicly known system flaws, for userland applications/applets flaws see [[3DS_Userland_Flaws|here]].&lt;br /&gt;
&lt;br /&gt;
=Stale / Rejected Efforts=&lt;br /&gt;
* Neimod has been working on a RAM dumping setup for a little while now. He&#039;s de-soldered the 3DS&#039;s RAM chip and hooked it and the RAM pinouts on the 3DS&#039; PCB up to a custom RAM dumping setup. A while ago he published photos showing his setup to be working quite well, with the 3DS successfully booting up. However, his flickr stream is now private along with most of his work.&lt;br /&gt;
&lt;br /&gt;
* Someone (who will remain unnamed) has released CFW and CIA installers, all of which is copied from the work of others, or copyrighted material.&lt;br /&gt;
&lt;br /&gt;
==Tips and info==&lt;br /&gt;
The 3DS uses the XN feature of the ARM11 processor. There&#039;s no official way from applications to enable executable permission for memory containing arbitrary unsigned code(there&#039;s a [[SVC]] for this, but only [[RO_Services|RO-module]] has access to it). A usable userland exploit would still be useful: you could only do return-oriented-programming with it initially. From ROP one could then exploit system flaw(s), see below.&lt;br /&gt;
&lt;br /&gt;
SD card [[extdata]] and SD savegames can be attacked, for consoles where the console-unique [[Nand/private/movable.sed|movable.sed]] was dumped(accessing SD data is far easier by running code on the target 3DS however).&lt;br /&gt;
&lt;br /&gt;
=System flaws=&lt;br /&gt;
== Hardware ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
!  Summary&lt;br /&gt;
!  Description&lt;br /&gt;
!  Fixed with hardware model/revision&lt;br /&gt;
!  Newest hardware model/revision this flaw was checked for&lt;br /&gt;
!  Timeframe this was discovered&lt;br /&gt;
!  Discovered by&lt;br /&gt;
|-&lt;br /&gt;
| ARM9/ARM11 bootrom vectors point at uninitialized RAM&lt;br /&gt;
| ARM9&#039;s and ARM11&#039;s exception vectors are hardcoded to point at the CPU&#039;s internal memory (0x08000000 region for ARM9, AXIWRAM for ARM11). While the bootrom does set them up to point to an endless loop at some point during boot, it does not do so immediately. As such, a carefully-timed fault injection (via hardware) to trigger an exception (such as an invalid instruction) will cause execution to fall into ARM9 RAM. &lt;br /&gt;
Since RAM isn&#039;t cleared on boot (see below), one can immediately start execution of their own code here to dump bootrom, OTP, etc.&lt;br /&gt;
The ARM9 bootrom does the following at reset:  reset vector branches to another instruction, then branches to bootrom+0x8000. Hence, there&#039;s no way to know for certain when exactly the ARM9 exception-vector data stored in memory gets initialized.&lt;br /&gt;
&lt;br /&gt;
This requires *very* *precise* timing for triggering the hardware fault.&lt;br /&gt;
&lt;br /&gt;
It has been exploited by derrek to dump the ARM9 bootrom as of Summer 2015.&lt;br /&gt;
| None: all available 3DS models at the time of writing have the exact same ARM9/ARM11 bootrom for the unprotected areas.&lt;br /&gt;
| New3DS&lt;br /&gt;
| End of February 2014&lt;br /&gt;
| [[User:Derrek|derrek]], WulfyStylez (May 2015) independently&lt;br /&gt;
|-&lt;br /&gt;
| Missing AES key clearing&lt;br /&gt;
| The hardware AES engine does not clear keys when doing a hard reset/reboot.&lt;br /&gt;
| None&lt;br /&gt;
| New3DS&lt;br /&gt;
| August 2014&lt;br /&gt;
| Mathieulh/Others&lt;br /&gt;
|-&lt;br /&gt;
| No RAM clearing on reboots&lt;br /&gt;
| On an MCU-triggered reboot all RAM including FCRAM/ARM9 memory/AXIWRAM/VRAM keeps its contents.&lt;br /&gt;
| None&lt;br /&gt;
| New3DS&lt;br /&gt;
| March 2014&lt;br /&gt;
| [[User:Derrek|derrek]]&lt;br /&gt;
|-&lt;br /&gt;
| 32bits of actual console-unique TWLNAND keydata&lt;br /&gt;
| On retail the 8-bytes at ARM9 address [[Memory_layout|0x01FFB808]] are XORed with hard-coded data, to generate the TWL console-unique keys, including TWLNAND. On Old3DS the high u32 is always 0x0, while on New3DS that u32 is always 0x2. On top of this, the lower u32&#039;s highest bit is always ORed. only 31 bits of the TWL console-unique keydata / TWL consoleID are actually console-unique.&lt;br /&gt;
This allows one to easily bruteforce the TWL console-unique keydata with *just* data from TWLNAND. On DSi the actual console-unique data for key generation is 8-bytes(all bytes actually set).&lt;br /&gt;
| None&lt;br /&gt;
| New3DS&lt;br /&gt;
| 2012?&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| DSi / 3DS-TWL key-generator&lt;br /&gt;
| After using the key generator to generate the normal-key, you could overwrite parts of the normal-key with your own data and then recover the key-generator output by comparing the new crypto output with the original crypto output. From the normal-key outputs, you could deduce the TWL key-generator function.&lt;br /&gt;
This applies to the keyX/keyY too.&lt;br /&gt;
&lt;br /&gt;
This attack does not work for the 3DS key-generator because keyslots 0-3 are only for TWL keys.&lt;br /&gt;
| None&lt;br /&gt;
| New3DS&lt;br /&gt;
| 2011&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| 3DS key-generator&lt;br /&gt;
| The algorithm for generating the normal-keys for keyslots is cryptographically weak.  As a result, it is easily susceptible to differential cryptanalysis if the normal-key corresponding to any scrambler-generated keyslot is discovered.&lt;br /&gt;
&lt;br /&gt;
Several such pairs of matching normal-keys and KeyY values were found, leading to deducing the key-generator function.&lt;br /&gt;
| None&lt;br /&gt;
| New3DS&lt;br /&gt;
| February 2015&lt;br /&gt;
| [[User:Yellows8|Yellows8]], [[User:Plutooo|plutoo]]&lt;br /&gt;
|-&lt;br /&gt;
| FIRM partitions known-plaintext&lt;br /&gt;
| The [[Flash_Filesystem|FIRM partitions]] are encrypted with AES-CTR without a MAC. Since this works by XOR&#039;ing data with a static (per-console in this case) keystream, one can deduce the keystream of a portion of each FIRM partition if they have the actual FIRM binary stored in it.&lt;br /&gt;
&lt;br /&gt;
This can be paired with many exploits. For example, it allows minor FIRM downgrades (i.e. 10.4 to 9.6 or 9.5 to 9.4, but not 9.6 to 9.5).&lt;br /&gt;
&lt;br /&gt;
This can be somewhat addressed by having a FIRM header skip over previously used section offsets, but this would just air-gap newer FIRMs without fixing the core bug. This can also only be done a limited number of times due to the size of FIRM versus the size of the partitions.&lt;br /&gt;
| None&lt;br /&gt;
| New3DS&lt;br /&gt;
| &lt;br /&gt;
| Everyone&lt;br /&gt;
|-&lt;br /&gt;
| RSA keyslots don&#039;t clear exponent when setting modulus&lt;br /&gt;
| The [[RSA_Registers|RSA keyslots]] are set by boot ROM to have four private RSA keys.  The exponent value in the RSA registers is write-only and not readable.&lt;br /&gt;
&lt;br /&gt;
However, when setting a keyslot&#039;s modulus, the RSA hardware leaves the exponent alone.  This allows retrieving the exponent by doing a discrete logarithm of the output.&lt;br /&gt;
&lt;br /&gt;
By setting the modulus to a prime number whose modular multiplicative order is &amp;quot;smooth&amp;quot; (that is, p-1 is divisible by only small prime numbers), discrete logarithms can be calculated quickly using the [[wikipedia:Pohlig-Hellman algorithm|Pohlig-Hellman algorithm]].  If the prime chosen is greater than the modulus, but the same bit size, the discrete logarithm is the private exponent.&lt;br /&gt;
&lt;br /&gt;
This exploit&#039;s usefulness is limited: RSA keyslot 0 is only used in current firmware for deriving the 6.x save and 7.x NCCH keys, which were already known, and the other three keyslots are entirely unused.  Additionally, with a boot ROM dump, this exploit is moot; these private keys are located in the protected ARM9 boot ROM.&lt;br /&gt;
| None&lt;br /&gt;
| New3DS&lt;br /&gt;
| March 2016&lt;br /&gt;
| [[User:Myria|Myria]]&lt;br /&gt;
|-&lt;br /&gt;
| Boot9 AES keyinit function issues&lt;br /&gt;
| [[Bootloader|Boot9]] seems to have two bugs in the AES key-init function, see [[AES_Registers#AES_key-init|here]].&lt;br /&gt;
| None&lt;br /&gt;
| BootROM issue.&lt;br /&gt;
| 2015&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| [[CONFIG11_Registers#CFG11_GPUPROT|CFG11_GPUPROT]] allowing acccess to AXIWRAM/FCRAM-BASE-memregion&lt;br /&gt;
| [[CONFIG11_Registers#CFG11_GPUPROT|CFG11_GPUPROT]] can be configured by anything with access to it to allow the GPU to access the entire AXIWRAM+FCRAM. For example, this is an issue for any sysmodule that gets exploited and has access to this register memory-page(include one that&#039;s listed below).&lt;br /&gt;
&lt;br /&gt;
See also &amp;quot;kernelhax via gspwn&amp;quot; below.&lt;br /&gt;
| None&lt;br /&gt;
| New3DS&lt;br /&gt;
| February 7, 2017&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== ARM9 software ==&lt;br /&gt;
&lt;br /&gt;
=== arm9loader ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Summary&lt;br /&gt;
!  Description&lt;br /&gt;
!  Successful exploitation result&lt;br /&gt;
!  Fixed in [[FIRM]] system version&lt;br /&gt;
!  Last [[FIRM]] system version this flaw was checked for&lt;br /&gt;
!  Timeframe this was discovered&lt;br /&gt;
!  Public disclosure timeframe&lt;br /&gt;
!  Discovered by&lt;br /&gt;
|-&lt;br /&gt;
| Generating the keysector console-unique keys with ITCM+Boot9&lt;br /&gt;
| [[Bootloader|Boot9]] decrypts the 0x100-byte [[OTP_Registers|OTP]] using AES-CBC with keydata stored in Boot9. If hash verification is successful, the plaintext of the first 0x90-bytes are copied into [[Memory_layout|ITCM]]. This is the &#039;&#039;exact&#039;&#039; &#039;&#039;same&#039;&#039; region hashed by arm9loader when generating the console-unique keys for decrypting the keysector, except arm9loader uses the raw encrypted OTP.&lt;br /&gt;
&lt;br /&gt;
Therefore, with the OTP keydata+IV from Boot9 you can: encrypt the 0x90-bytes from ITCM, then hash the output to get the console-unique keys for the system&#039;s keysector. This can even be done for Old3DS which doesn&#039;t have the arm9loader keysector officially.&lt;br /&gt;
&lt;br /&gt;
It&#039;s unknown why arm9loader only used the first 0x90-bytes of OTP. Using more data from OTP would&#039;ve prevented this. Fixing this would require doing exactly that, but that would also mean updating the NAND keysector(which is dangerous).&lt;br /&gt;
| See description.&lt;br /&gt;
| None&lt;br /&gt;
| &lt;br /&gt;
| 2015&lt;br /&gt;
| January 6, 2017&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| Rearrangable keys in the NAND keystore&lt;br /&gt;
| Due to the keystore being encrypted with AES-ECB, one can rearrange blocks and still have the NAND keystore decrypt in a deterministic way. &lt;br /&gt;
&lt;br /&gt;
Using 10.0 FIRM it is possible to rearrange keys such that ARM9 memory is executed. As such using existing ARM9 execution 10.0 FIRM can be written to NAND and a payload written to memory, with the payload to be executed post-K9L using an MCU reboot.&lt;br /&gt;
| arm9loaderhax given existing ARM9 code execution&lt;br /&gt;
| None&lt;br /&gt;
| [[11.3.0-36|11.3.0-X]]&lt;br /&gt;
| Early 2016&lt;br /&gt;
| 27 September 2016&lt;br /&gt;
| Myria, [[User:Dark samus|dark_samus]]; mathieulh (independently); [[User:Plutooo|plutoo]] (independently) + others&lt;br /&gt;
|-&lt;br /&gt;
| Uncleared OTP hash keydata in console-unique 0x11 key-generation&lt;br /&gt;
| Kernel9Loader does not clear the [[SHA_Registers#SHA_HASH|SHA_HASH register]] after use. As a result, the data stored here as K9L hands over to Kernel9 is the hash of [[OTP_Registers|OTP data]] used to seed the [[FIRM#New_3DS_FIRM|console-unique NAND keystore decryption key]] set on keyslot 0x11.&lt;br /&gt;
&lt;br /&gt;
Retrieving this keydata and the [[Flash_Filesystem#0x12C00|NAND keystore]] of the same device allows calculating the decrypted New3DS NAND keystore (non-unique, common to all New3DS units), which contains AES normal keys, also set on keyslot 0x11, which are then used to derive all current [[AES_Registers#Keyslots|New3DS-only AES keyXs]] including the newer batch introduced in [[9.6.0-24#arm9loader|9.6.0-X]]. From there, it is trivial to perform the same key derivation in order to initialize those keys on any system version, and even on Old3DS.&lt;br /&gt;
&lt;br /&gt;
This can be performed by exploiting the &amp;quot;arm9loaderhax&amp;quot; vulnerability to obtain post-K9L code execution after an MCU reboot (the bootrom section-loading fail is not relevant here, this attack was performed without OTP data by brute-forcing keys), and using this to dump the SHA_HASH register. This attack works on any FIRM version shipping a vulnerable version of K9L, whereas OTP dumping required a boot of &amp;lt;[[3.0.0-6|3.0.0-X]].&lt;br /&gt;
&lt;br /&gt;
This attack results in obtaining the entire (0x200-bytes) NAND keystore - it was confirmed at a later date that this keystore is encrypted with the same key (by comparing the decrypted data from multiple units), and therefore using another key in this store will not remedy the issue as all keys are known (i.e. later, unused keys decrypt to the same 0x200-bytes constant with the same OTP hash). Later keys could have been encrypted differently but this is not the case. As a result of this, it is not possible for Nintendo to use K9L again in its current format for its intended purpose, though this was not news from the moment people dumped a New3DS OTP.&lt;br /&gt;
| Derivation of all New3DS keys generated via the NAND keystore (0x1B &amp;quot;Secure4&amp;quot; etc.)&lt;br /&gt;
| None&lt;br /&gt;
| [[11.3.0-36|11.3.0-X]]&lt;br /&gt;
| ~April 2015, implemented in May 2015&lt;br /&gt;
| 13 January 2016&lt;br /&gt;
| [[User:WulfyStylez|WulfyStylez]], [[User:Dazzozo|Dazzozo]], [[User:Shinyquagsire23|shinyquagsire23]] (complimentary + implemented), [[User:Plutooo|plutoo]], Normmatt (discovered independently)&lt;br /&gt;
|-&lt;br /&gt;
| enhanced-arm9loaderhax&lt;br /&gt;
| See the 32c3 3ds talk.&lt;br /&gt;
Since this is a combination of a trick with the arm9-bootrom + arm9loaderhax, and since you have to manually write FIRM to the firm0/firm1 NAND partitions, this can&#039;t be completely fixed. Any system with existing ARM9 code execution and an OTP/OTP hash dump can exploit this. Additionally, by using the FIRM partition known-plaintext bug and bruteforcing the second entry in the keystore, this can currently be exploited on all New3DS systems without any other prerequisite hacks.&lt;br /&gt;
| arm9loaderhax which automatically occurs at hard-boot.&lt;br /&gt;
| See arm9loaderhax / description.&lt;br /&gt;
| See arm9loaderhax / description.&lt;br /&gt;
| Theorized around mid July, 2015. Later implemented+tested by [[User:Plutooo|plutoo]] and [[User:Derrek|derrek]].&lt;br /&gt;
| 32c3 3ds talk (December 27, 2015)&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| Missing verification-block for the 9.6 keys (arm9loaderhax)&lt;br /&gt;
| Starting with [[9.6.0-24|9.6.0-X]] a new set of NAND-based keys were introduced. However, no verification block was added to verify that the new key read from NAND is correct. This was technically an issue from [[9.5.0-22|9.5.0-X]] with the original sector+0 keydata, however the below is only possible with [[9.6.0-24|9.6.0-X]] since keyslots 0x15 and 0x16 are generated from different 0x11 keyXs.&lt;br /&gt;
&lt;br /&gt;
Writing an incorrect key to NAND will cause arm9loader to decrypt the ARM9 kernel as garbage and then jump to it.&lt;br /&gt;
&lt;br /&gt;
This allows an hardware-based attack where you can boot into an older exploited firmware, fill all memory with NOP sleds/jump-instructions, and then reboot into executing garbage. By automating this process with various input keydata, eventually you&#039;ll find some garbage that jumps to your code.&lt;br /&gt;
&lt;br /&gt;
This gives very early ARM9 code execution (pre-ARM9 kernel). As such, it is possible to dump RSA keyslots with this and calculate the 6.x [[Savegames#6.0.0-11_Savegame_keyY|save]], and 7.x [[NCCH]] keys. This cannot be used to recover keys initialized by arm9loader itself. This is due to it wiping the area used for its stack during NAND sector decryption and keyslot init. &lt;br /&gt;
&lt;br /&gt;
Due to FIRMs on both Old and New 3DS using the same RSA data, this can be exploited on Old3DS as well, but only if one already has the actual plaintext normalkey from New3DS NAND sector 0x96 offset-0 and has dumped the OTP area of the Old3DS.&lt;br /&gt;
| Recovery of 6.x [[Savegames#6.0.0-11_Savegame_keyY|save key]]/7.x [[NCCH]] key, access to uncleared OTP hash keydata&lt;br /&gt;
| None&lt;br /&gt;
| [[11.3.0-36|11.3.0-X]]&lt;br /&gt;
| March, 2015&lt;br /&gt;
| &lt;br /&gt;
| [[User:Plutooo|plutoo]]&lt;br /&gt;
|-&lt;br /&gt;
| Uncleared New3DS keyslot 0x11&lt;br /&gt;
| Originally the New3DS [[FIRM]] arm9bin loader only cleared keyslot 0x11 when it gets executed at firmlaunch. This was fixed with [[9.5.0-22|9.5.0-X]] by completely clearing keyslot 0x11 immediately after the loader finishes using keyslot 0x11.&lt;br /&gt;
This means that any ARM9 code that can execute before the loader clears the keyslot at firmlaunch(including firmlaunch-hax) can get access to the uncleared keyslot 0x11, which then allows one to generate all &amp;lt;=v9.5 New3DS keyXs which are generated by keyslot 0x11.&lt;br /&gt;
&lt;br /&gt;
Therefore, to completely fix this the loader would have to generate more keys using different keyslot 0x11 keydata. This was done with [[9.6.0-24|9.6.0-X]].&lt;br /&gt;
| New3DS keyXs generation&lt;br /&gt;
| Mostly fixed with [[9.5.0-22|9.5.0-X]], completely fixed with new keys with [[9.6.0-24|9.6.0-X]].&lt;br /&gt;
| &lt;br /&gt;
| February 3, 2015 (one day after [[9.5.0-22|9.5.0-X]] release)&lt;br /&gt;
| &lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Process9 ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Summary&lt;br /&gt;
!  Description&lt;br /&gt;
!  Successful exploitation result&lt;br /&gt;
!  Fixed in [[FIRM]] system version&lt;br /&gt;
!  Last [[FIRM]] system version this flaw was checked for&lt;br /&gt;
!  Timeframe this was discovered&lt;br /&gt;
!  Public disclosure timeframe&lt;br /&gt;
!  Discovered by&lt;br /&gt;
|-&lt;br /&gt;
| Leak of normal-key matching a key-scrambler key&lt;br /&gt;
| New 3DS firmware versions [[8.1.0-0 New3DS|8.1.0]] through [[9.2.0-20|9.2.0]] set the encryption key for [[Amiibo]] data using a hardcoded normal-key in Process9.  In firmware [[9.3.0-21|9.3.0]], Nintendo &amp;quot;fixed&amp;quot; this by using the key scrambler instead, by calculating the keyY value for keyslot 0x39 that results in the same normal-key, then hardcoding that keyY into Process9.&lt;br /&gt;
&lt;br /&gt;
Nintendo&#039;s fix is actually the problem: Nintendo revealed the normal-key matching an unknown keyX and a known keyY.  Combined with the key scrambler using an insecure scrambling algorithm (see &amp;quot;Hardware&amp;quot; above), the key scrambler function could be deduced.&lt;br /&gt;
| Deducing the keyX for keyslot 0x39 and the key scrambler algorithm&lt;br /&gt;
| New 3DS [[9.3.0-21|9.3.0-X]], sort of&lt;br /&gt;
| [[10.0.0-27|10.0.0-X]]&lt;br /&gt;
| Sometime in 2015 after the hardware key-generator was broken.&lt;br /&gt;
| 32c3 3ds talk (December 27, 2015)&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| Leak of normal-key matching a key-generator key&lt;br /&gt;
| During the 3DS&#039; development (June/July 2010) Nintendo added support installing encrypted content ([[CIA]]). Common-key index1 was intended to be a [[AES|hardware generated key]]. However while they added code to generate the key in hardware, they forgot to remove the normal-key for index1 (used elsewhere, likely old debug code). Nintendo later removed the normal key sometime before the first non-prototype firmware release.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Knowing the keyY and the normal-key for common-key index1, the devkit key-generator algorithm can be deduced (see &amp;quot;Hardware&amp;quot; above). Additionally the remaining devkit common-keys can be generated once the common-key keyX is recovered.&lt;br /&gt;
&lt;br /&gt;
Note the devkit key-generator was discovered to be the same as the retail key-generator.&lt;br /&gt;
| Deducing the keyX for keyslot 0x3D and hardware key-generator algorithm. Generate remaining devkit common-keys.&lt;br /&gt;
| pre-[[1.0.0-0|1.0.0-X]]&lt;br /&gt;
| &lt;br /&gt;
| Shortly after the key-generator was revealed to be flawed at the 32c3 3ds talk&lt;br /&gt;
| January 20, 2016&lt;br /&gt;
| [[User:Jakcron|jakcron]]&lt;br /&gt;
|-&lt;br /&gt;
| safefirmhax&lt;br /&gt;
| SAFE_MODE_FIRM is almost never updated(even when NATIVE_FIRM is updated for vuln fixes), this can be noticed by &#039;&#039;just&#039;&#039; checking 3dbrew/ninupdates title-listings.&lt;br /&gt;
&lt;br /&gt;
The fix for firmlaunch-hax was only applied to NATIVE_FIRM in [[9.5.0-22|9.5.0-X]], leaving SAFE_FIRM exploitable. With ARM11-kernel execution, one can trigger FIRM-launch in to SAFE_FIRM, do Kernel9 &amp;lt;=&amp;gt; Kernel11 sync, PXI sync and then repeat the original attack on SAFE_FIRM instead.&lt;br /&gt;
| ARM9 code execution&lt;br /&gt;
| [[11.3.0-36|11.3.0-X]]&lt;br /&gt;
| &lt;br /&gt;
| 2012-2013?&lt;br /&gt;
| Wiki: January 2, 2017&lt;br /&gt;
| Everyone&lt;br /&gt;
|-&lt;br /&gt;
| safefirmhax 1.1&lt;br /&gt;
| Nintendo&#039;s original safefirmhax fix was flawed -- they added a global boolean that got set to true whenever a non-sysmodule title got launched (except for a hardcoded repair title id), and panic()&#039;d if that boolean was true to prevent launching safefirm after hax was active. However, because the boolean was initially false after firmlaunch -- With ARM11-kernel execution, one could FIRM-launch into NATIVE_FIRM, and then immediately FIRM-launch again into SAFE_FIRM early in NATIVE_FIRM boot before the boolean got set to true to repeat the safehax attack.&lt;br /&gt;
&lt;br /&gt;
This was fixed by adding additional CFG9_BOOTENV checks to firmlaunch code in 11.4.&lt;br /&gt;
| ARM9 code execution&lt;br /&gt;
| [[11.4.0-37|11.4.0-X]]&lt;br /&gt;
| &lt;br /&gt;
| safefirmhax fix&lt;br /&gt;
| Wiki: April 10, 2017&lt;br /&gt;
| Everyone&lt;br /&gt;
|-&lt;br /&gt;
| ntrcardhax&lt;br /&gt;
| When reading the banner of a NTR title, Process9 relies on a hardware register to know when the banner was fully read.&lt;br /&gt;
However that register is shared between the ARM9 and the ARM11.&lt;br /&gt;
An attacker with k11 control can so make Process9 believe the banner continues forever and so trigger a buffer overflow.&lt;br /&gt;
With a custom banner for a NTR flashcart, this leads to code execution in Process9.&lt;br /&gt;
&lt;br /&gt;
This was fixed by adding bound checks on the read data.&lt;br /&gt;
| ARM9 code execution&lt;br /&gt;
| [[10.4.0-29|10.4.0-X]]&lt;br /&gt;
| &lt;br /&gt;
| March 2015&lt;br /&gt;
| 32c3 3ds talk (December 27, 2015)&lt;br /&gt;
| [[User:Plutooo|plutoo]]&lt;br /&gt;
|-&lt;br /&gt;
| Title downgrading via [[Application_Manager_Services|AM]]([[Application_Manager_Services_PXI|PXI]])&lt;br /&gt;
| When a title is *already* installed, Process9 will compare the installed title-version with the title-version being installed. When the one being installed is older, Process9 would return an error.&lt;br /&gt;
&lt;br /&gt;
However, this can be bypassed by just deleting the title first via the service command(s) for that: with the title removed from the [[Title_Database]], Process9 can&#039;t compare the input title-version with anything. Hence, titles can be downgraded this way.&lt;br /&gt;
&lt;br /&gt;
[[11.0.0-33|11.0.0-X]] fixed this for key system titles (MSET, Home Menu, spider, ErrDisp, SKATER, NATIVE_FIRM, and every retail system module), by checking the version of the title to install against a hard-coded list of (titleID, minimumVersionRequired) pairs.&lt;br /&gt;
| Bypassing title version check at installation, which then allows downgrading any title.&lt;br /&gt;
| [[11.0.0-33|11.0.0-X]], for key system titles.&lt;br /&gt;
| NATIVE_FIRM / AM-sysmodule [[11.0.0-33|11.0.0-X]]&lt;br /&gt;
| ?&lt;br /&gt;
| &lt;br /&gt;
| ?&lt;br /&gt;
|-&lt;br /&gt;
| FAT FS code null-deref&lt;br /&gt;
| When FSFile:Read is used with a file which is corrupted on a FAT filesystem(in particular SD), Process9 can crash. This particular crash is caused by a function returning NULL instead of an actual ptr due to an error. The caller of that function doesn&#039;t check for NULL which then triggers a read based at NULL.&lt;br /&gt;
&lt;br /&gt;
Sample &amp;quot;fsck.vfat -n -v -V &amp;lt;fat image backup&amp;gt;&amp;quot; output for the above crash:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;...&lt;br /&gt;
Starting check/repair pass.&lt;br /&gt;
&amp;lt;FilePath0&amp;gt; and&lt;br /&gt;
&amp;lt;FilePath1&amp;gt;&lt;br /&gt;
 share clusters.&lt;br /&gt;
 Truncating second to 3375104 bytes.&lt;br /&gt;
&amp;lt;FilePath1&amp;gt;&lt;br /&gt;
 File size is 2787392 bytes, cluster chain length is 16384 bytes.&lt;br /&gt;
 Truncating file to 16384 bytes.&lt;br /&gt;
Checking for unused clusters.&lt;br /&gt;
Reclaimed 1 unused cluster (16384 bytes).&lt;br /&gt;
Checking free cluster summary.&lt;br /&gt;
Free cluster summary wrong (1404490 vs. really 1404491)&lt;br /&gt;
 Auto-correcting.&lt;br /&gt;
Starting verification pass.&lt;br /&gt;
Checking for unused clusters.&lt;br /&gt;
Leaving filesystem unchanged.&amp;lt;/pre&amp;gt;&lt;br /&gt;
| Useless null-based-read&lt;br /&gt;
| None&lt;br /&gt;
| [[9.6.0-24|9.6.0-X]]&lt;br /&gt;
| July 8-9, 2015&lt;br /&gt;
| &lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| RSA signature padding checks&lt;br /&gt;
| The TWL_FIRM RSA sig padding check code used for all TWL RSA sig-checks has issues, see [[FIRM|here]].&lt;br /&gt;
The main 3DS RSA padding check code(non-certificate, including NATIVE_FIRM) uses the function used with the above to extract more padding + the actual hash from the additional padding. This isn&#039;t really a problem here because there&#039;s proper padding check code which is executed prior to this.&lt;br /&gt;
| &lt;br /&gt;
| None&lt;br /&gt;
| [[9.5.0-22|9.5.0-X]]&lt;br /&gt;
| March 2015&lt;br /&gt;
| &lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| [[AMPXI:ValidateDSiWareSectionMAC]] [[AES_Registers|AES]] keyslot reuse&lt;br /&gt;
| When the input DSiWare section index is higher than &amp;lt;max number of DSiWare sections supported by this FIRM&amp;gt;, Process9 uses keyid 0x40 for calculating the AESMAC, which translates to keyslot 0x40. The result is that the keyslot is left at whatever was already selected before, since the AES selectkeyslot code will immediately  return when keyslot is &amp;gt;=0x40. However, actually exploiting this is difficult: the calculated AESMAC is never returned, this command just compares the calculated AESMAC with the input AESMAC(result-code depends on whether the AESMACs match). It&#039;s unknown whether a timing attack would work with this.&lt;br /&gt;
This is basically a different form of the pxips9 keyslot vuln, except with AESMAC etc.&lt;br /&gt;
| See description.&lt;br /&gt;
| None&lt;br /&gt;
| [[11.3.0-36|11.3.0-X]]&lt;br /&gt;
| March 15, 2015&lt;br /&gt;
| December 29, 2015&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| pxips9 [[AES_Registers|AES]] keyslot reuse&lt;br /&gt;
| This requires access to the [[Process_Services|ps:ps]]/pxi:ps9 services. One way to get access to this would be snshax on system-version &amp;lt;=10.1.0-X(see 32c3 3ds talk).&lt;br /&gt;
When an invalid key-type value is passed to any of the PS commands, Process9 will try to select keyslot 0x40. That aesengine_setkeyslot() code will then immediately return due to the invalid keyslot value. Since that function doesn&#039;t return any errors, Process9 will just continue to do crypto with whatever AES keyslot was selected before the PS command was sent.&lt;br /&gt;
| Reusing the previously used keyslot, for crypto with PS.&lt;br /&gt;
| None&lt;br /&gt;
| [[11.3.0-36|11.3.0-X]]&lt;br /&gt;
| Roughly the same time(same day?) as firmlaunch-hax.&lt;br /&gt;
| December 29, 2015&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| firmlaunch-hax: FIRM header ToCToU&lt;br /&gt;
| This can&#039;t be exploited from ARM11 userland.&lt;br /&gt;
During [[FIRM]] launch, the only FIRM header the ARM9 uses at all is stored in FCRAM, this is 0x200-bytes(the actual used FIRM RSA signature is read to the Process9 stack however). The ARM9 doesn&#039;t expect &amp;quot;anything&amp;quot; besides the ARM9 to access this data.&lt;br /&gt;
With [[9.5.0-22]] the address of this FIRM header was changed from a FCRAM address, to ARM9-only address 0x01fffc00.&lt;br /&gt;
| ARM9 code execution&lt;br /&gt;
| [[9.5.0-22]]&lt;br /&gt;
| &lt;br /&gt;
| 2012, 3 days after [[User:Yellows8|Yellows8]] started Process9 code RE.&lt;br /&gt;
| &lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| Uninitialized data output for (PXI) command replies&lt;br /&gt;
| PXI commands for various services(including some [[Filesystem_services_PXI|here]] and many others) can write uninitialized data (like from ARM registers) to the command reply. This happens with stubbed commands, but this can also occur with certain commands when returning an error.&lt;br /&gt;
Certain ARM11 service commands have this same issue as well.&lt;br /&gt;
| &lt;br /&gt;
| None&lt;br /&gt;
| [[9.3.0-21|9.3.0-X]]&lt;br /&gt;
| ?&lt;br /&gt;
| &lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| [[Filesystem_services_PXI|FSPXI]] OpenArchive SD permissions&lt;br /&gt;
| Process9 does not use the exheader ARM9 access-mount permission flag for SD at all.&lt;br /&gt;
This would mean ARM11-kernelmode code / fs-module itself could directly use FSPXI to access SD card without ARM9 checking for SD access, but this is rather useless since a process is usually running with SD access(Home Menu for example) anyway.&lt;br /&gt;
| &lt;br /&gt;
| None&lt;br /&gt;
| [[9.3.0-21|9.3.0-X]]&lt;br /&gt;
| 2012&lt;br /&gt;
| &lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| [[AMPXI:ExportDSiWare]] export path&lt;br /&gt;
| Process9 allocates memory on Process9 heap for the export path then verifies that the actual allocated size matches the input size. Then Process9 copies the input path from FCRAM to this buffer, and uses it with the Process9 FS openfile code, which use paths in the form of &amp;quot;&amp;lt;mountpoint&amp;gt;:/&amp;lt;path&amp;gt;&amp;quot;.&lt;br /&gt;
Process9 does not check the contents of this path at all before passing it to the FS code, besides writing a NUL-terminator to the end of the buffer.&lt;br /&gt;
| Exporting of DSiWare to arbitrary Process9 file-paths, such as &amp;quot;nand:/&amp;lt;path&amp;gt;&amp;quot; etc. This isn&#039;t really useful since the data which gets written can&#039;t be controlled.&lt;br /&gt;
| None&lt;br /&gt;
| [[9.5.0-22]]&lt;br /&gt;
| April 2013&lt;br /&gt;
| &lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| [[DSiWare_Exports]] [[CTCert]] verification&lt;br /&gt;
| Just like DSi originally did, 3DS verifies the APCert for DSiWare on SD with the CTCert also in the DSiWare .bin. On DSi this was fixed with with system-version 1.4.2 by verifying with the actual console-unique cert instead(stored in NAND), while on 3DS it&#039;s still not(?) fixed.&lt;br /&gt;
On 3DS however this is rather useless, due to the entire DSiWare .bin being encrypted with the console-unique movable.sed keyY.&lt;br /&gt;
| When the movable.sed keyY for the target 3DS is known and the target 3DS CTCert private-key is unknown, importing of modified DSiWare SD .bin files.&lt;br /&gt;
| Unknown, probably none.&lt;br /&gt;
| ?&lt;br /&gt;
| April 2013&lt;br /&gt;
| &lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| [[Gamecard_Services_PXI]] unchecked REG_CTRCARDCNT transfer-size&lt;br /&gt;
| The u8 REG_CTRCARDCNT transfer-size parameter for the [[Gamecard_Services_PXI]] read/write CTRCARD commands is used as an index for an array of u16 values. Before [[5.0.0-11|5.0.0-X]] this u8 value wasn&#039;t checked, thus out-of-bounds reads could be triggered(which is rather useless in this case).&lt;br /&gt;
| Out-of-bounds read for a value which gets written to a register.&lt;br /&gt;
| [[5.0.0-11|5.0.0-X]]&lt;br /&gt;
| &lt;br /&gt;
| 2013?&lt;br /&gt;
| &lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| [[PXI_Registers|PXI]] cmdbuf buffer overrun&lt;br /&gt;
| The Process9 code responsible [[PXI_Registers|PXI]] communications didn&#039;t verify the size of the incoming command before writing it to a C++ member variable. &lt;br /&gt;
| Probably ARM9 code execution&lt;br /&gt;
| [[5.0.0-11|5.0.0-11]]&lt;br /&gt;
| &lt;br /&gt;
| March 2015, original timeframe if any unknown&lt;br /&gt;
| &lt;br /&gt;
| [[User:Plutooo|plutoo]]/[[User:Yellows8|Yellows8]]/maybe others(?)&lt;br /&gt;
|-&lt;br /&gt;
| [[Application_Manager_Services_PXI|PXIAM]] command 0x003D0108(See also [[Application_Manager_Services|this]])&lt;br /&gt;
| When handling this command, Process9 allocates a 0x2800-byte heap buffer, then copies the 4 FCRAM input buffers to this heap buffer without checking the sizes at all(only the buffers with non-zero sizes are copied). Starting with [[5.0.0-11|5.0.0-X]], the total combined size of the input data must be &amp;lt;=0x2800.&lt;br /&gt;
| ARM9 code execution&lt;br /&gt;
| [[5.0.0-11|5.0.0-X]]&lt;br /&gt;
| &lt;br /&gt;
| May 2013&lt;br /&gt;
| &lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| [[Process_Services_PXI|PS RSA]] commands buffer overflows&lt;br /&gt;
| pxips9 cmd1(not accessible via ps:ps) and VerifyRsaSha256: unchecked copy to a buffer in Process9&#039;s .bss, from the input FCRAM buffer. The buffer is located before the pxi cmdhandler threads&#039; stacks. SignRsaSha256 also has a buf overflow, but this isn&#039;t exploitable.&lt;br /&gt;
The buffer for this is the buffer for the signature data. With v5.0, the signature buffer was moved to stack, with a check for the signature data size. When the signature data size is too large, Process9 uses [[SVC|svcBreak]].&lt;br /&gt;
| ARM9 code execution&lt;br /&gt;
| [[5.0.0-11|5.0.0-X]]&lt;br /&gt;
| &lt;br /&gt;
| 2012&lt;br /&gt;
| &lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| [[PXI_Registers|PXI]] pxi_id bad check&lt;br /&gt;
| The Process9 code responsible for [[PXI_Registers|PXI]] communications read pxi_id as a signed char. There were two flaws:&lt;br /&gt;
* They used it as index to a lookup-table without checking the value at all.&lt;br /&gt;
* Another function verified that pxi_id &amp;lt; 7, allowing negative values to pass the check. This would also cause an out-of-range table-lookup.&lt;br /&gt;
| Maybe ARM9 code execution&lt;br /&gt;
| [[3.0.0-5|3.0.0-5]]&lt;br /&gt;
|&lt;br /&gt;
| March 2015, originally 2012 for the first issue at least&lt;br /&gt;
| &lt;br /&gt;
| [[User:Plutooo|plutoo]], [[User:Yellows8|Yellows8]], maybe others(?)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Kernel9 ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Summary&lt;br /&gt;
!  Description&lt;br /&gt;
!  Successful exploitation result&lt;br /&gt;
!  Fixed in [[FIRM]] system version&lt;br /&gt;
!  Last [[FIRM]] system version this flaw was checked for&lt;br /&gt;
!  Timeframe this was discovered&lt;br /&gt;
!  Discovered by&lt;br /&gt;
|-&lt;br /&gt;
| [[CONFIG Registers#CFG_SYSPROT9|CFG_SYSPROT9]] bit1 not set by Kernel9&lt;br /&gt;
| Old versions of Kernel9 never set bit1 of [[CONFIG Registers#CFG_SYSPROT9|CFG_SYSPROT9]]. This leaves the [[OTP Registers|0x10012000]]-region unprotected (this region should be locked early during boot!). Since it&#039;s never locked, you can dump it once you get ARM9 code execution.&lt;br /&gt;
&lt;br /&gt;
From [[3.0.0-5|3.0.0-X]] this was fixed by setting the bit in Kernel9 after poking some registers in that region. On New3DS arm9loader sets this bit instead of Kernel9, which is exploitable through a hardware + software vulnerability (see arm9loaderhax / description).&lt;br /&gt;
&lt;br /&gt;
This flaw resurged when it gained a new practical use: retrieving the OTP data for a New3DS console in order to decrypt the key data used in arm9loader (see enhanced-arm9loaderhax / description). This was performed by downgrading to a vulnerable system version. By accounting for differences in CTR-NAND crypto (0x05 -&amp;gt; 0x04, see partition encryption types [[Flash_Filesystem#NAND_structure|here]]), it is possible to boot a New3DS using Old3DS firmware 1.0-2.X and an Old3DS [[NCSD#NCSD_header|NCSD Header]] to retrieve the required OTP data using this flaw.&lt;br /&gt;
| Dumping of the [[OTP Registers|OTP]] area&lt;br /&gt;
| [[3.0.0-5|3.0.0-X]]&lt;br /&gt;
|&lt;br /&gt;
| February 2015&lt;br /&gt;
| [[User:Plutooo|plutoo]], Normmatt independently&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== ARM11 software ==&lt;br /&gt;
=== Kernel11 ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Summary&lt;br /&gt;
!  Description&lt;br /&gt;
!  Successful exploitation result&lt;br /&gt;
!  Fixed in [[FIRM]] system version&lt;br /&gt;
!  Last [[FIRM]] system version this flaw was checked for&lt;br /&gt;
!  Timeframe this was discovered&lt;br /&gt;
!  Discovered by&lt;br /&gt;
|-&lt;br /&gt;
| [[SVC|svcGetThreadList]] process reference leak&lt;br /&gt;
| When given a valid process handle (including &amp;lt;code&amp;gt;0xFFFF8001&amp;lt;/code&amp;gt;), svcGetThreadList forgets to decrement the reference count of the underlying [[KProcess]] instance, after having finished using it.&lt;br /&gt;
| Before [[11.2.0-35|11.2.0-X]]: reference count overflow and therefore use-after-free, but this UAF was most likely not exploitable&lt;br /&gt;
| &lt;br /&gt;
| [[11.3.0-36|11.3.0-X]]&lt;br /&gt;
| April 3, 2017&lt;br /&gt;
| [[User:TuxSH|TuxSH]]&lt;br /&gt;
|-&lt;br /&gt;
| kernelhax via gspwn&lt;br /&gt;
| Originally the kernel didn&#039;t initialize [[CONFIG11_Registers#CFG11_GPUPROT|CFG11_GPUPROT]]. Since it&#039;s 0 at hard-boot, this allowed the GPU to access the entire FCRAM + AXIWRAM.&lt;br /&gt;
| Entire FCRAM+AXIWRAM R/W.&lt;br /&gt;
| [[3.0.0-5|3.0.0-X]]&lt;br /&gt;
| &lt;br /&gt;
| February 7, 2017&lt;br /&gt;
| [[User:Plutooo|plutoo]], [[User:Yellows8|Yellows8]] partly&lt;br /&gt;
|-&lt;br /&gt;
| fasthax&lt;br /&gt;
| When a KTimer is created in pulse mode, the kernel calls a virtual function to reset the timer each time it pulses. The scheduler is locked for that core to avoid race conditions, but another core can call CloseHandle on the timer and free it, leading to a UAF vtable call.&lt;br /&gt;
| See description.&lt;br /&gt;
| [[11.3.0-36|11.3.0-X]]&lt;br /&gt;
| [[11.3.0-36|11.3.0-X]]&lt;br /&gt;
| May 2016&lt;br /&gt;
| nedwill&lt;br /&gt;
|-&lt;br /&gt;
| ipctakeover&lt;br /&gt;
| When sending cmdreplies, it does not validate that the src_addr and src_size match the equivalent dst_addr and dst_size. With a modified addr/size specified in a cmdreply for an output buffer, the data-copy for the first/last pages could be used to overwrite data outside of the buffer specified by the original process.&lt;br /&gt;
&lt;br /&gt;
Used by ctr-httpwn as of v1.2, for &amp;quot;ipctakeover/bosshaxx&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
This can be used to takeover processes where the process is using your service session. Like HTTPC -&amp;gt; BOSS, for bosshaxx above. NIM takeover can be done too(actual stack buffer overflow can trigger), etc.&lt;br /&gt;
| See description.&lt;br /&gt;
| None&lt;br /&gt;
| [[11.3.0-36|11.3.0-X]]&lt;br /&gt;
| November 26, 2016&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| Using IPC input buffers as output buffers&lt;br /&gt;
| When sending cmdreplies, it does not validate that the cmdreply descriptor type matches the equivalent cmdreq descriptor type. This could be used by an exploited sysmodule to use what was intended as an input-buffer as an output-buffer, and also combine other IPC vuln(s) with this.&lt;br /&gt;
&lt;br /&gt;
Used by ctr-httpwn as of v1.2, for &amp;quot;ipctakeover/bosshaxx&amp;quot;.&lt;br /&gt;
| See description.&lt;br /&gt;
| None&lt;br /&gt;
| [[11.3.0-36|11.3.0-X]]&lt;br /&gt;
| November 2016&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
|  [[SVC]] table too small&lt;br /&gt;
|  The table of function pointers for SVC&#039;s only contains entries up to 0x7D, but the biggest allowed SVC for the table is 0x7F. Thus, executing SVC7E or SVC7F would make the SVC-handler read after the buffer, and interpret some ARM instructions as function pointers.&lt;br /&gt;
&lt;br /&gt;
However, this would require patching the kernel .text or modifying SVC-access-control. Even if you could get these to execute, they would still jump to memory that isn&#039;t mapped as executable.&lt;br /&gt;
| &lt;br /&gt;
|  None&lt;br /&gt;
| [[11.3.0-36|11.3.0-X]]&lt;br /&gt;
| 2012&lt;br /&gt;
| Everyone&lt;br /&gt;
|-&lt;br /&gt;
|  [[SVC|svcBackdoor (0x7B)]]&lt;br /&gt;
|  This backdoor allows executing SVC-mode code at the user-specified code-address. This is used by Process9, using this on the ARM11 (with NATIVE_FIRM) required patching the kernel .text or modifying SVC-access-control.&lt;br /&gt;
| See description&lt;br /&gt;
| [[11.0.0-33|11.0.0-X]] (deleted)&lt;br /&gt;
| &lt;br /&gt;
|&lt;br /&gt;
| Everyone&lt;br /&gt;
|-&lt;br /&gt;
| veryslowpidhax&lt;br /&gt;
| &#039;&#039;&#039;This is completely different from the kernelmode-code-execution vuln described in the below separate entry.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
When updating the kernel global PID counter under [[SVC|svcCreateProcess]] the kernel does not check for wraparound to 0x0(the PID for the very first process). This only matters because [[Services|SM-module]] allows processes with PID value less than &amp;lt;total ARM11 FIRM modules&amp;gt; to access &#039;&#039;all&#039;&#039; services, without checking exheader service-access-control; and because Kernel11 checks for the PID to be 1 (loader) to use the input mem-region value on ControlMemory. This alone does not affect access the [[SVC|SVCs]] access table at all.&lt;br /&gt;
&lt;br /&gt;
Inlined ldrex+strex code is used for updating the above counter. [[11.2.0-35|11.2.0-X]] had changes for similar code, but it was only for dedicated ldrex+strex functions(mainly for kernel objects) and hence this PID code was not affected.&lt;br /&gt;
&lt;br /&gt;
With launching+terminating a sysmodule repeatedly with this via ns:s, it would take weeks to finish(if not at least about a month?).&lt;br /&gt;
| Access to all [[Services_API|services]], ControlMemory on any given mem-region.&lt;br /&gt;
| None&lt;br /&gt;
| [[11.3.0-36|11.3.0-X]]&lt;br /&gt;
| 2012 maybe?&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
|  slowhax/waithax&lt;br /&gt;
|  svcWaitSynchronizationN does not decrement the references to valid handles in an array before returning an error when it encounters an invalid handle. This allows one to (slowly) overflow the reference count for a handle object to zero.&lt;br /&gt;
| ARM11 kernel-mode code execution&lt;br /&gt;
| [[11.2.0-35|11.2.0-X]]&lt;br /&gt;
| [[11.2.0-35|11.2.0-X]]&lt;br /&gt;
| 2016&lt;br /&gt;
| nedwill, [[User:Derrek|derrek]]&lt;br /&gt;
|-&lt;br /&gt;
| [[Memory_layout#ARM11_Detailed_virtual_memory_map|0xEFF00000]] / 0xDFF00000 ARM11 kernel virtual-memory&lt;br /&gt;
| The ARM11 kernel-mode 0xEFF00000/0xDFF00000 virtual-memory(size 0x100000) is mapped to phys-mem 0x1FF00000(entire DSP-mem + entire AXIWRAM), with permissions RW-. This is used during ARM11 kernel startup for loading the FIRM-modules from the FIRM section located in DSP-mem, this never seems to be used after that, however. This is never unmapped either.&lt;br /&gt;
| &lt;br /&gt;
| None&lt;br /&gt;
| [[11.3.0-36|11.3.0-X]]&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| memchunkhax2.1&lt;br /&gt;
| Nintendo&#039;s fix for memchunkhax2 in [[10.4.0-29|10.4.0-X]] did not fix the GPU case: one may cause the requisite ToCToU race using gspwn, bypassing the new validation.&lt;br /&gt;
derrek&#039;s original 32c3 presentation for memchunkhax2 commented that a GPU-based attack was possible, but would be difficult.  However, memchunkhax2.1 showed that it was possible to do fairly reliably.&lt;br /&gt;
| ARM11 kernel code execution&lt;br /&gt;
| [[11.0.0-33|11.0.0-X]], via the new [[Memory_Management#MemoryBlockHeader|memchunkhdr]] MAC which prevents modifying memchunkhdr data with DMA.&lt;br /&gt;
| [[11.0.0-33|11.0.0-X]]&lt;br /&gt;
|&lt;br /&gt;
| [[User:Derrek|derrek]], aliaspider&lt;br /&gt;
|-&lt;br /&gt;
| memchunkhax2&lt;br /&gt;
| When allocating a block of memory, the &amp;quot;next&amp;quot; pointer of the [[Memory_Management#MemoryBlockHeader|memchunkhdr]] is accessed without being checked after being mapped to userland.&lt;br /&gt;
This allows a race condition, where the process can change the next pointer just before it&#039;s accessed. By pointing the next pointer to a crafted memchunckhdr in the kernel SlabHeap, some of the SlabHeap is allocated to the calling process, allowing to change vtables of kernel objects. &lt;br /&gt;
| ARM11 kernel code execution&lt;br /&gt;
| [[10.4.0-29|10.4.0-X]] (partially, see memchunkhax2.1)&lt;br /&gt;
| [[10.4.0-29|10.4.0-X]]&lt;br /&gt;
|&lt;br /&gt;
| [[User:Derrek|derrek]]&lt;br /&gt;
|-&lt;br /&gt;
| heaphax&lt;br /&gt;
| Can change the size of free memchunk structures stored in FCRAM using DMA, which leads to the ability to allocate memory chunks over already-allocated memory. This can be used in the SYSTEM region to allocate RW memory over any part of the NS system module, which is enough to take it over.&lt;br /&gt;
| Code execution with access to all of NS&#039;s privileges. (including downgrading) Code execution within any applet.&lt;br /&gt;
| [[11.0.0-33|11.0.0-X]], via the new [[Memory_Management#MemoryBlockHeader|memchunkhdr]] MAC which prevents modifying memchunkhdr data with DMA.&lt;br /&gt;
| [[11.0.0-33|11.0.0-X]]&lt;br /&gt;
| April 2015 ?&lt;br /&gt;
| smea&lt;br /&gt;
|-&lt;br /&gt;
| snshax&lt;br /&gt;
| Can force creation of Safe NS process into gspwn-able memory, allowing for takeover.&lt;br /&gt;
| Code execution with access to all of NS&#039;s privileges. (including downgrading)&lt;br /&gt;
| [[10.1.0-27|10.1.0-X]]&lt;br /&gt;
| [[10.1.0-27|10.1.0-X]]&lt;br /&gt;
| April 2015 ?&lt;br /&gt;
| smea&lt;br /&gt;
|-&lt;br /&gt;
|  AffinityMask/processorid validation&lt;br /&gt;
|  With [[10.0.0-27|10.0.0-X]] the following functions were updated: svcGetThreadAffinityMask, svcGetProcessAffinityMask, svcSetProcessAffinityMask, and svcCreateThread. The code changes for all but svcCreateThread are identical.&lt;br /&gt;
The original code with the first 3 did the following: &lt;br /&gt;
* if(u32_processorcount &amp;gt; ~0x80000001)return 0xe0e01bfd;&lt;br /&gt;
* if(s32_processorcount &amp;gt; &amp;lt;total_cores&amp;gt;)return 0xd8e007fd;&lt;br /&gt;
The following code replaced the above:&lt;br /&gt;
* if(u32_processorcount &amp;gt;= &amp;lt;total_cores+1&amp;gt;)return 0xd8e007fd;&lt;br /&gt;
In theory the latter should catch everything that the former did, so it&#039;s unknown if this was really a security issue.&lt;br /&gt;
&lt;br /&gt;
The svcCreateThread changes with [[10.0.0-27|10.0.0-X]] definitely did fix a security issue.&lt;br /&gt;
* Original code: &amp;quot;if(s32_processorid &amp;gt; &amp;lt;total_cores&amp;gt;)return 0xd8e007fd;&amp;quot;&lt;br /&gt;
* New code: &amp;quot;if(s32_processorid &amp;gt;= &amp;lt;total_cores&amp;gt; || s32_processorid &amp;lt;= -4)return 0xd8e007fd;&amp;quot;&lt;br /&gt;
This fixed an off-by-one issue: if one would use processorid=total_cores, which isn&#039;t actually a valid value, svcCreateThread would accept that value on &amp;lt;[[10.0.0-27|10.0.0-X]]. This results in data being written out-of-bounds(baseaddr = arrayaddr + entrysize*processorid), which has the following result:&lt;br /&gt;
* Old3DS: Useless kernel-mode crash due to accessing unmapped memory.&lt;br /&gt;
* New3DS: uncontrolled data write into a kernel-mode L1 MMU-table. This isn&#039;t really useful: the data can&#039;t be controlled, and the data which gets overwritten is all-zero anyway(this isn&#039;t anywhere near MMU L1 entries for actually mapped memory).&lt;br /&gt;
The previous version also allowed large negative s32_processorid values(negative processorid values are special values not actual procids), but it appears using values like that won&#039;t actually do anything(meaning no crash) besides the thread not running / thread not running for a while(besides triggering a kernelpanic with certain s32_processorid value(s)).&lt;br /&gt;
| Nothing useful&lt;br /&gt;
|  [[10.0.0-27|10.0.0-X]]&lt;br /&gt;
| [[10.0.0-27|10.0.0-X]]&lt;br /&gt;
| svcCreateThread issue: May 31, 2015. The rest: September 8, 2015, via v9.6-&amp;gt;v10.0 ARM11-kernel code-diff.&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| memchunkhax&lt;br /&gt;
| The kernel originally did not validate the data stored in the FCRAM kernel heap [[Memchunkhdr|memchunk-headers]] for free-memory at all. Exploiting this requires raw R/W access to these memchunk-headers, like physical-memory access with gspwn.&lt;br /&gt;
&lt;br /&gt;
There are &#039;&#039;multiple&#039;&#039; ways to exploit this, but the end-result for most of these is the same: overwrite code in AXIWRAM via the 0xEFF00000/0xDFF00000 kernel virtual-memory mapping.&lt;br /&gt;
&lt;br /&gt;
This was fixed in [[9.3.0-21|9.3.0-X]] by checking that the memchunk(including size, next, and prev ptrs) is located within the currently used heap memory. The kernel may also check that the next/prev ptrs are valid compared to other memchunk-headers basically. When any of these checks fail, kernelpanic() is called.&lt;br /&gt;
| When combined with other flaws: ARM11-kernelmode code execution&lt;br /&gt;
| [[9.3.0-21|9.3.0-21]]&lt;br /&gt;
| &lt;br /&gt;
| February 2014&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| Multiple [[KLinkedListNode|KLinkedListNode]] SlabHeap use after free bugs&lt;br /&gt;
| The ARM11-kernel did access the &#039;key&#039; field of [[KLinkedListNode|KLinkedListNode]] objects, which are located on the SlabHeap, after freeing them. Thus, triggering an allocation of a new [[KLinkedListNode|KLinkedListNode]] object at the right time could result in a type-confusion. Pseudo-code:&lt;br /&gt;
SlabHeap_free(KLinkedListNode);&lt;br /&gt;
KObject *obj = KLinkedListNode-&amp;gt;key;  // the object there might have changed!&lt;br /&gt;
This bug appeared all over the place.&lt;br /&gt;
| ARM11-kernelmode code exec maybe&lt;br /&gt;
| [[8.0.0-18|8.0.0-18]]&lt;br /&gt;
| &lt;br /&gt;
| April 2015&lt;br /&gt;
| [[User:Derrek|derrek]]&lt;br /&gt;
|-&lt;br /&gt;
| PXI [[RPC_Command_Structure|Command]] input/output buffer permissions&lt;br /&gt;
| Originally the ARM11-kernel didn&#039;t check permissions for PXI input/output buffers for commands. Starting with [[6.0.0-11|6.0.0]] PXI input/output buffers must have RW permissions, otherwise kernelpanic is triggered.&lt;br /&gt;
| &lt;br /&gt;
| [[6.0.0-11|6.0.0-11]]&lt;br /&gt;
| &lt;br /&gt;
| 2012&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| [[SVC|svcStartInterProcessDma]]&lt;br /&gt;
| For svcStartInterProcessDma, the kernel code had the following flaws:&lt;br /&gt;
&lt;br /&gt;
* Originally the ARM11-kernel read the input DmaConfig structure directly in kernel-mode(ldr(b/h) instructions), without checking whether the DmaConfig address is readable under userland. This was fixed by copying that structure to the SVC-mode stack, using the ldrbt instruction.&lt;br /&gt;
&lt;br /&gt;
* Integer overflows for srcaddr+size and dstaddr+size are now checked(with [[6.0.0-11]]), which were not checked before.&lt;br /&gt;
&lt;br /&gt;
* The kernel now also checks whether the srcaddr/dstaddr (+size) is within userland memory (0x20000000), the kernel now (with [[6.0.0-11]]) returns an error when the address is beyond userland memory. Using an address &amp;gt;=0x20000000 would result in the kernel reading from the process L1 MMU table, beyond the memory allocated for that MMU table(for vaddr-&amp;gt;physaddr conversion). &lt;br /&gt;
| &lt;br /&gt;
| [[6.0.0-11]]&lt;br /&gt;
| &lt;br /&gt;
| DmaConfig issue: unknown. The rest: 2014&lt;br /&gt;
| [[User:Plutooo|plutoo]], [[User:Yellows8|Yellows8]] independently&lt;br /&gt;
|-&lt;br /&gt;
| [[SVC|svcControlMemory]] Parameter checks&lt;br /&gt;
| For svcControlMemory the parameter check had these two flaws:&lt;br /&gt;
&lt;br /&gt;
* The allowed range for addr0, addr1, size parameters depends on which MemoryOperation is being specified. The limitation for GSP heap was only checked if op=(u32)0x10003. By setting a random bit in op that has no meaning (like bit17?), op would instead be (u32)0x30003, and the range-check would be less strict and not accurate. However, the kernel doesn&#039;t actually use the input address for LINEAR memory-mapping at all besides the range-checks, so this isn&#039;t actually useful. This was fixed in the kernel by just checking for the LINEAR bit, instead of comparing the entire MemoryOperation value with 0x10003.&lt;br /&gt;
&lt;br /&gt;
* Integer overflows on (addr0+size) are now checked that previously weren&#039;t (this also applies to most other address checks elsewhere in the kernel).&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| [[5.0.0-11]]&lt;br /&gt;
| &lt;br /&gt;
|&lt;br /&gt;
| [[User:Plutooo|plutoo]]&lt;br /&gt;
|-&lt;br /&gt;
| [[RPC_Command_Structure|Command]] request/response buffer overflow&lt;br /&gt;
| Originally the kernel did not check the word-values from the command-header. Starting with [[5.0.0-11]], the kernel will trigger a kernelpanic() when the total word-size of the entire command(including the cmd-header) is larger than 0x40-words (0x100-bytes). This allows overwriting threadlocalstorage+0x180 in the destination thread. However, since the data written there would be translate parameters (such as header-words + buffer addresses), exploiting this would likely be very difficult, if possible at all.&lt;br /&gt;
&lt;br /&gt;
If the two words at threadlocalstorage+0x180 could be overwritten with controlled data this way, one could then use a command with a buffer-header of &amp;lt;nowiki&amp;gt;((size&amp;lt;&amp;lt;14) | 2)&amp;lt;/nowiki&amp;gt; to write arbitrary memory to any RW userland memory in the destination process.&lt;br /&gt;
| &lt;br /&gt;
| [[5.0.0-11]]&lt;br /&gt;
| &lt;br /&gt;
| v4.1 FIRM -&amp;gt; v5.0 code diff&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| [[SVC|SVC stack allocation overflows]]&lt;br /&gt;
| &lt;br /&gt;
* Syscalls that allocate a variable-length array on stack, only checked bit31 before multiplying by 4/16 (when calculating how much memory to allocate). If a large integer was passed as input to one of these syscalls, an integer overflow would occur, and too little memory would have been allocated on stack resulting in a buffer overrun. &lt;br /&gt;
* The alignment (size+7)&amp;amp;~7 calculation before allocation was not checked for integer overflow.&lt;br /&gt;
&lt;br /&gt;
This might allow for ARM11 kernel code-execution.&lt;br /&gt;
&lt;br /&gt;
(Applies to svcSetResourceLimitValues, svcGetThreadList, svcGetProcessList, svcReplyAndReceive, svcWaitSynchronizationN.)&lt;br /&gt;
| &lt;br /&gt;
| [[5.0.0-11]]&lt;br /&gt;
| &lt;br /&gt;
| v4.1 FIRM -&amp;gt; v5.0 code diff&lt;br /&gt;
| [[User:Plutooo|plutoo]], [[User:Yellows8|Yellows8]] complementary&lt;br /&gt;
|-&lt;br /&gt;
| [[SVC|svcControlMemory]] MemoryOperation MAP memory-permissions&lt;br /&gt;
| svcControlMemory with MemoryOperation=MAP allows mapping the already-mapped process virtual-mem at addr1, to addr0. The lowest address permitted for addr1 is 0x00100000. Originally the ARM11 kernel didn&#039;t check memory permissions for addr1. Therefore .text as addr1 could be mapped elsewhere as RW- memory, which allowed ARM11 userland code-execution.&lt;br /&gt;
| &lt;br /&gt;
| [[4.1.0-8]]&lt;br /&gt;
| &lt;br /&gt;
| 2012&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| [[RPC_Command_Structure|Command]] input/output buffer permissions&lt;br /&gt;
| Originally the ARM11 kernel didn&#039;t check memory permissions for the input/output buffers for commands. Starting with [[4.0.0-7]] the ARM11 kernel will trigger a kernelpanic() if the input/output buffers don&#039;t have the required memory permissions. For example, this allowed a FSUSER file-read to .text, which therefore allowed ARM11-userland code execution.&lt;br /&gt;
| &lt;br /&gt;
| [[4.0.0-7]]&lt;br /&gt;
| &lt;br /&gt;
| 2012&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| [[SVC|svcReadProcessMemory/svcWriteProcessMemory memory]] permissions&lt;br /&gt;
| Originally the kernel only checked the first page(0x1000-bytes) of the src/dst buffers, for svcReadProcessMemory and svcWriteProcessMemory. There is no known retail processes which have access to these SVCs.&lt;br /&gt;
| &lt;br /&gt;
| [[4.0.0-7]]&lt;br /&gt;
| &lt;br /&gt;
| 2012?&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== [[FIRM]] Sysmodules ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Summary&lt;br /&gt;
!  Description&lt;br /&gt;
!  Successful exploitation result&lt;br /&gt;
!  Fixed in [[FIRM]] system version&lt;br /&gt;
!  Last [[FIRM]] system version this flaw was checked for&lt;br /&gt;
!  Timeframe this was discovered&lt;br /&gt;
!  Discovered by&lt;br /&gt;
|-&lt;br /&gt;
| [[Services|&amp;quot;srv:pm&amp;quot;]] process registration&lt;br /&gt;
| Originally any process had access to the port &amp;quot;srv:pm&amp;quot;. The PID&#039;s used for the (un)registration commands are not checked either. This allowed any process to re-register itself with &amp;quot;srv:pm&amp;quot;, and therefore allowed the process to give itself access to any service, bypassing the exheader service-access-control list.&lt;br /&gt;
&lt;br /&gt;
This was fixed in [[7.0.0-13]]: starting with [[7.0.0-13]] &amp;quot;srv:pm&amp;quot; is now a service instead of a globally accessible port. Only processes with PID&#039;s less than 6 (in other words: fs, ldr, sm, pm, pxi modules) have access to it. With [[7.0.0-13]] there can only be one session for &amp;quot;srv:pm&amp;quot; open at a time(this is used by pm module), svcBreak will be executed if more sessions are opened by the processes which can access this.&lt;br /&gt;
&lt;br /&gt;
This flaw was needed for exploiting the &amp;lt;=v4.x Process9 PXI vulnerabilities from ARM11 userland ROP, since most applications don&#039;t have access to those service(s).&lt;br /&gt;
| Access to arbitrary services&lt;br /&gt;
| [[7.0.0-13]]&lt;br /&gt;
| &lt;br /&gt;
| 2012&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| FSDIR null-deref&lt;br /&gt;
| [[Filesystem_services|FS]]-module may crash in some cases when handling directory reading. The trigger seems to be due to using [[FSDir:Close]] without closing the dir-handle afterwards?(Perhaps this is caused by out-of-memory?) This seems to be useless since it&#039;s just a null-deref.&lt;br /&gt;
| &lt;br /&gt;
| None&lt;br /&gt;
| [[9.6.0-24|9.6.0-X]]&lt;br /&gt;
| May 19(?)-20, 2015&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Standalone Sysmodules ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Summary&lt;br /&gt;
!  Description&lt;br /&gt;
!  Successful exploitation result&lt;br /&gt;
!  Fixed in system-module system-version&lt;br /&gt;
!  Last system-module system-version this flaw was checked for&lt;br /&gt;
!  Timeframe this was discovered&lt;br /&gt;
!  Timeframe this was added to wiki&lt;br /&gt;
!  Discovered by&lt;br /&gt;
|-&lt;br /&gt;
| [[MP:SendDataFrame]] missing input array index validation&lt;br /&gt;
| [[MP:SendDataFrame]] doesn&#039;t validate the input index at cmdreq[1], unless the function for flag=non-zero is executed. This is used to calculate the following, without validating the index at all: someptr = stateptr + (index*0x924) + somestateoffset.&lt;br /&gt;
&lt;br /&gt;
After validating some flags from someptr, when input_flag=0 the input buffer data is copied to someptr+someotheroffset+0x14 with the u16 size loaded from someptr+someotheroffset.&lt;br /&gt;
&lt;br /&gt;
With a large input index someptr could be setup to be at a &amp;lt;target address&amp;gt;, for overwriting memory.&lt;br /&gt;
&lt;br /&gt;
This is probably difficult to exploit.&lt;br /&gt;
| &lt;br /&gt;
| None&lt;br /&gt;
| [[8.0.0-18]](MP-sysmodule v2048)&lt;br /&gt;
| January 22, 2017&lt;br /&gt;
| January 22, 2017&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| [[MP_Services|MP]] cmd1 out-of-bounds handle read&lt;br /&gt;
| MP-sysmodule handles the input parameter for cmd1 as a s32. It checks for &amp;gt;=16, but not &amp;lt;0. With &amp;lt;16 it basically does the following(array of entries 4-bytes each): *outhandle = ((Handle*)(stateptr+offsetinstate))[inputindex].&lt;br /&gt;
&lt;br /&gt;
Hence, this can be used to load any handle in MP-sysmodule memory. MP doesn&#039;t really have any service handles of interest however(can be obtained from elsewhere too).&lt;br /&gt;
| Reading any handle in MP-sysmodule memory.&lt;br /&gt;
| None&lt;br /&gt;
| [[8.0.0-18]](MP-sysmodule v2048)&lt;br /&gt;
| January 21, 2017&lt;br /&gt;
| January 22, 2017&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| AM stack/.bss infoleak via [[AM:ReadTwlBackupInfo]]([[AM:ReadTwlBackupInfoEx|Ex]])&lt;br /&gt;
| After writing the output-info structure to stack, it then copies that structure to the output buffer ptr using the size from the command. The size is not checked. This could be used to read data from the AM-service-thread stack handling the command + .bss.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;This was not tested on hardware.&#039;&#039;&#039;&lt;br /&gt;
| Stack/.bss reading&lt;br /&gt;
| None&lt;br /&gt;
| [[10.0.0-27]](AM v9217)&lt;br /&gt;
| Roughly October 17, 2016&lt;br /&gt;
| October 25, 2016&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| [[MVD_Services|MVD]]: Stack buffer overflow with [[MVDSTD:SetupOutputBuffers]].&lt;br /&gt;
| The input total_entries is not validated when initially processing the input entry-list. This fixed-size input entry-list is copied to stack from the command request. The loop for processing this initializes a global table, the converted linearmem-&amp;gt;physaddrs used there are also copied to stack(0x8-bytes of physaddrs per entry).&lt;br /&gt;
&lt;br /&gt;
If total_entries is too large, MVD-sysmodule will crash due to reading unmapped memory following the stack(0x10000000). Afterwards if the out-of-bounds total_entries is smaller than that, it will crash due accessing address 0x0, hence this useless.&lt;br /&gt;
| MVD-sysmodule crash.&lt;br /&gt;
| None&lt;br /&gt;
| [[9.0.0-20]]&lt;br /&gt;
| April 22, 2016 (Tested on the 25th)&lt;br /&gt;
| April 25, 2016&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| [[NWM_Services|NWM]]: Using CTRSDK heap with UDS sharedmem from the user-process.&lt;br /&gt;
| See the HTTP-sysmodule section below.&lt;br /&gt;
&lt;br /&gt;
CTRSDK heap is used with the sharedmem from [[NWMUDS:InitializeWithVersion]]. Buffers are allocated/freed under this heap using [[NWMUDS:Bind]] and [[NWMUDS:Unbind]].&lt;br /&gt;
&lt;br /&gt;
Hence, overwriting sharedmem with gspwn then using [[NWMUDS:Unbind]] results in the usual controlled CTRSDK memchunk-header write, similar to HTTP-sysmodule.&lt;br /&gt;
&lt;br /&gt;
This could be done by creating an UDS network, without any other nodes on the network.&lt;br /&gt;
&lt;br /&gt;
Besides CTRSDK memchunk-headers, there are no addresses stored under this sharedmem.&lt;br /&gt;
| ROP under NWM-module.&lt;br /&gt;
| [[11.4.0-37|11.4.0-X]]&lt;br /&gt;
| [[9.0.0-20|9.0.0-X]]&lt;br /&gt;
| April 10, 2016&lt;br /&gt;
| April 16, 2016&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| [[DLP_Services|DLP]]: Out-of-bounds memory access during spectator [[Download_Play|data-frame]] checksum calculation&lt;br /&gt;
| DLP doesn&#039;t validate the frame_size when receiving spectator data-frames at all, unlike non-spectator data-frames. The actual spectator data-frame parsing code doesn&#039;t use that field either. However, the data-frame checksum calculation code called during checksum verification does use the frame_size for loading the size of the framebuf.&lt;br /&gt;
&lt;br /&gt;
Hence, using a large frame_size like 0xFFFF will result in the checksum calculation code reading data out-of-bounds. This isn&#039;t really useful, you could trigger a remote local-WLAN DLP-sysmodule crash while a 3DS system is scanning for DLP networks(due to accessing unmapped memory), but that&#039;s about all(trying to infoleak with this likely isn&#039;t useful either).&lt;br /&gt;
| DLP-sysmodule crash, handled by dlplay system-application by a &amp;quot;connection interrupted&amp;quot; error eventually then a fatal-error via ErrDisp.&lt;br /&gt;
| None&lt;br /&gt;
| [[10.0.0-27|10.0.0-X]]&lt;br /&gt;
| April 8, 2016 (Tested on the 10th)&lt;br /&gt;
| April 10, 2016&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| [[DLP_Services|DLP]]: Out-of-bounds output data writing during spectator sysupdate titlelist [[Download_Play|data-frame]] handling&lt;br /&gt;
| The total_entries and out_entryindex fields for the titlelist DLP spectator data-frames are not validated. This is parsed during DLP network scanning. Hence, the specified titlelist data can be written out-of-bounds using the specified out_entryindex and total_entries. A crash will occur while reading the input data-frame titlelist if total_entries is larger than 0x27A, due to accessing unmapped memory.&lt;br /&gt;
&lt;br /&gt;
There&#039;s not much non-zero data to overwrite following the output buffer(located in sharedmem), any ptrs are located in sharedmem. Overwriting certain ptr(s) are only known to cause a crash when attempting to use the DLP-client shutdown service-command.&lt;br /&gt;
&lt;br /&gt;
There&#039;s no known way to exploit the above crash, since the linked-list code involves writes zeros(with a controlled start ptr).&lt;br /&gt;
| &lt;br /&gt;
| None&lt;br /&gt;
| [[10.0.0-27|10.0.0-X]]&lt;br /&gt;
| April 8-9, 2016&lt;br /&gt;
| April 10, 2016&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| [[IR_Services|IR]]: Stack buffer overflow with custom hardware&lt;br /&gt;
| Originally IR sysmodule used the read value from the I2C-IR registers TXLVL and RXLVL without validating them at all. See [[10.6.0-31|here]] for the fix. This is the size used for reading the data-recv FIFO, etc. The output buffer for reading is located on the stack.&lt;br /&gt;
&lt;br /&gt;
This should be exploitable if one could successfully setup the custom hardware for this and if the entire intended sizes actually get read from I2C.&lt;br /&gt;
| ROP under IR sysmodule.&lt;br /&gt;
| [[10.6.0-31|10.6.0-31]]&lt;br /&gt;
| &lt;br /&gt;
| February 23, 2016 (Unknown if it was noticed before then)&lt;br /&gt;
| February 23, 2016&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| [[HTTP_Services|HTTP]]: Using CTRSDK heap with sharedmem from the user-process.&lt;br /&gt;
| The data from httpcAddPostDataAscii and other commands is stored under a CTRSDK heap. That heap is the sharedmem specified by the user-process via the HTTPC Initialize command.&lt;br /&gt;
Normally this sharedmem isn&#039;t accessible to the user-process once the sysmodule maps it, hence using it is supposed to be &amp;quot;safe&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
This isn&#039;t the case due to gspwn however. Since CTRSDK heap code is so insecure in general, one can use gspwn to locate the HTTPC sharedmem + read/write it, then trigger a mem-write under the sysmodule. This can then be used to get ROP going under HTTP-sysmodule.&lt;br /&gt;
&lt;br /&gt;
This is exploited by [https://github.com/yellows8/ctr-httpwn/ctr-httpwn ctr-httpwn].&lt;br /&gt;
| ROP under HTTP sysmdule.&lt;br /&gt;
| [[11.4.0-37|11.4.0-X]]&lt;br /&gt;
| [[9.6.0-24|9.6.0-X]] (Latest sysmodule version as of [[10.7.0-32|10.7.0-32]])&lt;br /&gt;
| Late 2015&lt;br /&gt;
| March 22, 2016&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| [[NIM_Services|NIM]]: Downloading old title-versions from eShop&lt;br /&gt;
| Multiple NIM service commands(such as [[NIMS:StartDownload]]) use a title-version value specified by the user-process, NIM does not validate that this input version matches the latest version available via SOAP. Therefore, when combined with AM(PXI) [[#Process9|title-downgrading]] via deleting the target eShop title with System Settings Data Management(if the title was already installed), this allows downloading+installing any title-version from eShop &#039;&#039;if&#039;&#039; it&#039;s still available from CDN.&lt;br /&gt;
The easiest way to exploit this is to just patch the eShop system-application code using these NIM commands(ideally the code which loads the title-version).&lt;br /&gt;
&lt;br /&gt;
Originally this was tested with a debugging-system via modded-FIRM, eventually smea implemented it in HANS for the 32c3 release.&lt;br /&gt;
| Downloading old title-versions from eShop&lt;br /&gt;
| None&lt;br /&gt;
| [[10.0.0-27|10.0.0-X]]&lt;br /&gt;
| October 24, 2015 (Unknown when exactly the first eShop title downgrade was actually tested, maybe November)&lt;br /&gt;
| January 7, 2016 (Same day Ironfall v1.0 was removed from CDN via the main-CXI files)&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| [[SPI_Services|SPI]] service out-of-bounds write&lt;br /&gt;
| cmd1 has out-of-bounds write allowing overwrite of some static variables in .data.&lt;br /&gt;
| &lt;br /&gt;
| None&lt;br /&gt;
| [[9.5.0-22]]&lt;br /&gt;
| March 2015&lt;br /&gt;
| &lt;br /&gt;
| [[User:Plutooo|plutoo]]&lt;br /&gt;
|-&lt;br /&gt;
| [[NFC_Services|NFC]] module service command buf-overflows&lt;br /&gt;
| NFC module copies data with certain commands, from command input buffers to stack without checking the size. These commands include the following, it&#039;s unknown if there&#039;s more commands with similar issues: &amp;quot;nfc:dev&amp;quot; &amp;lt;0x000C....&amp;gt; and &amp;quot;nfc:s&amp;quot; &amp;lt;0x0037....&amp;gt;.&lt;br /&gt;
Since both of these commands are stubbed in the Old3DS NFC module from the very first version(those just return an error), these issues only affect the New3DS NFC module.&lt;br /&gt;
&lt;br /&gt;
There&#039;s no known retail titles which have access to either of these services.&lt;br /&gt;
| ROP under NFC module.&lt;br /&gt;
| New3DS: None&lt;br /&gt;
| New3DS: [[9.5.0-22]]&lt;br /&gt;
| December 2014?&lt;br /&gt;
| &lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| [[News_Services|NEWSS]] service command notificationID validation failure&lt;br /&gt;
| This module does not validate the input notificationID for &amp;lt;nowiki&amp;gt;&amp;quot;news:s&amp;quot;&amp;lt;/nowiki&amp;gt; service commands. This is an out-of-bounds array index bug. For example, [[NEWSS:SetNotificationHeader]] could be used to exploit news module: this copies the input data(size is properly checked) to: out = newsdb_savedata+0x10 + (someu32array[notificationID]*0x70).&lt;br /&gt;
| ROP under news module.&lt;br /&gt;
| None&lt;br /&gt;
| [[9.7.0-25|9.7.0-X]]&lt;br /&gt;
| December 2014&lt;br /&gt;
| &lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| [[NWMUDS:DecryptBeaconData]] heap buffer overflow&lt;br /&gt;
| input_size = 0x1E * &amp;lt;value the u8 from input_[[NWM_Services|networkstruct]]+0x1D&amp;gt;. Then input_tag0 is copied to a heap buffer. When input_size is larger than 0xFA-bytes, it will then copy input_tag1 to &amp;lt;end_address_of_previous_outbuf&amp;gt;, with size=input_size-0xFA.&lt;br /&gt;
&lt;br /&gt;
This can be triggered by either using this command directly, or by boadcasting a wifi beacon which triggers it while a 3DS system running the target process is in range, when the process is scanning for hosts to connect to. Processes will only pass tag data to this command when the wlancommID and other thing(s) match the values for the process.&lt;br /&gt;
&lt;br /&gt;
There&#039;s no known way to actually exploit this for getting ROP under NWM-module, at the time of originally adding this to the wiki. This is because the data which gets copied out-of-bounds *and* actually causes crash(es), can&#039;t be controlled it seems(with just broadcasting a beacon at least). It&#039;s unknown whether this could be exploited from just using NWMUDS service-cmd(s) directly.&lt;br /&gt;
| Without any actual way to exploit this: NWM-module DoS, resulting in process termination(process crash). This breaks *everything* involving wifi comms, a reboot is required to recover from this.&lt;br /&gt;
| None&lt;br /&gt;
| [[9.0.0-20]]&lt;br /&gt;
| ~September 23, 2014(see the [[NWMUDS:DecryptBeaconData]] page history)&lt;br /&gt;
| August 3, 2015&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| [[HID_Services|HID]] module shared-mem&lt;br /&gt;
| HID module does not validate the index values in [[HID_Shared_Memory|sharedmem]](just changes index to 0 when index == maxval when updating), therefore large values will result in HID module writing HID data to arbitrary addresses.&lt;br /&gt;
| ROP under HID module, but this is *very* unlikely to be exploitable since the data written is HID data.&lt;br /&gt;
| None&lt;br /&gt;
| [[9.3.0-21]]&lt;br /&gt;
| 2014?&lt;br /&gt;
| &lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| gspwn&lt;br /&gt;
| GSP module does not validate addresses given to the GPU. This allows a user-mode application/applet to read/write to a large part of physical FCRAM using GPU DMA. From this, you can overwrite the .text segment of the application you&#039;re running under, and gain real code-execution from a ROP-chain. Normally applets&#039; .text([[Home Menu]], [[Internet Browser]], etc) is located beyond the area accessible by the GPU, except for [[RO_Services|CROs]] used by applets([[Internet Browser]] for example).&lt;br /&gt;
&lt;br /&gt;
FCRAM is gpu-accessible up to physaddr 0x26800000 on Old3DS, and 0x2D800000 on New3DS. This is BASE_memregion_start(aka SYSTEM_memregion_end)-0x400000 (0x800000 with New3DS) with the default memory-layout on Old3DS/New3DS. With [[11.3.0-36|11.3.0-X]] the cutoff now varies due to the new [[SVC]] 0x59. The New3DS &amp;quot;normal&amp;quot;(non-APPLICATION) cutoff was changed to 0x2D000000 due to the new [[SVC]] 0x59.&lt;br /&gt;
| User-mode code execution.&lt;br /&gt;
| None&lt;br /&gt;
| [[9.6.0-24|9.6.0-X]]&lt;br /&gt;
| Early 2014&lt;br /&gt;
| &lt;br /&gt;
| smea, [[User:Yellows8|Yellows8]]/others before then&lt;br /&gt;
|-&lt;br /&gt;
| rohax&lt;br /&gt;
| Using gspwn, it is possible to overwrite a loaded [[CRO0]]/[[CRR0]] after its RSA-signature has been validated. Badly validated [[CRO0]] header leads to arbitrary read/write of memory in the ro-process. This gives code-execution in the ro module, who has access to [[SVC|syscalls]] 0x70-0x72, 0x7D.&lt;br /&gt;
&lt;br /&gt;
This was fixed after [[ninjhax]] release by adding checks on [[CRO0]]-based pointers before writing to them.&lt;br /&gt;
| Memory-mapping syscalls.&lt;br /&gt;
| [[9.3.0-21]]&lt;br /&gt;
| [[9.4.0-21]]&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| smea, [[User:Plutooo|plutoo]] joint effort&lt;br /&gt;
|-&lt;br /&gt;
| Region free&lt;br /&gt;
| Only [[Home Menu]] itself checks gamecards&#039; region when launching them. Therefore, any application launch that is done directly with [[NS]] without signaling Home Menu to launch the app, will result in region checks being bypassed.&lt;br /&gt;
This essentially means launching the gamecard with the [[NS_and_APT_Services|&amp;quot;ns:s&amp;quot;]] service. The main way to exploit this is to trigger a FIRM launch with an application specified, either with a normal FIRM launch or a hardware [[NSS:RebootSystem|reboot]].&lt;br /&gt;
| Launching gamecards from any region + bypassing Home Menu gamecard-sysupdate installation&lt;br /&gt;
| None&lt;br /&gt;
| Last tested with [[10.1.0-27|10.1.0-X]].&lt;br /&gt;
| June(?) 2014&lt;br /&gt;
| &lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| [[NWM_Services|NWM]] service-cmd state null-ptr deref&lt;br /&gt;
| The NWMUDS service command code loads a ptr from .data, adds an offset to that, then passes that as the state address for the actual command-handler function. The value of the ptr loaded from .data is not checked, therefore this will cause crashes due to that being 0x0 when NWMUDS was not properly initialized.&lt;br /&gt;
It&#039;s unknown whether any NWM services besides NWMUDS have this issue.&lt;br /&gt;
| This is rather useless since it&#039;s only a crash caused by a state ptr based at 0x0.&lt;br /&gt;
| None&lt;br /&gt;
| [[9.0.0-20]]&lt;br /&gt;
| 2013?&lt;br /&gt;
| &lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== General/CTRSDK ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Summary&lt;br /&gt;
!  Description&lt;br /&gt;
!  Successful exploitation result&lt;br /&gt;
!  Fixed in version&lt;br /&gt;
!  Last version this flaw was checked for&lt;br /&gt;
!  Timeframe this was discovered&lt;br /&gt;
!  Discovered by&lt;br /&gt;
|-&lt;br /&gt;
| [[NWM_Services|UDS]] beacon additional-data buffer overflow&lt;br /&gt;
| Originally CTRSDK did not validate the UDS additional-data size before using that size to copy the additional-data to a [[NWM_Services|networkstruct]]. This was eventually fixed.&lt;br /&gt;
This was discovered while doing code RE with an old dlp-module version. It&#039;s unknown in what specific CTRSDK version this was fixed, or even what system-version updated titles with a fixed version.&lt;br /&gt;
&lt;br /&gt;
It&#039;s unknown if there&#039;s any titles using a vulnerable CTRSDK version which are also exploitable with this(dlp module can&#039;t be exploited with this).&lt;br /&gt;
&lt;br /&gt;
The maximum number of bytes that can be written beyond the end of the outbuf is 0x37-bytes, with additionaldata_size=0xFF.&lt;br /&gt;
| Perhaps ROP, very difficult if possible with anything at all&lt;br /&gt;
| ?&lt;br /&gt;
| &lt;br /&gt;
| September(?) 2014&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| CTPK buffer overflow&lt;br /&gt;
| At offset 0x20 in CTPK is an array for each texture, each entry is 0x20-bytes. This contains a wordindex(entry+0x18) for some srcdata relative to CTPK+0, and an u8 wordsize(entry+0x14) for this data. The CTRSDK function handling this doesn&#039;t validate the size, when copying srcdata using this size to the output buffer. Applications usually have the output buffer on the stack, hence stack buffer overflow.&lt;br /&gt;
&lt;br /&gt;
While CTPK(*.ctpk) are normally only loaded from RomFS, some application(s) load from elsewhere too.&lt;br /&gt;
| ROP under the target application.&lt;br /&gt;
| None?&lt;br /&gt;
| &amp;quot;[SDK+NINTENDO:CTR_SDK-11_4_0_200_none]&amp;quot;&lt;br /&gt;
| November 14, 2016&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Yellows8</name></author>
	</entry>
	<entry>
		<id>https://www.3dbrew.org/w/index.php?title=11.4.0-37&amp;diff=19859</id>
		<title>11.4.0-37</title>
		<link rel="alternate" type="text/html" href="https://www.3dbrew.org/w/index.php?title=11.4.0-37&amp;diff=19859"/>
		<updated>2017-04-12T04:07:28Z</updated>

		<summary type="html">&lt;p&gt;Yellows8: /* System Titles */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The Old3DS+New3DS 11.4.0-37 system update was released on April 10, 2017. This Old3DS update was released for the following regions: USA, EUR, JPN, CHN, KOR, and TWN. This New3DS update was released for the following regions: USA, EUR, JPN, CHN, KOR, and TWN.&lt;br /&gt;
&lt;br /&gt;
Security flaws fixed: yes.&lt;br /&gt;
&lt;br /&gt;
==Change-log==&lt;br /&gt;
[http://en-americas-support.nintendo.com/app/answers/detail/a_id/667/p/430/c/267 Official] USA change-log:&lt;br /&gt;
* Further improvements to overall system stability and other minor adjustments have been made to enhance the user experience&lt;br /&gt;
&lt;br /&gt;
==System Titles==&lt;br /&gt;
===NATIVE_FIRM===&lt;br /&gt;
====Process9====&lt;br /&gt;
The global boolean preventing [[FIRM|SAFE_FIRM]] from being launched is now set in Process9&#039;s crt0 if [[CONFIG9_Registers#CFG9_BOOTENV|CFG9_BOOTENV]] has bit0 set, that is to say, if it has been launched from a firmlaunch (this register is set to 1 just before a firmlaunch). The following code has also been added in the firmlaunch function itself: &amp;lt;code&amp;gt;if(!(CFG9_BOOTENV &amp;amp; 1) /* not a firmlaunch */ || (CFG9_BOOTENV &amp;amp; 6) /* firmlaunched from LGY_FIRM (if even possible at all) */) goto panic&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
This is to fix [[3DS_System_Flaws#Process9|safehax]].&lt;br /&gt;
&lt;br /&gt;
====New3DS kernel9loader====&lt;br /&gt;
New3DS kernel9loader wasn&#039;t updated.&lt;br /&gt;
&lt;br /&gt;
====ARM11 kernel====&lt;br /&gt;
There are at least, and likely, three changes:&lt;br /&gt;
&lt;br /&gt;
* [[CONFIG11_Registers#CFG11_WIFIUNK|CFG11_WIFIUNK]] is now set to 0x10 in Kernel11&#039;s crt0&lt;br /&gt;
* A new SVC, [[SVC|svc 0x5A]] has been introduced, to enable or disable wifi&lt;br /&gt;
* The code handling [[SVC|svcArbitrateAddress]] with type = SIGNAL, has been changed. It now counts the actual number of threads arbitrating on that address, and if it is non-zero, it executes the following hack: &amp;lt;code&amp;gt;if(coreId == 0 &amp;amp;&amp;amp; currentThread-&amp;gt;dynamicPriority &amp;gt;= 50) waitCycles(0x64E)&amp;lt;/code&amp;gt;. This supposedly works around the lag issue in some games, which has been introduced on [[11.3.0-36]]&lt;br /&gt;
&lt;br /&gt;
===Modules===&lt;br /&gt;
No FIRM ARM11 sysmodule was changed.&lt;br /&gt;
&lt;br /&gt;
===[[NWM_Services|NWM-sysmodule]]===&lt;br /&gt;
The [[CONFIG11_Registers]] are no longer directly mapped under userland for NWM-sysmodule.&lt;br /&gt;
This prevents anything under NWM-module from modifying the GPUPROT register. This was used by both *hax payload(prior to v11.4 release) and [https://github.com/smealum/udsploit udsploit].&lt;br /&gt;
&lt;br /&gt;
The codebin was updated.&lt;br /&gt;
&lt;br /&gt;
The crt0-poke in PDN that NWM previously did:&lt;br /&gt;
  0x1EC4010C |= 0x10&lt;br /&gt;
&lt;br /&gt;
.. has been removed from NWM. This one has been moved into kernel bootup.&lt;br /&gt;
&lt;br /&gt;
All accesses to 0x1EC40180 have been replaced by a new syscall, [[SVC|0x5A]].&lt;br /&gt;
&lt;br /&gt;
This now includes code from old CTRSDK update(s). A new func was added for calling a func, previously that func was directly called via vtable funcptr. The only other changes was new heap code(and the code for using it basically), for fixing the NWMUDS sharedmem [[3DS_System_Flaws|vuln]]. This includes code which actually validates heap memchunkhdrs, with svcBreak being executed on failure.&lt;br /&gt;
&lt;br /&gt;
A new string was added at 0x13E200: &amp;quot;used&amp;quot;(with 3 0xFF bytes afterwards), this is used by the new heap code. The wifi-fw was moved from .data to .rodata.&lt;br /&gt;
&lt;br /&gt;
===[[HTTP_Services|HTTP-sysmodule]]===&lt;br /&gt;
There were exactly 3 changes in the HTTP-sysmodule codebin.&lt;br /&gt;
&lt;br /&gt;
Two functions, the memalloc and memfree functions used with HTTP sharedmem, were updated to use the new function. The new function is for heap memchunkhdr validation. This additional code is the same new heap code as NWM-sysmodule. This fixed the vuln used by ctr-httpwn at the time of sysupdate release.&lt;br /&gt;
&lt;br /&gt;
===[[Friend_Services|Friends-sysmodule]]===&lt;br /&gt;
Like past updates the only change in this codebin was the fpdver(0x9-&amp;gt;0xA).&lt;br /&gt;
&lt;br /&gt;
===[[NS_and_APT_Services|NS-sysmodule]]===&lt;br /&gt;
The only changes for NS was version values in the codebin, nothing else.&lt;br /&gt;
&lt;br /&gt;
===[[Internet Browser]]===&lt;br /&gt;
The web-browser was updated, only for New3DS. See [[Internet Browser|here]] for details.&lt;br /&gt;
&lt;br /&gt;
===[[Nintendo_3DS_Sound]]===&lt;br /&gt;
soundhax was fixed, it appears other vulns were fixed too.&lt;br /&gt;
&lt;br /&gt;
Exactly 8 functions were changed in the codebin.&lt;br /&gt;
&lt;br /&gt;
  L_1d3ba8&lt;br /&gt;
  updated, prev ver @ L_1d3ba8.&lt;br /&gt;
  Added only the following code:&lt;br /&gt;
  if(len&amp;lt;2)return;&lt;br /&gt;
  if(len&amp;gt;=0xfe)len=0xfe;&lt;br /&gt;
  *lenstorage = len;&lt;br /&gt;
  &lt;br /&gt;
  L_1d3d10&lt;br /&gt;
  updated, prev ver @ L_1d3cfc.&lt;br /&gt;
  When L_1ea0b8 returns non-zero, this now clears the 4-bytes at inr1.&lt;br /&gt;
  &lt;br /&gt;
  L_1f32c4&lt;br /&gt;
  updated, prev ver @ L_1f329c.&lt;br /&gt;
  This now writes u32 val0 to inr0+0x34 immediately after the nop instruction.&lt;br /&gt;
  &lt;br /&gt;
  L_275754&lt;br /&gt;
  updated, prev ver @ L_27572c.&lt;br /&gt;
  This now executes the following each time L_1ea0b8 returns non-zero: sp20 = 0;&lt;br /&gt;
  &lt;br /&gt;
  L_275ed4&lt;br /&gt;
  updated, prev ver @ L_275e94.&lt;br /&gt;
  Added the following code after the branch for &amp;quot;if(*(inr1+8)==0)&amp;quot;:&lt;br /&gt;
  if(len&amp;gt;0xfe){len=0xfe;&amp;lt;jump over the code which checks len0&amp;gt;}&lt;br /&gt;
  Identical changes were added at 0x276054, except with len val 0x82.&lt;br /&gt;
  Likewise at 0x276138 except with len val 0x76.&lt;br /&gt;
  &lt;br /&gt;
  L_280000&lt;br /&gt;
  updated, prev ver @ L_27ff90.&lt;br /&gt;
  This was added at 0x280444: if(len&amp;gt;0xfe)len=0xfe;&lt;br /&gt;
  Minor(?) other changes.&lt;br /&gt;
  &lt;br /&gt;
  L_280c74&lt;br /&gt;
  updated, prev ver @ L_280b60.&lt;br /&gt;
  This now writes u32 val0 to inr0+0x34 immediately after the nop instruction.&lt;br /&gt;
  &lt;br /&gt;
  L_281ab0&lt;br /&gt;
  updated, prev ver @ L_281998.&lt;br /&gt;
  Added the following: if(len&amp;gt;=0xfe)len=0xfe;&lt;br /&gt;
  This was added at 0x281b94:&lt;br /&gt;
  if(somelen&amp;gt;=0xfe)&lt;br /&gt;
  {&lt;br /&gt;
  	len=0xfe;&lt;br /&gt;
  }&lt;br /&gt;
  else&lt;br /&gt;
  {&lt;br /&gt;
  	len=somelen;&lt;br /&gt;
  }&lt;br /&gt;
  *r4 = val;&lt;br /&gt;
  Then len is used for a string data-copy(ASCII/UTF16), unless it&#039;s UTF16 and len is &amp;lt;=0.&lt;br /&gt;
&lt;br /&gt;
===[[Title_list|SNOTE_AP]]===&lt;br /&gt;
This was updated with vuln fixes similar to the sound-app.&lt;br /&gt;
&lt;br /&gt;
  LT_1004d6&lt;br /&gt;
  updated, prev ver @ LT_1004d6.&lt;br /&gt;
  Added a func call for LT_1017c8 at 0x100508.&lt;br /&gt;
  &lt;br /&gt;
  LT_1017c8&lt;br /&gt;
  new func.&lt;br /&gt;
  Only called by LT_1004d6.&lt;br /&gt;
  return LT_10250c(0x405, 5, 0x5109d503);&lt;br /&gt;
  &lt;br /&gt;
  LT_103368&lt;br /&gt;
  updated, prev ver @ LT_1032f8.&lt;br /&gt;
  The first func call was removed, it&#039;s now located in LT_1017c8.&lt;br /&gt;
  &lt;br /&gt;
  LT_11ea6c&lt;br /&gt;
  updated, prev ver @ LT_11ea60.&lt;br /&gt;
  Added the following: if(len&amp;gt;0xfe)*lenptr = 0xfe;&lt;br /&gt;
  &lt;br /&gt;
  LT_11f210&lt;br /&gt;
  updated, prev ver @ LT_11f1fc.&lt;br /&gt;
  The following was added at 0x11f49c: if(len&amp;gt;0xfe)len=0xfe;&lt;br /&gt;
  Before executing &amp;quot;return ~0x63;&amp;quot; this now calls LT_12f542.&lt;br /&gt;
  minor other changes.&lt;br /&gt;
  &lt;br /&gt;
  LT_11f84c&lt;br /&gt;
  updated, prev ver @ LT_11f828.&lt;br /&gt;
  This now clears inr0+0x34 after calling L_14cabc.&lt;br /&gt;
  &lt;br /&gt;
  LT_11f9ac&lt;br /&gt;
  updated, prev ver @ LT_11f984.&lt;br /&gt;
  Added the following: if(len&amp;gt;0xfe)*lenptr=0xfe;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
System update report(s):&lt;br /&gt;
* [https://yls8.mtheall.com/ninupdates/reports.php?date=04-10-17_08-00-38&amp;amp;sys=ctr]&lt;br /&gt;
* [https://yls8.mtheall.com/ninupdates/reports.php?date=04-10-17_08-00-47&amp;amp;sys=ktr]&lt;/div&gt;</summary>
		<author><name>Yellows8</name></author>
	</entry>
	<entry>
		<id>https://www.3dbrew.org/w/index.php?title=3DS_Userland_Flaws&amp;diff=19858</id>
		<title>3DS Userland Flaws</title>
		<link rel="alternate" type="text/html" href="https://www.3dbrew.org/w/index.php?title=3DS_Userland_Flaws&amp;diff=19858"/>
		<updated>2017-04-11T22:38:23Z</updated>

		<summary type="html">&lt;p&gt;Yellows8: /* System applications */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page lists vulnerabilities / exploits for 3DS applications and applets. Exploiting these initially results in ROP, from that ROP one can then for example try exploiting [[3DS_System_Flaws|system]] flaw(s).&lt;br /&gt;
&lt;br /&gt;
=Non-system applications=&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Application name&lt;br /&gt;
!  Summary&lt;br /&gt;
!  Description&lt;br /&gt;
!  Fixed in app/system version&lt;br /&gt;
!  Last app/system version this flaw was checked for&lt;br /&gt;
!  Timeframe info related to this was added to wiki&lt;br /&gt;
!  Timeframe this vuln was discovered&lt;br /&gt;
!  Vuln discovered by&lt;br /&gt;
|-&lt;br /&gt;
| Cubic Ninja&lt;br /&gt;
| Map-data stack smash&lt;br /&gt;
| See [[Ninjhax|here]] regarding Ninjhax.&lt;br /&gt;
| None&lt;br /&gt;
| App: Initial version. System: [[10.4.0-29]].&lt;br /&gt;
| Ninjhax release&lt;br /&gt;
| July 2014&lt;br /&gt;
| [[User:smea|smea]]&lt;br /&gt;
|-&lt;br /&gt;
| The Legend of Zelda: Ocarina of Time 3D&lt;br /&gt;
| UTF-16 name string buffer overflow via unchecked u8 length field&lt;br /&gt;
| The u8 at offset 0x2C in the savefile is the character-length of the UTF-16 string at offset 0x1C. When copying this string, it&#039;s essentially a memory-copy with lenval*2, not a string-copy. This can be used to trigger buffer overflows at various locations depending on the string length.&lt;br /&gt;
* When value is &amp;gt;=0x6E it crashes when saving the saveslot, this causes a stack-smash however it normally crashes before it returns from the function which had the stack-frame overwritten.&lt;br /&gt;
* With value &amp;gt;=0x9A, it crashes via stack-smash in-game once any dialogs are opened(touching buttons on the touch-screen can trigger it too).&lt;br /&gt;
* Length value&amp;gt;=0xCD causes a crash while loading the saveslot, via a heap buffer overflow. This buf-overflow overwrites a heap memchunk following the allocated buffer. When the first 16-bits overwriting that heap memchunk is not the memchunk magic-number(0x7373), the mem-alloc code will just return a NULL ptr which later results in a crash. When the magic-number is valid, the mem-alloc code will continue to attempt to parse the memchunk, which may crash depending on the data which overwrote the memchunk. This heap code is separate from the CTRSDK heap code. Exploiting this doesn&#039;t seem to be possible: since the heap code actually verifies that the magic-number for the next/prev memchunk ptrs are correct(unlike CTRSDK), it&#039;s not possible to change those ptrs to useful arbitrary addresses outside of savedata(like with triggering a write to a c++ object ptr which later is used with a vtable func-call, this is what one would do with CTRSDK heap here).&lt;br /&gt;
&lt;br /&gt;
On March 11, 2015, an exploit using this vuln was released, that one was intended for warez/etc. The following exploit wasn&#039;t released before then mainly because doing so would (presumably) result in the vuln being fixed. The following old exploit was released on March 14, 2015: [https://github.com/yellows8/oot3dhax].&lt;br /&gt;
| None&lt;br /&gt;
| App: Initial version. System: [[10.6.0-31]].&lt;br /&gt;
| March 11, 2015&lt;br /&gt;
| Around October 22, 2012&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| Super Smash Bros 3DS&lt;br /&gt;
| Buffer overflow in local-multiplayer beacon handling.&lt;br /&gt;
| See [[smashbroshax|here]].&lt;br /&gt;
| App: v1.1.3&lt;br /&gt;
| See [[smashbroshax|here]]. System: [[10.3.0-28]].&lt;br /&gt;
| Time of exploit release.&lt;br /&gt;
| See [[smashbroshax|here]].&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| Pokemon Super Mystery Dungeon&lt;br /&gt;
| Heap overflow within linear memory via unchecked save file length&lt;br /&gt;
| Pokemon Super Mystery Dungeon uses zlib compression for most of its save files, possibly due to the save files being larger than its predecessor, Gates to Infinity. When a save file is being prepared to be loaded and read from, only a 0x32000 large buffer is allocated for file reading, and a 0x3e800-large buffer for decompression is also allocated before the file is read. However, the game does not limit the size of the file read to this allocation bound, allowing for the file to overflow into the linear memory heap and into the next allocation. Since Pokemon Super Mystery Dungeon stores allocation memchunks directly before the allocation, overwriting the next memchunk with a corrupted one allows for arbitrary writes of linear heap pointers when the next buffer is allocated or arbitrary writes of any pointer within writable memory when the corrupted buffer is freed.&lt;br /&gt;
| None&lt;br /&gt;
| [[10.7.0-32]].&lt;br /&gt;
| Time of exploit release.&lt;br /&gt;
| April 14, 2016&lt;br /&gt;
| [[User:Shinyquagsire23|Shiny Quagsire]]&lt;br /&gt;
|-&lt;br /&gt;
| VVVVVV&lt;br /&gt;
| Buffer overflow in XML save file array parsing&lt;br /&gt;
| VVVVVV utilizes several XML files (renamed with a .vvv extension) to store level save data, stats and settings. Within these XML files are several tags containing an array of data which, when parsed, is not properly checked to be of proper length for the tag being parsed from. This allows for an overflow of 16-bit array values from the location where the array is parsed. With unlock.vvv, XML data is parsed to the stack, and with level saves the heap. This allows for the pointer where the level save worldmap tag array should be parsed into to be overwritten with a stack address, allowing for ROP from within the XML array parsing function on the next level load.&lt;br /&gt;
| App: v1.1&lt;br /&gt;
| [[10.7.0-32]].&lt;br /&gt;
| Time of exploit release.&lt;br /&gt;
| April 25, 2016&lt;br /&gt;
| [[User:Shinyquagsire23|Shiny Quagsire]]&lt;br /&gt;
|-&lt;br /&gt;
| Citizens of Earth&lt;br /&gt;
| Save file read stack smash&lt;br /&gt;
| Citizens of Earth also uses &amp;quot;XML&amp;quot; files for saves, which are actually entirely binary data (not XML at all) with no checksums. These files are read from the filesystem on to a fixed size stack buffer which leads to an incredibly trivial stack smash. When using the autosave slot for this, the save is parsed when the user selects &amp;quot;continue&amp;quot;. When using one of the dedicated save slots (1-3), the save is parsed shortly after the company splash screens fade. Note that the save is read quite high (descending) on the stack - when exploiting this, one would likely need to move SP due to almost instantly overflowing the physical stack.&lt;br /&gt;
| None&lt;br /&gt;
| [[10.7.0-32]].&lt;br /&gt;
| Time of exploit release.&lt;br /&gt;
| May 5, 2016&lt;br /&gt;
| [[User:Dazzozo|Dazzozo]]&lt;br /&gt;
|-&lt;br /&gt;
| SmileBASIC 3.x&lt;br /&gt;
| Poor parameter validation on &amp;quot;BGSCREEN&amp;quot; command&lt;br /&gt;
| The SmileBASIC &amp;quot;BGSCREEN&amp;quot; command&#039;s second parameter is not properly validated as being within range.  As a result, one can set the screen size to an absurdly large value.  This means that the &amp;quot;BGGET&amp;quot; and &amp;quot;BGPUT&amp;quot; commands can then be used on out-of-range values to read and write a significant chunk of the interpreter&#039;s address space.&lt;br /&gt;
With a series of carefully-designed BGPUT commands, one can build a ROP chain and cause it to be executed.&lt;br /&gt;
| App: 3.3.2.&lt;br /&gt;
| System: [[11.0.0-33]].&lt;br /&gt;
| July 20, 2016&lt;br /&gt;
| Around June 26, 2016&lt;br /&gt;
| slackerSnail, 12Me12, incvoid&lt;br /&gt;
Exploited by MrNbaYoh and [[User:Plutooo|plutoo]].&lt;br /&gt;
|-&lt;br /&gt;
| The Legend of Zelda: Tri Force Heroes&lt;br /&gt;
| [[3DS_System_Flaws#General.2FCTRSDK|CTRSDK]] CTPK buffer overflow combined with game&#039;s usage of SpotPass&lt;br /&gt;
| During the very first screen displayed by the game during boot(&amp;quot;Loading...&amp;quot;), just seconds after title launch, the game loads CTPK from the [[BOSS_Services|stored]] SpotPass content. Hence, this game could be exploited via the vulnerable CTRSDK CTPK code &#039;&#039;if&#039;&#039; one could get custom SpotPass data into extdata somehow(ctr-httpwn &amp;gt;=v1.2 with bosshaxx allows this).&lt;br /&gt;
&lt;br /&gt;
The code for this runs from a thread separate from the main-thread, with the stack in linearmem heap. This SpotPass handling triggers before the game ever opens the regular savedata archive. The extdata is opened at some point before this: it opens a file for checking if it exists, then immediately closes it.&lt;br /&gt;
&lt;br /&gt;
The two SpotPass URLs for this have always(?) returned HTTP 404 as of November 2016. It appears these were intended for use as textures for additional costumes(and never got used publicly), but this wasn&#039;t tested.&lt;br /&gt;
&lt;br /&gt;
This is used by [https://github.com/yellows8/ctpkpwn ctpkpwn_tfh].&lt;br /&gt;
| None&lt;br /&gt;
| App: v2.1.0&lt;br /&gt;
| November 18, 2016&lt;br /&gt;
| November 14, 2016&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| Pixel Paint&lt;br /&gt;
| Buffer overflow via unchecked extdata file length&lt;br /&gt;
| Pixel Paint loads pictures saved by the user from extdatas. The file is read to a fixed size buffer but the file length remains unchecked, so with a large enough file, one can overwrite pointers in memory and gain control of the execution flow.&lt;br /&gt;
| None&lt;br /&gt;
| App: Initial version. System: [[11.2.0-35]].&lt;br /&gt;
| December 27, 2016&lt;br /&gt;
| November 5, 2016&lt;br /&gt;
| [[User:Nba_Yoh|MrNbaYoh]]&lt;br /&gt;
|-&lt;br /&gt;
| Steel Diver : Sub Wars&lt;br /&gt;
| Heap overflow / arbitrary memcpy&lt;br /&gt;
| Savefile datas are stored as key/value pairs, a large enough string key makes the game overwrite a memcpy source/destination addresses and size arguments. So one can actually memcpy a rop on the stack and gain control of the execution flow.&lt;br /&gt;
| None&lt;br /&gt;
| System: [[11.2.0-35]].&lt;br /&gt;
| December 27, 2016&lt;br /&gt;
| Around July 15, 2016&lt;br /&gt;
| [[User:Nba_Yoh|MrNbaYoh]], Vegaroxas&lt;br /&gt;
|-&lt;br /&gt;
| 1001 Spikes&lt;br /&gt;
| Buffer overflow via unchecked array-indexes in XML savefile parsing&lt;br /&gt;
| The savefiles are stored as renamed .xml files, which contain several tags with attributes like &#039;array-index=&amp;quot;array-value&amp;quot;&#039;, where both of these are converted from ASCII strings to integers as signed-int32, and the array-value given blindly written to an array inside a structure using the (unchecked) index given. With several of these attributes, one can overwrite the stack starting from the stored lr of the function that does this parsing, and write a ROP chain there. Testing used the &amp;quot;LevelAttempts&amp;quot; tag which is the last such tag parsed in that function.&lt;br /&gt;
| None&lt;br /&gt;
| App: v1.2.0 (TMD v2096)&lt;br /&gt;
| December 27, 2016&lt;br /&gt;
| Around November 2, 2016&lt;br /&gt;
| [[User:Riley|Riley]]&lt;br /&gt;
|-&lt;br /&gt;
| Pokemon Omega Ruby/Alpha Sapphire&lt;br /&gt;
| Secret base team name heap overflow&lt;br /&gt;
| When the player wants to edit the team name, it is copied over the heap, however its length is not verified. So with a large enough team name one can overwrite some pointers and get two arbitrary jumps and then get control of the execution flow.&lt;br /&gt;
| None&lt;br /&gt;
| App: 1.4. System: [[11.2.0-35]].&lt;br /&gt;
| December 30, 2016&lt;br /&gt;
| June, 2016&lt;br /&gt;
| [[User:Nba_Yoh|MrNbaYoh]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Useless crashes / applications which were fuzzed==&lt;br /&gt;
* Pushmo (3DSWare), QR codes: level name is properly limited to 16 characters, game doesn&#039;t crash with a longer name. The only possible crashes are triggered by out-of-bounds array index values, these crashes are not exploitable due to the index value being 8bit.&lt;br /&gt;
&lt;br /&gt;
* [[Pyramids (3DSWare)]], QR codes: no strings. Only crashes are from out-of-bounds values (like background ID) and are not exploitable.&lt;br /&gt;
&lt;br /&gt;
* [[Pyramids 2 (3DSWare)]], QR codes: no strings. Only crashes are from out-of-bounds values (like background ID) and are not exploitable.&lt;br /&gt;
&lt;br /&gt;
* [https://github.com/yellows8/mm3d_re The Legend of Zelda: Majora&#039;s Mask 3D]&lt;br /&gt;
&lt;br /&gt;
* &amp;quot;The Legend of Zelda: A Link Between Worlds&amp;quot; and &amp;quot;The Legend of Zelda: Tri Force Heroes&amp;quot;: these games don&#039;t crash at all when the entire save-file(minus constant header data) is overwritten with /dev/random output / 0xFF-bytes. All of the CRC32s were updated for this of course.  Note that this refers to the regular save file: Tri Force Heroes can be exploited via BOSS extdata - see above.&lt;br /&gt;
&lt;br /&gt;
* Pokemon Mystery Dungeon: Gates to Infinity has the same unchecked file bounds as Pokemon Super Mystery Dungeon, however since save compression was introduced in Pokemon Super Mystery Dungeon, it only allocates one buffer within the application heap instead of several within the linear heap, resulting in nothing to corrupt or overwrite even if the file&#039;s length is extended past its allocation.&lt;br /&gt;
&lt;br /&gt;
* &amp;quot;Kid Icarus: Uprising&amp;quot;: Overwriting the entire savedata results in various crashes, nothing useful.&lt;br /&gt;
&lt;br /&gt;
* Savedata/extdata for &amp;quot;Super Smash Bros 3DS&amp;quot;: Overwriting the various files stored under savedata/extdata results in useless crashes.&lt;br /&gt;
&lt;br /&gt;
* &amp;quot;StarFox 64 3D&amp;quot;: Doesn&#039;t crash at all with the entire savedata overwritten.&lt;br /&gt;
&lt;br /&gt;
* &amp;quot;Frogger 3D&amp;quot;: Overwriting a savefile with random-data results in *nothing* crashing.&lt;br /&gt;
&lt;br /&gt;
* &amp;quot;Mutant Mudds&amp;quot;: Overwriting the savefile with random data results in a crash&lt;br /&gt;
&lt;br /&gt;
* &amp;quot;Animal Crossing: New Leaf&amp;quot;: Creating a QR code from random data results in a valid QR code and a random design. In some very rare cases(which aren&#039;t always reproducible?) a crash/etc may occur, but this isn&#039;t known to be useful.&lt;br /&gt;
&lt;br /&gt;
==Crashes needing investigation==&lt;br /&gt;
* Disney Infinity crashes when all savedata overwritten with /dev/urandom. No checksums. 0xFF bytes don&#039;t cause a crash.&lt;br /&gt;
&lt;br /&gt;
* Football Up Online / Soccer Up Online and Football Up 3D / Soccer Up 3D crash when teamname(UTF-16) length = 0x48 AND 0x20 null bytes are removed after just the name or if teamname length is way longer than 0x48.&lt;br /&gt;
&lt;br /&gt;
=System applications=&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Summary&lt;br /&gt;
!  Description&lt;br /&gt;
!  Fixed in version&lt;br /&gt;
!  Last version this flaw was checked for&lt;br /&gt;
!  Timeframe this was discovered&lt;br /&gt;
!  Discovered by&lt;br /&gt;
|-&lt;br /&gt;
| 3DS [[System Settings]] DS profile string stack-smash&lt;br /&gt;
| Too long or corrupted strings (01Ah  2   Nickname length in characters     050h  2   Message length in characters) in the NVRAM DS user settings (System Settings-&amp;gt;Other Settings-&amp;gt;Profile-&amp;gt;Nintendo DS Profile) cause it to crash in 3DS-mode due to a stack-smash. The DSi is not vulnerable to this, DSi launcher(menu) and DSi System Settings will reset the NVRAM user-settings if the length field values are too long(same result as when the CRCs are invalid). TWL_FIRM also resets the NVRAM user-settings when the string-length(s) are too long.&lt;br /&gt;
| [[7.0.0-13]]&lt;br /&gt;
| [[7.0.0-13]]&lt;br /&gt;
| 2012&lt;br /&gt;
| [[User:Ichfly|Ichfly]]&lt;br /&gt;
|-&lt;br /&gt;
| [[Nintendo 3DS Sound]]&lt;br /&gt;
| When a .m4a is loaded, the song name is copied to a 256 byte buffer. When the song name begins with a Unicode BOM marker, it memcpy&#039;s the tag using the user-provided length. This gives an arbitrary write which can be used to achieve ROP.&lt;br /&gt;
| [[11.4.0-37]]&lt;br /&gt;
| [[11.4.0-37]]&lt;br /&gt;
| June/July 2016&lt;br /&gt;
| [[User:nedwill|nedwill]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=System applets=&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Summary&lt;br /&gt;
!  Description&lt;br /&gt;
!  Fixed in version&lt;br /&gt;
!  Last version this flaw was checked for&lt;br /&gt;
!  Introduced with version&lt;br /&gt;
!  Timeframe info related to this was added to wiki&lt;br /&gt;
!  Timeframe this was discovered&lt;br /&gt;
!  Discovered by&lt;br /&gt;
|-&lt;br /&gt;
| Webkit/web-browser bugs&lt;br /&gt;
| spider has had at least three different code-execution exploits. Majority of them are use-after-free issues. See also [[browserhax|here]].&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
| &lt;br /&gt;
| 2013?&lt;br /&gt;
|&lt;br /&gt;
| A lot of people.&lt;br /&gt;
|-&lt;br /&gt;
| Old3DS/New3DS [[Internet_Browser|Browser-version-check]] bypass&lt;br /&gt;
| When the browser-version-check code runs where the savedata for it was never initialized(such as when the user used the &amp;quot;Initialize savedata&amp;quot; option), it will use base_timestamp=0 instead of the timestamp loaded from savedata. This is then used with &amp;quot;if(cur_timestamp - base_timestamp &amp;gt;= &amp;lt;24h timestamp&amp;gt;){Run browser-version-check HTTPS request code}&amp;quot;.&lt;br /&gt;
Hence, if the savedata was just initialized, and if the system datetime is set to before January 2, 2000, the browser-version-check will be skipped. This includes January 1, 2000, 00:00, because that&#039;s the epoch(timestamp value 0x0) used with this timestamp.&lt;br /&gt;
&lt;br /&gt;
See [http://yls8.mtheall.com/3dsbrowserhax.php here] for bypass usage instructions.&lt;br /&gt;
&lt;br /&gt;
This was fixed with [[10.7.0-32|10.7.0-32]], see [[Internet_Browser|here]] for details.&lt;br /&gt;
| [[10.7.0-32|10.7.0-32]]&lt;br /&gt;
| &lt;br /&gt;
| [[9.9.0-26|9.9.0-26]]&lt;br /&gt;
| February 25, 2016&lt;br /&gt;
| November 2, 2015 (Exactly one week after the browser version pages were initially updated server-side)&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Home Menu==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Summary&lt;br /&gt;
!  Description&lt;br /&gt;
!  Fixed in version&lt;br /&gt;
!  Last version this flaw was checked for&lt;br /&gt;
!  Introduced with version&lt;br /&gt;
!  Timeframe info related to this was added to wiki&lt;br /&gt;
!  Timeframe this was discovered&lt;br /&gt;
!  Discovered by&lt;br /&gt;
|-&lt;br /&gt;
| bossbannerhax&lt;br /&gt;
| After successfully loading [[Extended_Banner|extended-banner]] data(done when selecting an icon), Home Menu attempts to load &amp;quot;[[CBMD]]&amp;quot; data into a 0x100000-byte heap buffer from the [[BOSS_Services|stored]] SpotPass content. When successful and the magic-number is CBMD, Home Menu then decompresses the exbanner sections into another fixed-size heap buffer, without checking the outsize at all. The main CBMD CGFX code with ExeFS checks the size, but this code doesn&#039;t(however this is exbanner &amp;quot;CBMD&amp;quot;, not a &amp;quot;normal&amp;quot; CBMD).&lt;br /&gt;
&lt;br /&gt;
Used with menuhax as of v3.2.&lt;br /&gt;
| [[11.3.0-36|11.3.0-X]]&lt;br /&gt;
| &lt;br /&gt;
| [[1.0.0-0|1.0.0-0]]&lt;br /&gt;
| November 18, 2016&lt;br /&gt;
| December 23, 2014&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| sdiconhax&lt;br /&gt;
| This is basically the same as nandiconhax, the vulnerable SD/NAND functions are &#039;&#039;identical&#039;&#039; minus the file-buffer offsets. Exploitation is different due to different heap-buffer location though. Unlike nandiconhax, the icon buffer for SD is located in linearmem(with recent Home Menu versions at least). This is used by [[menuhax]].&lt;br /&gt;
| [[11.1.0-34|11.1.0-X]]&lt;br /&gt;
| &lt;br /&gt;
| [[4.0.0-7|4.0.0-X]]&lt;br /&gt;
| July 27, 2016&lt;br /&gt;
| October 23, 2015&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| [[System_SaveData|NAND-savedata]] Launcher.dat icons (nandiconhax)&lt;br /&gt;
| The homemenu code processing the titleid list @ launcherdat+8 copies those titleIDs to another buffer, where the offset relative to that buffer is calculated using the corresponding s8/s16 entries. Those two values are not range checked at all. Hence, one can use this to write u64(s) with arbitrary values to before/after this allocated output buffer. See [[Home_Menu|here]] regarding Launcher.dat structure.&lt;br /&gt;
&lt;br /&gt;
This can be exploited(with Launcher.dat loading at startup at least) by using a s16 for the icon entry with value 0xFFEC(-20)(and perhaps more icons with similar s16 values to write multiple u64s). The result is that the u64 value is written to outbuf-0xA0, which overwrites object+0(vtable) and object+4(doesn&#039;t matter here) for an object that gets used a bit after the vulnerable function triggers. The low 32bits of the u64 can then be set to the address of controlled memory(either outbuf in regular heap or the entire launcherdat buffer in linearmem), for use as a fake vtable in order to get control of PC. From there one can begin ROP via vtable funcptrs to do a stack-pivot(r4=objectaddr at the time the above object gets used).&lt;br /&gt;
&lt;br /&gt;
Originally this vuln could only be triggered via Launcher.dat at Home Menu startup, right after Launcher.dat gets loaded + memory gets allocated, once the file-format version code is finished running. Starting with v9.6 this can be triggered when loading layouts from SD extdata as well. The vuln itself triggers before the layout data is written to Launcher.dat, but it doesn&#039;t seem to be possible to overwrite anything which actually gets used before the function which writes Launcher.dat into the layout gets called.&lt;br /&gt;
&lt;br /&gt;
Home Menu has some sort of fail-safe system(or at least on v9.7) when Home Menu crashes due to Launcher.dat(this also applies for other things with Home Menu): after crashing once, Home Menu resets Launcher.dat to a state where it no longer crashes anymore. However, note that any exploits using this which hang/etc without crashing will still brick the system. &#039;&#039;&#039;Hence, attempting anything with this on physnand without hw-nand-access isn&#039;t really recommended.&#039;&#039;&#039;&lt;br /&gt;
| [[11.1.0-34|11.1.0-X]]&lt;br /&gt;
| &lt;br /&gt;
| [[4.0.0-7|4.0.0-X]]&lt;br /&gt;
| &lt;br /&gt;
| May 14, 2015&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| Theme-data decompression buffer overflow ([[menuhax|themehax]])&lt;br /&gt;
| The only func-call size parameter used by the theme decompression function is one for the compressed size, none for the decompressed size. The decompressed-size value from the LZ header is used by this function to check when to stop decompressing, but this function itself has nothing to verify the decompressed_size with. The code calling this function does not check or even use the decompressed size from the header either.&lt;br /&gt;
&lt;br /&gt;
This function is separate from the rest of the Home Menu code: the function used for decompressing themes is *only* used for decompressing themes, nothing else. There&#039;s a separate decompression function in Home Menu used for decompressing everything else.&lt;br /&gt;
&lt;br /&gt;
That other decompression function in Home Menu handles decompression size properly(decompressed size check for max buffer size is done by code calling the other function, not in the function itself). Unlike the other function, the theme function supports multiple LZ algorithms, but the one which actually gets used in official themes is the same one supported by the other function anyway.&lt;br /&gt;
&lt;br /&gt;
See also [[menuhax|here]].&lt;br /&gt;
&lt;br /&gt;
With [[10.2.0-28|10.2.0-X]] Home Menu, the only code change was that the following was added right after theme-load and before actual decompression: &amp;quot;if(&amp;lt;get_lzheader_decompressed_size&amp;gt;(compressed_buf) &amp;gt; 0x150000)&amp;lt;exit&amp;gt;;&amp;quot;. This fixed the vuln.&lt;br /&gt;
| [[10.2.0-28|10.2.0-X]]&lt;br /&gt;
| [[10.2.0-28|10.2.0-X]]&lt;br /&gt;
| &amp;lt;Old3DS/New3DS version which added initial theme support&amp;gt;&lt;br /&gt;
| &lt;br /&gt;
| December 22, 2014&lt;br /&gt;
| [[User:Yellows8|Yellows8]], [[User:Myria|Myria]] independently (~spring 2015)&lt;br /&gt;
|-&lt;br /&gt;
| Shuffle body-data buffer overflow ([[menuhax|shufflehax]])&lt;br /&gt;
| See [[menuhax|here]].&lt;br /&gt;
| [[10.6.0-31|10.6.0-X]]&lt;br /&gt;
| [[10.6.0-31|10.6.0-X]]&lt;br /&gt;
| [[9.3.0-21|9.3.0-X]]&lt;br /&gt;
| &lt;br /&gt;
| January 3, 2015&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| Extdata file-data loading buffer overflow&lt;br /&gt;
| The extdata file-reading code allocates a fixed-size heap buffer for the expected filesize, then reads the filedata into this buffer using the actual FS filesize. Before v5.0 the filesize used here wasn&#039;t validated, hence if the filesize is larger than alloc_size a buffer overflow would occur. &#039;&#039;After&#039;&#039; doing the file-read it does validate that the actual_readsize matches the alloc_size, but at this point the buffer overflow has already occurred.&lt;br /&gt;
&lt;br /&gt;
This affected at least the following: SaveData.dat and Cache.dat.&lt;br /&gt;
&lt;br /&gt;
This can be triggered with SaveData.dat by installing a &amp;lt;v4.0 Home Menu version, with Home Menu extdata from &amp;gt;=v4.0 still on SD. When this is done with v2.0 Home Menu, a kernelpanic occurs when processing an AM command(it appears a buffer ptr which is then passed to a command was overwritten with 0x0 - of course other SaveData.dat filesizes may result in different behaviour).&lt;br /&gt;
| [[5.0.0-11|5.0.0-X]]&lt;br /&gt;
| &lt;br /&gt;
| [[2.0.0-2|2.0.0-X]]&lt;br /&gt;
| June 9, 2016&lt;br /&gt;
| June 9, 2016&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The icon data arrays used with {sd/nand}iconhax were added to SaveData.dat/Launcher.dat with [[4.0.0-7|4.0.0-X]], hence the vulnerable functions were added with that same version.&lt;br /&gt;
&lt;br /&gt;
With &amp;lt;=v4.0 the SaveData.dat buffer is located in the regular heap. It&#039;s unknown when exactly it was moved to linearmem, which is where it&#039;s located with recent versions. It&#039;s located in linearmem for KOR &amp;gt;=v9.6 for example.&lt;br /&gt;
&lt;br /&gt;
The SaveData.dat/Launcher.dat icon vulns were fixed by doing various unsigned &amp;gt;=60/&amp;gt;=360 checks on the loaded values. When these checks fail, it just skips over handling this icon entry. Hence, the original value can&#039;t be negative / out-of-bounds any more.&lt;br /&gt;
&lt;br /&gt;
==Useless crashes==&lt;br /&gt;
Old3DS system web-browser:&lt;br /&gt;
* 2^32 characters long string(&#039;&#039;finally&#039;&#039; fixed with v10.6): this is similar to the vulnerability fixed [http://git.chromium.org/gitweb/?p=external/Webkit.git;a=commitdiff;h=ec471f16fbd1f879cb631f9b022fd16acd75f4d4 here], concat-large-strings-crash2.html triggers a crash which is about the same as the one triggered by a 2^32 string. Most of the time this vulnerability will cause a memory page permissions fault, since the WebKit code attempts to copy the string text data to the output buffer located in read-only [[CRO0|CRO]] heap memory. The only difference between a crash triggered by a 2^32 string and the concat-large-strings-crash2.html crash is at the former copies the string data using the original string length(like 1 text character for &amp;quot;x&amp;quot;, 4 for &amp;quot;xxxx&amp;quot;) while the latter attempts to copy &amp;gt;12MB. In some &#039;&#039;very&#039;&#039; rare cases a thread separate from the string data-copy thread will crash, this might be exploitable. However, this is mostly useless since it rarely crashes this way.&lt;br /&gt;
&lt;br /&gt;
* Trying to directly load a page via the browser &amp;quot;URL&amp;quot; option with [https://github.com/yellows8/3ds_browserhax_common webkitdebug] setup, causes a crash to trigger in oss.cro due to an use-after-free being caught with webkitdebug. This is presumably some sort of realloc() issue in the libcurl version used by the &amp;lt;={v10.2-v10.3} browser. This happens with *every* *single* *page* one tries to load via the &amp;quot;URL&amp;quot; option, but not when loading links on the current page, hence this is probably useless. A different use-after-free with realloc triggers with loading any page at all regardless of method too(libcurl probably).&lt;br /&gt;
&lt;br /&gt;
* This WebKit build has &#039;&#039;a lot&#039;&#039; of crash-trigger bugs that only happen with [https://github.com/yellows8/3ds_browserhax_common webkitdebug] completely setup(addr accesses near 0x0), with &#039;&#039;just&#039;&#039; trying to load any page at all.&lt;/div&gt;</summary>
		<author><name>Yellows8</name></author>
	</entry>
	<entry>
		<id>https://www.3dbrew.org/w/index.php?title=11.4.0-37&amp;diff=19857</id>
		<title>11.4.0-37</title>
		<link rel="alternate" type="text/html" href="https://www.3dbrew.org/w/index.php?title=11.4.0-37&amp;diff=19857"/>
		<updated>2017-04-11T22:37:08Z</updated>

		<summary type="html">&lt;p&gt;Yellows8: /* System Titles */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The Old3DS+New3DS 11.4.0-37 system update was released on April 10, 2017. This Old3DS update was released for the following regions: USA, EUR, JPN, CHN, KOR, and TWN. This New3DS update was released for the following regions: USA, EUR, JPN, CHN, KOR, and TWN.&lt;br /&gt;
&lt;br /&gt;
Security flaws fixed: yes.&lt;br /&gt;
&lt;br /&gt;
==Change-log==&lt;br /&gt;
[http://en-americas-support.nintendo.com/app/answers/detail/a_id/667/p/430/c/267 Official] USA change-log:&lt;br /&gt;
* Further improvements to overall system stability and other minor adjustments have been made to enhance the user experience&lt;br /&gt;
&lt;br /&gt;
==System Titles==&lt;br /&gt;
===NATIVE_FIRM===&lt;br /&gt;
====Process9====&lt;br /&gt;
The global boolean preventing [[FIRM|SAFE_FIRM]] from being launched is now set in Process9&#039;s crt0 if [[CONFIG9_Registers#CFG9_BOOTENV|CFG9_BOOTENV]] has bit0 set, that is to say, if it has been launched from a firmlaunch (this register is set to 1 just before a firmlaunch). The following code has also been added in the firmlaunch function itself: &amp;lt;code&amp;gt;if(!(CFG9_BOOTENV &amp;amp; 1) /* not a firmlaunch */ || (CFG9_BOOTENV &amp;amp; 6) /* firmlaunched from LGY_FIRM (if even possible at all) */) goto panic&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
This is to fix [[3DS_System_Flaws#Process9|safehax]].&lt;br /&gt;
&lt;br /&gt;
====New3DS kernel9loader====&lt;br /&gt;
New3DS kernel9loader wasn&#039;t updated.&lt;br /&gt;
&lt;br /&gt;
====ARM11 kernel====&lt;br /&gt;
There are at least, and likely, three changes:&lt;br /&gt;
&lt;br /&gt;
* [[CONFIG11_Registers#CFG11_WIFIUNK|CFG11_WIFIUNK]] is now set to 0x10 in Kernel11&#039;s crt0&lt;br /&gt;
* A new SVC, [[SVC|svc 0x5A]] has been introduced, to enable or disable wifi&lt;br /&gt;
* The code handling [[SVC|svcArbitrateAddress]] with type = SIGNAL, has been changed. It now counts the actual number of threads arbitrating on that address, and if it is non-zero, it executes the following hack: &amp;lt;code&amp;gt;if(coreId == 0 &amp;amp;&amp;amp; currentThread-&amp;gt;dynamicPriority &amp;gt;= 50) waitCycles(0x64E)&amp;lt;/code&amp;gt;. This supposedly works around the lag issue in some games, which has been introduced on [[11.3.0-36]]&lt;br /&gt;
&lt;br /&gt;
===Modules===&lt;br /&gt;
No FIRM ARM11 sysmodule was changed.&lt;br /&gt;
&lt;br /&gt;
===[[NWM_Services|NWM-sysmodule]]===&lt;br /&gt;
The [[CONFIG11_Registers]] are no longer directly mapped under userland for NWM-sysmodule.&lt;br /&gt;
This prevents anything under NWM-module from modifying the GPUPROT register. This was used by both *hax payload(prior to v11.4 release) and [https://github.com/smealum/udsploit udsploit].&lt;br /&gt;
&lt;br /&gt;
The codebin was updated.&lt;br /&gt;
&lt;br /&gt;
The crt0-poke in PDN that NWM previously did:&lt;br /&gt;
  0x1EC4010C |= 0x10&lt;br /&gt;
&lt;br /&gt;
.. has been removed from NWM. This one has been moved into kernel bootup.&lt;br /&gt;
&lt;br /&gt;
All accesses to 0x1EC40180 have been replaced by a new syscall, [[SVC|0x5A]].&lt;br /&gt;
&lt;br /&gt;
This now includes code from old CTRSDK update(s). A new func was added for calling a func, previously that func was directly called via vtable funcptr. The only other changes was new heap code(and the code for using it basically), for fixing the NWMUDS sharedmem [[3DS_System_Flaws|vuln]]. This includes code which actually validates heap memchunkhdrs, with svcBreak being executed on failure.&lt;br /&gt;
&lt;br /&gt;
A new string was added at 0x13E200: &amp;quot;used&amp;quot;(with 3 0xFF bytes afterwards), this is used by the new heap code. The wifi-fw was moved from .data to .rodata.&lt;br /&gt;
&lt;br /&gt;
===[[HTTP_Services|HTTP-sysmodule]]===&lt;br /&gt;
There were exactly 3 changes in the HTTP-sysmodule codebin.&lt;br /&gt;
&lt;br /&gt;
Two functions, the memalloc and memfree functions used with HTTP sharedmem, were updated to use the new function. The new function is for heap memchunkhdr validation. This additional code is the same new heap code as NWM-sysmodule. This fixed the vuln used by ctr-httpwn at the time of sysupdate release.&lt;br /&gt;
&lt;br /&gt;
===[[Friend_Services|Friends-sysmodule]]===&lt;br /&gt;
Like past updates the only change in this codebin was the fpdver(0x9-&amp;gt;0xA).&lt;br /&gt;
&lt;br /&gt;
===[[NS_and_APT_Services|NS-sysmodule]]===&lt;br /&gt;
The only changes for NS was version values in the codebin, nothing else.&lt;br /&gt;
&lt;br /&gt;
===[[Internet Browser]]===&lt;br /&gt;
The web-browser was updated, only for New3DS. See [[Internet Browser|here]] for details.&lt;br /&gt;
&lt;br /&gt;
===[[Nintendo_3DS_Sound]]===&lt;br /&gt;
soundhax was fixed, it appears other vulns were fixed too.&lt;br /&gt;
&lt;br /&gt;
Exactly 8 functions were changed in the codebin.&lt;br /&gt;
&lt;br /&gt;
  L_1d3ba8&lt;br /&gt;
  updated, prev ver @ L_1d3ba8.&lt;br /&gt;
  Added only the following code:&lt;br /&gt;
  if(len&amp;lt;2)return;&lt;br /&gt;
  if(len&amp;gt;=0xfe)len=0xfe;&lt;br /&gt;
  *lenstorage = len;&lt;br /&gt;
  &lt;br /&gt;
  L_1d3d10&lt;br /&gt;
  updated, prev ver @ L_1d3cfc.&lt;br /&gt;
  When L_1ea0b8 returns non-zero, this now clears the 4-bytes at inr1.&lt;br /&gt;
  &lt;br /&gt;
  L_1f32c4&lt;br /&gt;
  updated, prev ver @ L_1f329c.&lt;br /&gt;
  This now writes u32 val0 to inr0+0x34 immediately after the nop instruction.&lt;br /&gt;
  &lt;br /&gt;
  L_275754&lt;br /&gt;
  updated, prev ver @ L_27572c.&lt;br /&gt;
  This now executes the following each time L_1ea0b8 returns non-zero: sp20 = 0;&lt;br /&gt;
  &lt;br /&gt;
  L_275ed4&lt;br /&gt;
  updated, prev ver @ L_275e94.&lt;br /&gt;
  Added the following code after the branch for &amp;quot;if(*(inr1+8)==0)&amp;quot;:&lt;br /&gt;
  if(len&amp;gt;0xfe){len=0xfe;&amp;lt;jump over the code which checks len0&amp;gt;}&lt;br /&gt;
  Identical changes were added at 0x276054, except with len val 0x82.&lt;br /&gt;
  Likewise at 0x276138 except with len val 0x76.&lt;br /&gt;
  &lt;br /&gt;
  L_280000&lt;br /&gt;
  updated, prev ver @ L_27ff90.&lt;br /&gt;
  This was added at 0x280444: if(len&amp;gt;0xfe)len=0xfe;&lt;br /&gt;
  Minor(?) other changes.&lt;br /&gt;
  &lt;br /&gt;
  L_280c74&lt;br /&gt;
  updated, prev ver @ L_280b60.&lt;br /&gt;
  This now writes u32 val0 to inr0+0x34 immediately after the nop instruction.&lt;br /&gt;
  &lt;br /&gt;
  L_281ab0&lt;br /&gt;
  updated, prev ver @ L_281998.&lt;br /&gt;
  Added the following: if(len&amp;gt;=0xfe)len=0xfe;&lt;br /&gt;
  This was added at 0x281b94:&lt;br /&gt;
  if(somelen&amp;gt;=0xfe)&lt;br /&gt;
  {&lt;br /&gt;
  	len=0xfe;&lt;br /&gt;
  }&lt;br /&gt;
  else&lt;br /&gt;
  {&lt;br /&gt;
  	len=somelen;&lt;br /&gt;
  }&lt;br /&gt;
  *r4 = val;&lt;br /&gt;
  Then len is used for a string data-copy(ASCII/UTF16), unless it&#039;s UTF16 and len is &amp;lt;=0.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
System update report(s):&lt;br /&gt;
* [https://yls8.mtheall.com/ninupdates/reports.php?date=04-10-17_08-00-38&amp;amp;sys=ctr]&lt;br /&gt;
* [https://yls8.mtheall.com/ninupdates/reports.php?date=04-10-17_08-00-47&amp;amp;sys=ktr]&lt;/div&gt;</summary>
		<author><name>Yellows8</name></author>
	</entry>
	<entry>
		<id>https://www.3dbrew.org/w/index.php?title=Internet_Browser&amp;diff=19856</id>
		<title>Internet Browser</title>
		<link rel="alternate" type="text/html" href="https://www.3dbrew.org/w/index.php?title=Internet_Browser&amp;diff=19856"/>
		<updated>2017-04-11T16:13:48Z</updated>

		<summary type="html">&lt;p&gt;Yellows8: /* v11.4 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The 3DS Internet Browser was added in the June 2011 Update for JPN/EUR/USA.&lt;br /&gt;
&lt;br /&gt;
From the Internet Browser help section:&lt;br /&gt;
In compliance with the LGPL, the source code of the OSS is available via the Nintendo website.&lt;br /&gt;
This source code can be downloaded here:&lt;br /&gt;
[http://mediacontent.nintendo-europe.com/NOE/images/service/OpenSources.zip] [http://www.nintendo.co.jp/support/oss/index.html]&lt;br /&gt;
&lt;br /&gt;
The 3DS Internet Browser is [http://en.wikipedia.org/wiki/Netfront Netfront] Browser NX v1.0 based on [http://en.wikipedia.org/wiki/WebKit WebKit] engine.&lt;br /&gt;
&lt;br /&gt;
On O3DS the exheader name of this title is &amp;quot;SPIDER&amp;quot;; on N3DS, &amp;quot;SKATER&amp;quot;.&lt;br /&gt;
The only difference between the ExeFS .code for each region of the Old3DS/New3DS browser, is byte values for the title uniqueID/region.&lt;br /&gt;
&lt;br /&gt;
A [[#v9.9_dummy_web-browser|&amp;quot;dummy&amp;quot; browser]] (which replaces the actual browser) is being included with cartdrige games shipping with system updates starting with [[9.9.0-26|9.9.0-X]]. &lt;br /&gt;
In addition, versions of the real browser since 9.9.0-26X attempt to [[#Forced_system-update|check-in with a Nintendo server]] to determine if the existing browser version is out of date.&lt;br /&gt;
&lt;br /&gt;
==[[New 3DS]] Internet Browser==&lt;br /&gt;
New3DS has a separate browser title, with the exheader name &amp;quot;SKATER&amp;quot;.&lt;br /&gt;
Unlike the Old3DS browser, the New3DS browser has videos+HTML5 support. &lt;br /&gt;
&lt;br /&gt;
This browser also has a filter enabled by default in the JPN version. &lt;br /&gt;
Disabling it requires paying money with a credit-card, for [[NIM_Services|purchasing]] web-browser [[Title_list/DLC|DLC]].&lt;br /&gt;
During startup the browser does various HTTPS comms. When visting an URL, the browser sends a plaintext HTTP POST here: [http://ars.ifuser.jp:20080/ars2/rating]. The raw POST data begins with &amp;quot;ARS/2.0\r\n\x00&amp;quot;, the rest appears to be encrypted. The server reply content also has this ARS header + encrypted data. This appears to use a fixed xorpad, likely from a fixed encryption CTR/IV. The server content responses for allowed sites, and blocked sites, are fixed. When the server returns that the site is blocked, the browser goes to this page: [http://ars.ifuser.jp/filter/44.html](the Referrer header value is set to the same URL it&#039;s actually requesting).&lt;br /&gt;
&lt;br /&gt;
The WebKit source was updated since the Old3DS browser.&lt;br /&gt;
The New3DS browser uses the following services: [[MVD_Services|mvd:STD]] and [[IR_Services|ir:rst]](DLC-related services are used too but those aren&#039;t New3DS specific).&lt;br /&gt;
Video decoding is done with [[MVD_Services|mvd:STD]]. Audio decoding/playback is done with a browser-specific DSP binary. The Old3DS browser used CSND for audio playback, the New3DS browser doesn&#039;t have access to that at all since it uses DSP instead.&lt;br /&gt;
&lt;br /&gt;
=== Video / libstagefright ===&lt;br /&gt;
The browser manual includes licenses for Android and PacketVideo. The browser uses libstagefright from Android. Just like WebKit, the browser appears to use a very old version of libstagefright with security/other changes back-ported(for example, the v10.7 browser libstagefright codebase seems to be older than [https://android.googlesource.com/platform/frameworks/av/+/ec77122351b4e78c1fe5b60a208f76baf8c67591%5E%21/media/libstagefright/MPEG4Extractor.cpp this]). This codebase is missing certain chunk-parsing code for 3GP.&lt;br /&gt;
&lt;br /&gt;
HTTP for libstagefright is internally handled with [[HTTP_Services|HTTPC]], with a similar(?) set of RootCAs as for browser-version-check.&lt;br /&gt;
&lt;br /&gt;
===User-Agent and Browser Versions===&lt;br /&gt;
Normal user-agent format: &amp;lt;code style=&amp;quot;font-size:larger;&amp;quot;&amp;gt;Mozilla/5.0 (New Nintendo 3DS like iPhone) AppleWebKit/&amp;lt;WebKit version&amp;gt; (KHTML, like Gecko) NX/&amp;lt;Netfront version&amp;gt; Mobile NintendoBrowser/&amp;lt;Mobile NintendoBrowser version&amp;gt;.&amp;lt;region&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;region&amp;gt; can be one of the following: &amp;quot;JP&amp;quot;, &amp;quot;US&amp;quot;, or &amp;quot;EU&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Mobile User-Agent is always &amp;lt;code&amp;gt;Mozilla/5.0 (iPhone; CPU iPhone OS 6_0 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) Version/6.0 Mobile/10A403 Safari/8536.25&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Mobile NintendoBrowser version(displayed in browser settings)&lt;br /&gt;
! Normal UA&lt;br /&gt;
! CDN Title-version&lt;br /&gt;
! Network-only system-update version&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| 1.0.9934&lt;br /&gt;
| Mozilla/5.0 (New Nintendo 3DS like iPhone) AppleWebKit/536.30 (KHTML, like Gecko) NX/3.0.0.5.8 Mobile NintendoBrowser/1.0.9934.&amp;lt;region&amp;gt;&lt;br /&gt;
| v10&lt;br /&gt;
| [[9.0.0-20]]&lt;br /&gt;
| Initial version.&lt;br /&gt;
|-&lt;br /&gt;
| 1.1.9996&lt;br /&gt;
| Mozilla/5.0 (New Nintendo 3DS like iPhone) AppleWebKit/536.30 (KHTML, like Gecko) NX/3.0.0.5.10 Mobile NintendoBrowser/1.1.9996.&amp;lt;region&amp;gt;&lt;br /&gt;
| v1027&lt;br /&gt;
| [[9.3.0-21]]&lt;br /&gt;
| See below regarding OSS changes.&lt;br /&gt;
|-&lt;br /&gt;
| 1.2.10085&lt;br /&gt;
| Mozilla/5.0 (New Nintendo 3DS like iPhone) AppleWebKit/536.30 (KHTML, like Gecko) NX/3.0.0.5.13 Mobile NintendoBrowser/1.2.10085.&amp;lt;region&amp;gt;&lt;br /&gt;
| v2051&lt;br /&gt;
| [[9.6.0-24]]&lt;br /&gt;
| See below.&lt;br /&gt;
|-&lt;br /&gt;
| None&lt;br /&gt;
| None&lt;br /&gt;
| v3075&lt;br /&gt;
| v9.9 CUP&lt;br /&gt;
| v9.9 CUP dummy web-browser, see below.&lt;br /&gt;
|-&lt;br /&gt;
| 1.3.10126&lt;br /&gt;
| Mozilla/5.0 (New Nintendo 3DS like iPhone) AppleWebKit/536.30 (KHTML, like Gecko) NX/3.0.0.5.15 Mobile NintendoBrowser/1.3.10126.&amp;lt;region&amp;gt;&lt;br /&gt;
| v3077&lt;br /&gt;
| [[9.9.0-26]]&lt;br /&gt;
| See below.&lt;br /&gt;
|-&lt;br /&gt;
| 1.4.10138&lt;br /&gt;
| Mozilla/5.0 (New Nintendo 3DS like iPhone) AppleWebKit/536.30 (KHTML, like Gecko) NX/3.0.0.5.17 Mobile NintendoBrowser/1.4.10138.&amp;lt;region&amp;gt;&lt;br /&gt;
| v4096&lt;br /&gt;
| [[10.2.0-28]]&lt;br /&gt;
| See below.&lt;br /&gt;
|-&lt;br /&gt;
| 1.5.10143&lt;br /&gt;
| Mozilla/5.0 (New Nintendo 3DS like iPhone) AppleWebKit/536.30 (KHTML, like Gecko) NX/3.0.0.5.19 Mobile NintendoBrowser/1.5.10143.&amp;lt;region&amp;gt;&lt;br /&gt;
| v5121&lt;br /&gt;
| [[10.4.0-29]]&lt;br /&gt;
| See below.&lt;br /&gt;
|-&lt;br /&gt;
| 1.6.10147&lt;br /&gt;
| Mozilla/5.0 (New Nintendo 3DS like iPhone) AppleWebKit/536.30 (KHTML, like Gecko) NX/3.0.0.5.19 Mobile NintendoBrowser/1.6.10147.&amp;lt;region&amp;gt;&lt;br /&gt;
| v6144&lt;br /&gt;
| [[10.6.0-31]]&lt;br /&gt;
| See below.&lt;br /&gt;
|-&lt;br /&gt;
| None&lt;br /&gt;
| None&lt;br /&gt;
| v7168&lt;br /&gt;
| v10.7 CUP&lt;br /&gt;
| v10.7 CUP dummy web-browser, see below.&lt;br /&gt;
|-&lt;br /&gt;
| 1.7.10150&lt;br /&gt;
| Mozilla/5.0 (New Nintendo 3DS like iPhone) AppleWebKit/536.30 (KHTML, like Gecko) NX/3.0.0.5.19 Mobile NintendoBrowser/1.7.10150.&amp;lt;region&amp;gt;&lt;br /&gt;
| v7184&lt;br /&gt;
| [[10.7.0-32]]&lt;br /&gt;
| See below.&lt;br /&gt;
|-&lt;br /&gt;
| 1.8.10156&lt;br /&gt;
| Mozilla/5.0 (New Nintendo 3DS like iPhone) AppleWebKit/536.30 (KHTML, like Gecko) NX/3.0.0.5.20 Mobile NintendoBrowser/1.8.10156.&amp;lt;region&amp;gt;&lt;br /&gt;
| v8192&lt;br /&gt;
| [[11.1.0-34]]&lt;br /&gt;
| See below.&lt;br /&gt;
|-&lt;br /&gt;
| 1.9.10160&lt;br /&gt;
| Mozilla/5.0 (New Nintendo 3DS like iPhone) AppleWebKit/536.30 (KHTML, like Gecko) NX/3.0.0.5.20 Mobile NintendoBrowser/1.9.10160.&amp;lt;region&amp;gt;&lt;br /&gt;
| v9232&lt;br /&gt;
| [[11.4.0-37]]&lt;br /&gt;
| See below.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Note that the latest Old3DS browser WebKit version at the time the initial New3DS browser was released, was the following: 532.8.&lt;br /&gt;
&lt;br /&gt;
The first version of the KOR New3DS browser was v9.6(which was when the New3DS KOR titles were originally added). Each version of the KOR browser has the same NintendoBrowser version as the other regions. The KOR browser has been only updated when the browser for the other regions were updated, hence the title-versions are the same as well. The KOR browser ExeFS .code is different from the other regions(more than just region-related IDs etc).&lt;br /&gt;
&lt;br /&gt;
==== OSS 9.0 and 9.3 diff ====&lt;br /&gt;
The following is a diff of the OSS archives from [http://www.nintendo.co.jp/support/oss/index.html here], for v9.0 and v9.3.&lt;br /&gt;
&lt;br /&gt;
 Files NewNintendo3DS_OpenSources9.0.0-/WKC/WebCore/platform/network/WKC/ResourceHandleManagerWKC.cpp and NewNintendo3DS_OpenSources9.3.0-/WKC/WebCore/platform/network/WKC/ResourceHandleManagerWKC.cpp differ&lt;br /&gt;
 Files NewNintendo3DS_OpenSources9.0.0-/WKC/WebKit/WKC/webkit/WKCVersion.h and NewNintendo3DS_OpenSources9.3.0-/WKC/WebKit/WKC/webkit/WKCVersion.h differ&lt;br /&gt;
&lt;br /&gt;
WKC_CUSTOMER_RELEASE_VERSION was changed from &amp;quot;0.5.8&amp;quot; to &amp;quot;0.5.10&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
The following code was added to ResourceHandleManager::doRedirect(): curl_easy_setopt(d-&amp;gt;m_handle, CURLOPT_SHARE, 0);&lt;br /&gt;
&lt;br /&gt;
==== v9.6 ====&lt;br /&gt;
WebKit/OSS code was actually updated.&lt;br /&gt;
ExeFS .code was updated. The following files in RomFS were updated:&lt;br /&gt;
* &amp;quot;/banner/CN/Skater.icn&amp;quot; and &amp;quot;/banner/KR/Skater.icn&amp;quot;.&lt;br /&gt;
* &amp;quot;/browser/rootca.pem&amp;quot;&lt;br /&gt;
* &amp;quot;/build/buildinfo.dat&amp;quot;&lt;br /&gt;
* &amp;quot;/cairo.cro.lex&amp;quot; and &amp;quot;/.crr/static.crr&amp;quot;&lt;br /&gt;
* &amp;quot;/lyt/Button/ButtonSelectHSearch.arc&amp;quot;&lt;br /&gt;
* &amp;quot;/lyt/Kbd/Swkbd.arc&amp;quot;&lt;br /&gt;
* &amp;quot;lyt/Kbd.arc&amp;quot;&lt;br /&gt;
* &amp;quot;skater.msbt&amp;quot; under all of the &amp;quot;/message/&amp;lt;region&amp;gt;_&amp;lt;language&amp;gt;/&amp;quot; directories.&lt;br /&gt;
* &amp;quot;/oss.cro.lex&amp;quot;, &amp;quot;/peer.cro.lex&amp;quot;, &amp;quot;/static.crs&amp;quot;, and &amp;quot;/webkit.cro.lex&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
The following was added to RomFS:&lt;br /&gt;
* &amp;quot;/favicon/naver.dat&amp;quot;&lt;br /&gt;
* A &amp;quot;KO&amp;quot; directory under &amp;quot;/iwnn&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
==== v9.9 ====&lt;br /&gt;
ExeFS:/.code was updated.&lt;br /&gt;
&lt;br /&gt;
The only RomFS changes is file-updating, all of the following files were updated:&lt;br /&gt;
 /browser/rootca.pem&lt;br /&gt;
 /build/buildinfo.dat&lt;br /&gt;
 /cairo.cro.lex&lt;br /&gt;
 /.crr/static.crr&lt;br /&gt;
 /message/CN_Simp_Chinese/skater.msbt&lt;br /&gt;
 /message/EU_Dutch/skater.msbt&lt;br /&gt;
 /message/EU_English/skater.msbt&lt;br /&gt;
 /message/EU_French/skater.msbt&lt;br /&gt;
 /message/EU_German/skater.msbt&lt;br /&gt;
 /message/EU_Italian/skater.msbt&lt;br /&gt;
 /message/EU_Portuguese/skater.msbt&lt;br /&gt;
 /message/EU_Russian/skater.msbt&lt;br /&gt;
 /message/EU_Spanish/skater.msbt&lt;br /&gt;
 /message/JP_Japanese/skater.msbt&lt;br /&gt;
 /message/KR_Hangeul/skater.msbt&lt;br /&gt;
 /message/TW_English/skater.msbt&lt;br /&gt;
 /message/TW_Trad_Chinese/skater.msbt&lt;br /&gt;
 /message/US_English/skater.msbt&lt;br /&gt;
 /message/US_French/skater.msbt&lt;br /&gt;
 /message/US_Portuguese/skater.msbt&lt;br /&gt;
 /message/US_Spanish/skater.msbt&lt;br /&gt;
 /oss.cro.lex&lt;br /&gt;
 /peer.cro.lex&lt;br /&gt;
 /static.crs&lt;br /&gt;
 /webkit.cro.lex&lt;br /&gt;
&lt;br /&gt;
See [https://gist.github.com/yellows8/9fb509fde4112339f342 here] for a diff of the OSS(WebKitLibraries/ is not included due to the massive cairo library diff). An exploitable security vuln(which was already known in the context of 3DS webkit) was fixed. [[User:Yellows8|Yellows8]]&#039; private(at the time of writing) exploit for it is based on the PoC from [http://pastebin.com/ufBCQKda here](see the pastebin for the actual pastebin author).&lt;br /&gt;
&lt;br /&gt;
==== v10.2 ====&lt;br /&gt;
The libstagefright build in the main SKATER codebin was updated to a version which fixed libstagefright vuln(s): the vuln used in [[browserhax|browserhax_fright]] at the time of sysupdate release was fixed. The *only* code changed in the main codebin, was code related to libstagefright.&lt;br /&gt;
&lt;br /&gt;
The only RomFS changes is file-updating, all of the following files were updated(see the forced-sysupdate section regarding what changed in the message files):&lt;br /&gt;
 /browser/rootca.pem&lt;br /&gt;
 /build/buildinfo.dat&lt;br /&gt;
 /.crr/static.crr&lt;br /&gt;
 /message/CN_Simp_Chinese/skater.msbt&lt;br /&gt;
 /message/EU_Dutch/skater.msbt&lt;br /&gt;
 /message/EU_English/skater.msbt&lt;br /&gt;
 /message/EU_French/skater.msbt&lt;br /&gt;
 /message/EU_German/skater.msbt&lt;br /&gt;
 /message/EU_Italian/skater.msbt&lt;br /&gt;
 /message/EU_Portuguese/skater.msbt&lt;br /&gt;
 /message/EU_Russian/skater.msbt&lt;br /&gt;
 /message/EU_Spanish/skater.msbt&lt;br /&gt;
 /message/JP_Japanese/skater.msbt&lt;br /&gt;
 /message/KR_Hangeul/skater.msbt&lt;br /&gt;
 /message/TW_English/skater.msbt&lt;br /&gt;
 /message/TW_Trad_Chinese/skater.msbt&lt;br /&gt;
 /message/US_English/skater.msbt&lt;br /&gt;
 /message/US_French/skater.msbt&lt;br /&gt;
 /message/US_Portuguese/skater.msbt&lt;br /&gt;
 /message/US_Spanish/skater.msbt&lt;br /&gt;
 /oss.cro.lex&lt;br /&gt;
 /static.crs&lt;br /&gt;
 /webkit.cro.lex&lt;br /&gt;
&lt;br /&gt;
OSS diff:&lt;br /&gt;
 diff --git a/NewNintendo3DS_OpenSources9.9.0-/WKC/WebKit/WKC/webkit/WKCVersion.h b/NewNintendo3DS_OpenSources10.2.0-/WKC/WebKit/WKC/webkit/WKCVersion.h&lt;br /&gt;
 index 4543297..0860336 100644&lt;br /&gt;
 --- a/NewNintendo3DS_OpenSources9.9.0-/WKC/WebKit/WKC/webkit/WKCVersion.h&lt;br /&gt;
 +++ b/NewNintendo3DS_OpenSources10.2.0-/WKC/WebKit/WKC/webkit/WKCVersion.h&lt;br /&gt;
 @@ -29,7 +29,7 @@&lt;br /&gt;
  #define WKC_VERSION_CHECK(major, minor, micro) \&lt;br /&gt;
      (((major)*10000) + ((minor)*100) + (micro)) &amp;gt;= ((WKC_VERSION_MAJOR*10000) + (WKC_VERSION_MINOR*100) + (WKC_VERSION_MICRO))&lt;br /&gt;
  &lt;br /&gt;
 -#define WKC_CUSTOMER_RELEASE_VERSION &amp;quot;0.5.15&amp;quot;&lt;br /&gt;
 +#define WKC_CUSTOMER_RELEASE_VERSION &amp;quot;0.5.17&amp;quot;&lt;br /&gt;
  &lt;br /&gt;
  #define WKC_WEBKIT_VERSION &amp;quot;536.30&amp;quot;&lt;br /&gt;
  &lt;br /&gt;
 diff --git a/NewNintendo3DS_OpenSources9.9.0-/webkit/WebCore/ChangeLog b/NewNintendo3DS_OpenSources10.2.0-/webkit/WebCore/ChangeLog&lt;br /&gt;
 index a5abb35..cf5a9fa 100644&lt;br /&gt;
 --- a/NewNintendo3DS_OpenSources9.9.0-/webkit/WebCore/ChangeLog&lt;br /&gt;
 +++ b/NewNintendo3DS_OpenSources10.2.0-/webkit/WebCore/ChangeLog&lt;br /&gt;
 @@ -1,3 +1,12 @@&lt;br /&gt;
 +2013-11-05  Ryosuke Niwa  &amp;lt;rniwa@webkit.org&amp;gt;&lt;br /&gt;
 +&lt;br /&gt;
 +        Use-after-free in SliderThumbElement::dragFrom&lt;br /&gt;
 +        https://bugs.webkit.org/show_bug.cgi?id=123873&lt;br /&gt;
 +&lt;br /&gt;
 +        Reviewed by Andreas Kling.&lt;br /&gt;
 +&lt;br /&gt;
 +        Merge https://chromium.googlesource.com/chromium/blink/+/04a23bfca2d04101a1828d36ff36c29f3a24f34b&lt;br /&gt;
 +&lt;br /&gt;
  2015-02-06  Maciej Stachowiak  &amp;lt;mjs@apple.com&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
          REGRESSION(r179706): Caused memory corruption on some tests (Requested by _ap_ on #webkit).&lt;br /&gt;
 @@ -879,7 +888,7 @@&lt;br /&gt;
          * rendering/RenderLineBoxList.cpp:&lt;br /&gt;
          (WebCore::RenderLineBoxList::dirtyLinesFromChangedChild):&lt;br /&gt;
  &lt;br /&gt;
 -2014-01-21  LÃ¡szlÃ³ LangÃ³  &amp;lt;llango.u-szeged@partner.samsung.com&amp;gt;&lt;br /&gt;
 +2014-01-21  Laszlo Lango  &amp;lt;llango.u-szeged@partner.samsung.com&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
          Assertion failure in Range::nodeWillBeRemoved&lt;br /&gt;
          https://bugs.webkit.org/show_bug.cgi?id=121694&lt;br /&gt;
 @@ -1879,7 +1888,7 @@&lt;br /&gt;
  &lt;br /&gt;
  2012-09-14  Simon Fraser  &amp;lt;simon.fraser@apple.com&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
 -        REGRESSION: transition doesnât always override transition-property&lt;br /&gt;
 +        REGRESSION: transition doesnft always override transition-property&lt;br /&gt;
          https://bugs.webkit.org/show_bug.cgi?id=96658&lt;br /&gt;
  &lt;br /&gt;
          Reviewed by Dean Jackson.&lt;br /&gt;
 @@ -3691,8 +3700,8 @@&lt;br /&gt;
              glyph with font data for the primary font, presumably to meet the SVG&lt;br /&gt;
              spec requirement: &amp;quot;If the references to alternate glyphs do not result&lt;br /&gt;
              in successful identification of alternate glyphs to use, then the&lt;br /&gt;
 -            character(s) that are inside of the çª¶åltGlyphçª¶?element are rendered as&lt;br /&gt;
 -            if the çª¶åltGlyphçª¶?element were a çª¶?spançª¶?element instead.&amp;quot;&lt;br /&gt;
 +            character(s) that are inside of the âaltGlyphâ?element are rendered as&lt;br /&gt;
 +            if the âaltGlyphâ?element were a â?spanâ?element instead.&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
              If the alt glyph is not then found we are in the case from the spec&lt;br /&gt;
              and indeed we should use the primary font. However, we end up replacing the GlyphPage&lt;br /&gt;
 diff --git a/NewNintendo3DS_OpenSources9.9.0-/webkit/WebCore/html/RangeInputType.cpp b/NewNintendo3DS_OpenSources10.2.0-/webkit/WebCore/html/RangeInputType.cpp&lt;br /&gt;
 index 484adec..d7e9e8d 100644&lt;br /&gt;
 --- a/NewNintendo3DS_OpenSources9.9.0-/webkit/WebCore/html/RangeInputType.cpp&lt;br /&gt;
 +++ b/NewNintendo3DS_OpenSources10.2.0-/webkit/WebCore/html/RangeInputType.cpp&lt;br /&gt;
 @@ -164,7 +164,7 @@ void RangeInputType::handleMouseDownEvent(MouseEvent* event)&lt;br /&gt;
      ASSERT(element()-&amp;gt;hasShadowRoot());&lt;br /&gt;
      if (targetNode != element() &amp;amp;&amp;amp; !targetNode-&amp;gt;isDescendantOf(element()-&amp;gt;shadowTree()-&amp;gt;oldestShadowRoot()))&lt;br /&gt;
          return;&lt;br /&gt;
 -    SliderThumbElement* thumb = sliderThumbElementOf(element());&lt;br /&gt;
 +    RefPtr&amp;lt;SliderThumbElement&amp;gt; thumb = sliderThumbElementOf(element());&lt;br /&gt;
      if (targetNode == thumb)&lt;br /&gt;
          return;&lt;br /&gt;
      thumb-&amp;gt;dragFrom(event-&amp;gt;absoluteLocation());&lt;br /&gt;
&lt;br /&gt;
==== v10.4 ====&lt;br /&gt;
The ExeFS codebin was updated, the only change was that the following code was updated in the actual NupCheck HTTPS request function:&lt;br /&gt;
* Previous version: sprintf(out, &amp;quot;https://cbvc.cdn.nintendo.net/SNAKE/2/%s&amp;quot;, region);&lt;br /&gt;
* Current  version: sprintf(out, &amp;quot;https://cbvc.cdn.nintendo.net/SNAKE/%d/%s&amp;quot;, 3, region);&lt;br /&gt;
&lt;br /&gt;
libpng was updated from version 1.5.21 to 1.5.24.&lt;br /&gt;
&lt;br /&gt;
The following RomFS files were updated(see the forced-sysupdate section regarding what changed in the message files):&lt;br /&gt;
 /browser/rootca.pem&lt;br /&gt;
 /build/buildinfo.dat&lt;br /&gt;
 /cairo.cro.lex&lt;br /&gt;
 /.crr/static.crr&lt;br /&gt;
 /message/CN_Simp_Chinese/skater.msbt&lt;br /&gt;
 /message/EU_Dutch/skater.msbt&lt;br /&gt;
 /message/EU_English/skater.msbt&lt;br /&gt;
 /message/EU_French/skater.msbt&lt;br /&gt;
 /message/EU_German/skater.msbt&lt;br /&gt;
 /message/EU_Italian/skater.msbt&lt;br /&gt;
 /message/EU_Portuguese/skater.msbt&lt;br /&gt;
 /message/EU_Russian/skater.msbt&lt;br /&gt;
 /message/EU_Spanish/skater.msbt&lt;br /&gt;
 /message/JP_Japanese/skater.msbt&lt;br /&gt;
 /message/KR_Hangeul/skater.msbt&lt;br /&gt;
 /message/TW_English/skater.msbt&lt;br /&gt;
 /message/TW_Trad_Chinese/skater.msbt&lt;br /&gt;
 /message/US_English/skater.msbt&lt;br /&gt;
 /message/US_French/skater.msbt&lt;br /&gt;
 /message/US_Portuguese/skater.msbt&lt;br /&gt;
 /message/US_Spanish/skater.msbt&lt;br /&gt;
 /oss.cro.lex differ&lt;br /&gt;
 /peer.cro.lex differ&lt;br /&gt;
 /static.crs differ&lt;br /&gt;
 /webkit.cro.lex differ&lt;br /&gt;
&lt;br /&gt;
==== v10.6 ====&lt;br /&gt;
The ExeFS codebin was updated.&lt;br /&gt;
&lt;br /&gt;
[[browserhax|browserhax_fright_tx3g]] was fixed. The code handling tx3g now matches the latest libstagefright git.&lt;br /&gt;
&lt;br /&gt;
Hence the below RomFS listing, no OSS was updated at all(besides libstagefright mentioned above).&lt;br /&gt;
&lt;br /&gt;
The following RomFS files were updated:&lt;br /&gt;
 /build/buildinfo.dat&lt;br /&gt;
 /static.crs&lt;br /&gt;
&lt;br /&gt;
==== v10.7 ====&lt;br /&gt;
Basically the same changes as Old3DS v10.7, except with the usual buildinfo.dat update in RomFS. The below date is 6 days after the browser-version-check [[3DS_Userland_Flaws|bypass]] was publicly disclosed.&lt;br /&gt;
&lt;br /&gt;
 cat v7184/00000025_romfs/build/buildinfo.dat&lt;br /&gt;
 10150&lt;br /&gt;
 applet&lt;br /&gt;
 2016-03-02 18:25&lt;br /&gt;
&lt;br /&gt;
==== v11.1 ====&lt;br /&gt;
The ExeFS codebin was updated. The following files in RomFS were updated:&lt;br /&gt;
&lt;br /&gt;
  /build/buildinfo.dat&lt;br /&gt;
  /.crr/static.crr&lt;br /&gt;
  /oss.cro.lex&lt;br /&gt;
  /static.crs&lt;br /&gt;
  /webkit.cro.lex&lt;br /&gt;
&lt;br /&gt;
  cat v8192/00000026_romfs/build/buildinfo.dat&lt;br /&gt;
  10156&lt;br /&gt;
  applet&lt;br /&gt;
  2016-08-26 19:47&lt;br /&gt;
&lt;br /&gt;
Minus the 4 functions that changed due to compiler optimization, only 1 function was actually updated. This is LT_1a4004, previous version at LT_1a4004: libstagefright status_t MPEG4Extractor::parseChunk(off64_t *offset, int depth)&lt;br /&gt;
&lt;br /&gt;
Additional code was added which doesn&#039;t seem to be from upstream git, right [https://android.googlesource.com/platform/frameworks/av/+/32d6e5f0ebe9e00f80401e5f4fd6e285a474590d/media/libstagefright/MPEG4Extractor.cpp#880 before] the cprt code block: &amp;quot;if((*offset + chunk_size) - data_offset &amp;lt; 0)fail&amp;quot;&lt;br /&gt;
&lt;br /&gt;
This fixed skater31hax + any other mp4 haxx which requires using a negative 64bit chunk_size value.&lt;br /&gt;
&lt;br /&gt;
The filepath base used in the assert strings were changed from &amp;quot;d:\Jenkins\workspace\MPSkaterBuild\MVPlayer\Skater\Base\Android\frameworks\base\media\libstagefright\&amp;quot; to &amp;quot;d:\jenkins\workspace\MPSkaterBuild-Git\Base\Android\frameworks\base\media\libstagefright\&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
==== v11.4 ====&lt;br /&gt;
The only changes in RomFS was for &amp;quot;/build/buildinfo.dat&amp;quot; and &amp;quot;/static.crs&amp;quot;, hence no OSS in CRO(s) were updated.&lt;br /&gt;
&lt;br /&gt;
The main codebin was updated. Exactly two functions were updated, these are not related to code exec vulns.&lt;br /&gt;
&lt;br /&gt;
  cat v9232/00000027_romfs/build/buildinfo.dat&lt;br /&gt;
  10160&lt;br /&gt;
  applet&lt;br /&gt;
  2017-03-08 19:44&lt;br /&gt;
&lt;br /&gt;
=== New3DS Browser Specifications ===&lt;br /&gt;
[http://www.nintendo.co.jp/3ds/new/features/modal_net.html]&lt;br /&gt;
&lt;br /&gt;
English version:&lt;br /&gt;
* &amp;quot;Browser engine: NetFront® Browser NX v3.0&amp;quot;&lt;br /&gt;
* &amp;quot;User agent: Mozilla/5.0 (New Nintendo 3DS like iPhone) AppleWebKit/536.30 (KHTML and like Gecko) NX/3.0.*.*.* Mobile NintendoBrowser/1.0.**** JP&lt;br /&gt;
* ** Version information is stated.&lt;br /&gt;
* *** When using the “Mobile version request” function, it differs from the above-mentioned character string&amp;quot;&lt;br /&gt;
* &amp;quot;Supported protocols: HTTP1.0/HTTP1.1/SSL3.0/TLS1.0/TLS1.1/TLS1.2&amp;quot;&lt;br /&gt;
* &amp;quot;Web standard: HTML4.01 / HTML5 / XHTML1.1 / Fullscreen API / Gamepad API / SVG / WebSocket / Video Subtitle / WOFF / Web Messaging / Server-Sent / Web Storage (partial) / XMLHttpRequest / Canvas element / Video / DOM Levels 1-3 / ECMAScript / CSS1 / CSS2.1 / CSS3 (partial)&amp;quot;&lt;br /&gt;
* &amp;quot;Image format: bmp / ​​gif / ico / jpeg / png / svg (There are, however, possibilities that some images won&#039;t display.)&amp;quot;&lt;br /&gt;
* &amp;quot;Image preview: mpo / jpeg (There are, however, possibilities that some images won&#039;t display.)&amp;quot;&lt;br /&gt;
* &amp;quot;Video format: MP4, M3U8 + TS (HTTPLiveStreaming) (There are, however, some videos that may not be played.)&amp;quot;&lt;br /&gt;
* &amp;quot;Video codec: H.264 - MPEG-4 AVC Video (max 854x480 at level 3.2, 3D compatible) (There are, however, some videos that can not be played.)&amp;quot;&lt;br /&gt;
* &amp;quot;Audio codec: AAC - ISO / IEC 14496-3 MPEG-4AAC, MP3 (There are, however, some videos that can not be played.)&amp;quot;&lt;br /&gt;
* &amp;quot;Format for uploading 3D videos: .mkv (In order to be played, videos must be converted to the appropriate format within the site you are uploading to. In some cases, the video will not play even if converted.)&amp;quot;&lt;br /&gt;
* &amp;quot;Plug-ins: Plug-ins such as Adobe Flash are not supported&amp;quot;&lt;br /&gt;
* &amp;quot;Active Rating System filtering: provided by Digital Arts, Inc.. Access to web content can be limited based on its category information, restricting access to web content that may result inappropriate.&amp;quot;&lt;br /&gt;
* &amp;quot;Websites can be requested to provide the mobile version (However, if the web page does not have a mobile version, it won&#039;t change the way it&#039;s displayed.)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
MJPEG + .avi is also supported.&lt;br /&gt;
&lt;br /&gt;
==== Notes ====&lt;br /&gt;
* The html &amp;quot;color&amp;quot; &amp;lt;input&amp;gt; type is not supported.&lt;br /&gt;
&lt;br /&gt;
== Old3DS browser ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Old3DS Browser Specifications ===&lt;br /&gt;
* &amp;quot;Browser engine: NetFront® Browser&amp;quot;&lt;br /&gt;
* &amp;quot;User agent: Mozilla/5.0 (Nintendo 3DS; region; ; en) Version/1.7498.US&amp;quot;&lt;br /&gt;
* &amp;quot;Supported protocols: HTTP1.0/HTTP1.1/SSLv3/TLS1.0&amp;quot;&lt;br /&gt;
* &amp;quot;Web standard: HTML 4.01/XHTML 1.1/CSS 1/CSS 2.1/CSS 3 (partial functionality)/DOM Levels 1-3/ECMAScript/XMLHttpRequest/Canvas Element (partial functionality)&amp;quot;&lt;br /&gt;
* &amp;quot;Image format: MPO / GIF / JPEG / PNG / BMP / ICO (some images cannot be displayed)&amp;quot;&lt;br /&gt;
* &amp;quot;Plug-ins: Plug-ins such as Adobe Flash are not supported&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Old3DS browser doesn&#039;t support events &amp;quot;focusin&amp;quot; and &amp;quot;focusout&amp;quot;&lt;br /&gt;
&lt;br /&gt;
=== User-Agent and Browser Versions ===&lt;br /&gt;
User-agent format: &amp;lt;code style=&amp;quot;font-size:larger;&amp;quot;&amp;gt;Mozilla/5.0 (Nintendo 3DS; U; ; &amp;lt;lang&amp;gt;) Version/&amp;lt;version&amp;gt;.&amp;lt;region&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;lang&amp;gt; is &amp;quot;en&amp;quot;, &amp;quot;fr&amp;quot;, etc. &amp;lt;region&amp;gt; is &amp;quot;US&amp;quot;, &amp;quot;EU&amp;quot;, etc. See below for &amp;lt;version&amp;gt;.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Browser version&lt;br /&gt;
! CDN Title-version&lt;br /&gt;
! Network-only system-update version&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| 1.7412&lt;br /&gt;
| v6&lt;br /&gt;
| [[2.0.0-2|2.0.0-2]]&lt;br /&gt;
| This was the initial version.&lt;br /&gt;
|-&lt;br /&gt;
| 1.7455&lt;br /&gt;
| v1024&lt;br /&gt;
| [[2.1.0-4]]&lt;br /&gt;
| ExeFS .code was updated, both of the CROs(webkit/OSS) were updated too.&lt;br /&gt;
|-&lt;br /&gt;
| 1.7498&lt;br /&gt;
| v2050&lt;br /&gt;
| [[4.0.0-7]]&lt;br /&gt;
| ExeFS .code was updated, both of the CROs(webkit/OSS) were updated too. The manual CFA was updated as well.&lt;br /&gt;
|-&lt;br /&gt;
| 1.7538&lt;br /&gt;
| v0&lt;br /&gt;
| [[4.2.0-9]]&lt;br /&gt;
| First version of the KOR browser. The CROs are different from the  USA/EUR/JPN [[4.0.0-7]] browser.&lt;br /&gt;
|-&lt;br /&gt;
| 1.7552&lt;br /&gt;
| v3075&lt;br /&gt;
| [[5.0.0-11]]&lt;br /&gt;
| ExeFS .code and icon were updated, both of the CROs(webkit/OSS) were updated too. The manual CFA was updated as well.&lt;br /&gt;
|-&lt;br /&gt;
| 1.7552&lt;br /&gt;
| v3088&lt;br /&gt;
| [[7.0.0-13]]&lt;br /&gt;
| The main NCCH wasn&#039;t updated at all(same TMD contentID/content-hash as the previous version), only the manual CFA for this title was updated.&lt;br /&gt;
|-&lt;br /&gt;
| 1.7567&lt;br /&gt;
| v4096&lt;br /&gt;
| [[7.1.0-16]]&lt;br /&gt;
| The CXI .code was updated, some data in the RomFS was updated(none of the CROs such as webkit.cro were updated). The manual CFA was updated too.&lt;br /&gt;
|-&lt;br /&gt;
| 1.7585&lt;br /&gt;
| v5121&lt;br /&gt;
| [[9.5.0-23]]&lt;br /&gt;
| The CXI .code was updated, and the manual CFA was updated. RomFS changes:&lt;br /&gt;
* &amp;quot;/browser/rootca.pem&amp;quot; updated&lt;br /&gt;
* &amp;quot;/cro/oss.cro&amp;quot; updated&lt;br /&gt;
* &amp;quot;/cro/static.crs&amp;quot; updated&lt;br /&gt;
* &amp;quot;/cro/webkit.cro&amp;quot; updated&lt;br /&gt;
* &amp;quot;/.crr/static.crr&amp;quot; updated&lt;br /&gt;
* &amp;quot;/layout/dialogheader/WirelessSwitchOff.arc&amp;quot; was removed&lt;br /&gt;
* &amp;quot;/layout/favorite/favicondata/KOR.arc&amp;quot; updated&lt;br /&gt;
&lt;br /&gt;
A vuln used in a public(at the time of this sysupdate) webkit exploit for spider was fixed, which also fixed the removewinframe exploit from [https://github.com/yellows8/3ds_webkithax here].&lt;br /&gt;
|-&lt;br /&gt;
| None&lt;br /&gt;
| v6147&lt;br /&gt;
| v9.9 CUP&lt;br /&gt;
| v9.9 CUP dummy web-browser, see below.&lt;br /&gt;
|-&lt;br /&gt;
| 1.7610&lt;br /&gt;
| v6149&lt;br /&gt;
| [[9.9.0-26]]&lt;br /&gt;
| See below.&lt;br /&gt;
|-&lt;br /&gt;
| 1.7616&lt;br /&gt;
| v7168&lt;br /&gt;
| [[10.2.0-28]]&lt;br /&gt;
| See below.&lt;br /&gt;
|-&lt;br /&gt;
| 1.7622&lt;br /&gt;
| v8192&lt;br /&gt;
| [[10.6.0-31]]&lt;br /&gt;
| See below.&lt;br /&gt;
|-&lt;br /&gt;
| None&lt;br /&gt;
| v9216&lt;br /&gt;
| v10.7 CUP&lt;br /&gt;
| v10.7 CUP dummy web-browser, see below.&lt;br /&gt;
|-&lt;br /&gt;
| 1.7625&lt;br /&gt;
| v9232&lt;br /&gt;
| [[10.7.0-32]]&lt;br /&gt;
| See below.&lt;br /&gt;
|-&lt;br /&gt;
| 1.7630&lt;br /&gt;
| v10240&lt;br /&gt;
| [[11.1.0-34]]&lt;br /&gt;
| See below.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Heap ===&lt;br /&gt;
The USA/EUR/JPN + KOR browser allocates the 0x08000000 heap with size 0x01A97000. The size used by the CHN and TWN browser is 0x01997000, exactly 0x100000-bytes smaller.&lt;br /&gt;
&lt;br /&gt;
=== Old3DS v9.9 ===&lt;br /&gt;
ExeFS:/.code was updated.&lt;br /&gt;
&lt;br /&gt;
The only changes in RomFS were file-updating, the following files were updated:&lt;br /&gt;
 /browser/rootca.pem&lt;br /&gt;
 /cro/oss.cro&lt;br /&gt;
 /cro/static.crs&lt;br /&gt;
 /cro/webkit.cro&lt;br /&gt;
 /.crr/static.crr&lt;br /&gt;
 /message/CN_Simp_Chinese/spider.msbt&lt;br /&gt;
 /message/EU_Dutch/spider.msbt&lt;br /&gt;
 /message/EU_English/spider.msbt&lt;br /&gt;
 /message/EU_French/spider.msbt&lt;br /&gt;
 /message/EU_German/spider.msbt&lt;br /&gt;
 /message/EU_Italian/spider.msbt&lt;br /&gt;
 /message/EU_Portuguese/spider.msbt&lt;br /&gt;
 /message/EU_Russian/spider.msbt&lt;br /&gt;
 /message/EU_Spanish/spider.msbt&lt;br /&gt;
 /message/JP_Japanese/spider.msbt&lt;br /&gt;
 /message/KR_Hangeul/spider.msbt&lt;br /&gt;
 /message/TW_English/spider.msbt&lt;br /&gt;
 /message/TW_Trad_Chinese/spider.msbt&lt;br /&gt;
 /message/US_English/spider.msbt&lt;br /&gt;
 /message/US_French/spider.msbt&lt;br /&gt;
 /message/US_Portuguese/spider.msbt&lt;br /&gt;
 /message/US_Spanish/spider.msbt&lt;br /&gt;
&lt;br /&gt;
OSS diff for v9.5 and v9.9, without the .dox changes:&lt;br /&gt;
&lt;br /&gt;
 diff --git a/3DS_InternetBrowser_OpenSources_JP_US_EU_KR_TW_HK_CN_9.5.0(23J_23U_23E_19K_18T_3C)/WKC/WebKit/WKC/webkit/WKCVersion.h b/3DS_InternetBrowser_OpenSources_JP_US_EU_KR_TW_HK_CN_9.9.0/WKC/WebKit/WKC/webkit/WKCVersion.h&lt;br /&gt;
 index be5ff09..55a7274 100644&lt;br /&gt;
 --- a/3DS_InternetBrowser_OpenSources_JP_US_EU_KR_TW_HK_CN_9.5.0(23J_23U_23E_19K_18T_3C)/WKC/WebKit/WKC/webkit/WKCVersion.h&lt;br /&gt;
 +++ b/3DS_InternetBrowser_OpenSources_JP_US_EU_KR_TW_HK_CN_9.9.0/WKC/WebKit/WKC/webkit/WKCVersion.h&lt;br /&gt;
 @@ -29,7 +29,7 @@&lt;br /&gt;
  #define WKC_VERSION_CHECK(major, minor, micro) \&lt;br /&gt;
      (((major)*10000) + ((minor)*100) + (micro)) &amp;gt;= ((WKC_VERSION_MAJOR*10000) + (WKC_VERSION_MINOR*100) + (WKC_VERSION_MICRO))&lt;br /&gt;
  &lt;br /&gt;
 -#define WKC_CUSTOMER_RELEASE_VERSION &amp;quot;1.8.14&amp;quot;&lt;br /&gt;
 +#define WKC_CUSTOMER_RELEASE_VERSION &amp;quot;1.8.16&amp;quot;&lt;br /&gt;
  &lt;br /&gt;
  #define WKC_WEBKIT_VERSION &amp;quot;532.7&amp;quot;&lt;br /&gt;
  &lt;br /&gt;
 diff --git a/3DS_InternetBrowser_OpenSources_JP_US_EU_KR_TW_HK_CN_9.5.0(23J_23U_23E_19K_18T_3C)/webkit/WebCore/rendering/RenderBox.cpp b/3DS_InternetBrowser_OpenSources_JP_US_EU_KR_TW_HK_CN_9.9.0/webkit/WebCore/rendering/RenderBox.cpp&lt;br /&gt;
 index da4127e..d03403e 100644&lt;br /&gt;
 --- a/3DS_InternetBrowser_OpenSources_JP_US_EU_KR_TW_HK_CN_9.5.0(23J_23U_23E_19K_18T_3C)/webkit/WebCore/rendering/RenderBox.cpp&lt;br /&gt;
 +++ b/3DS_InternetBrowser_OpenSources_JP_US_EU_KR_TW_HK_CN_9.9.0/webkit/WebCore/rendering/RenderBox.cpp&lt;br /&gt;
 @@ -305,23 +305,23 @@ int RenderBox::scrollHeight() const&lt;br /&gt;
  &lt;br /&gt;
  int RenderBox::scrollLeft() const&lt;br /&gt;
  {&lt;br /&gt;
 -    return hasOverflowClip() ? layer()-&amp;gt;scrollXOffset() : 0;&lt;br /&gt;
 +    return layer() &amp;amp;&amp;amp; hasOverflowClip() ? layer()-&amp;gt;scrollXOffset() : 0;&lt;br /&gt;
  }&lt;br /&gt;
  &lt;br /&gt;
  int RenderBox::scrollTop() const&lt;br /&gt;
  {&lt;br /&gt;
 -    return hasOverflowClip() ? layer()-&amp;gt;scrollYOffset() : 0;&lt;br /&gt;
 +    return layer() &amp;amp;&amp;amp; hasOverflowClip() ? layer()-&amp;gt;scrollYOffset() : 0;&lt;br /&gt;
  }&lt;br /&gt;
 &lt;br /&gt;
  void RenderBox::setScrollLeft(int newLeft)&lt;br /&gt;
  {&lt;br /&gt;
 -    if (hasOverflowClip())&lt;br /&gt;
 +    if (hasOverflowClip() &amp;amp;&amp;amp; layer())&lt;br /&gt;
          layer()-&amp;gt;scrollToXOffset(newLeft);&lt;br /&gt;
  }&lt;br /&gt;
  &lt;br /&gt;
  void RenderBox::setScrollTop(int newTop)&lt;br /&gt;
  {&lt;br /&gt;
 -    if (hasOverflowClip())&lt;br /&gt;
 +    if (hasOverflowClip() &amp;amp;&amp;amp; layer())&lt;br /&gt;
          layer()-&amp;gt;scrollToYOffset(newTop);&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
=== Old3DS v10.2 ===&lt;br /&gt;
The slider vuln from [https://github.com/yellows8/3ds_webkithax here] was fixed in the Old3DS browser.&lt;br /&gt;
&lt;br /&gt;
The main codebin .text only increased by 0x10-bytes.&lt;br /&gt;
&lt;br /&gt;
The only changes in RomFS was that the following files were updated:&lt;br /&gt;
 /cro/oss.cro&lt;br /&gt;
 /cro/static.crs&lt;br /&gt;
 /cro/webkit.cro&lt;br /&gt;
 /.crr/static.crr&lt;br /&gt;
&lt;br /&gt;
OSS diff:&lt;br /&gt;
 diff --git a/3DS_InternetBrowser_OpenSources_JP_US_EU_KR_TW_HK_CN_9.9.0/WKC/WebKit/WKC/webkit/WKCVersion.h b/3DS_InternetBrowser_OpenSources_JP_US_EU_KR_TW_HK_CN_10.2.0/WKC/WebKit/WKC/webkit/WKCVersion.h&lt;br /&gt;
 index 55a7274..fc153c4 100644&lt;br /&gt;
 --- a/3DS_InternetBrowser_OpenSources_JP_US_EU_KR_TW_HK_CN_9.9.0/WKC/WebKit/WKC/webkit/WKCVersion.h&lt;br /&gt;
 +++ b/3DS_InternetBrowser_OpenSources_JP_US_EU_KR_TW_HK_CN_10.2.0/WKC/WebKit/WKC/webkit/WKCVersion.h&lt;br /&gt;
 @@ -29,7 +29,7 @@&lt;br /&gt;
  #define WKC_VERSION_CHECK(major, minor, micro) \&lt;br /&gt;
      (((major)*10000) + ((minor)*100) + (micro)) &amp;gt;= ((WKC_VERSION_MAJOR*10000) + (WKC_VERSION_MINOR*100) + (WKC_VERSION_MICRO))&lt;br /&gt;
  &lt;br /&gt;
 -#define WKC_CUSTOMER_RELEASE_VERSION &amp;quot;1.8.16&amp;quot;&lt;br /&gt;
 +#define WKC_CUSTOMER_RELEASE_VERSION &amp;quot;1.8.17&amp;quot;&lt;br /&gt;
  &lt;br /&gt;
  #define WKC_WEBKIT_VERSION &amp;quot;532.7&amp;quot;&lt;br /&gt;
  &lt;br /&gt;
 diff --git a/3DS_InternetBrowser_OpenSources_JP_US_EU_KR_TW_HK_CN_9.9.0/webkit/WebCore/rendering/RenderSlider.cpp b/3DS_InternetBrowser_OpenSources_JP_US_EU_KR_TW_HK_CN_10.2.0/webkit/WebCore/rendering/RenderSlider.cpp&lt;br /&gt;
 index b2f5cef..1dd3dbd 100644&lt;br /&gt;
 --- a/3DS_InternetBrowser_OpenSources_JP_US_EU_KR_TW_HK_CN_9.9.0/webkit/WebCore/rendering/RenderSlider.cpp&lt;br /&gt;
 +++ b/3DS_InternetBrowser_OpenSources_JP_US_EU_KR_TW_HK_CN_10.2.0/webkit/WebCore/rendering/RenderSlider.cpp&lt;br /&gt;
 @@ -221,6 +221,7 @@ RenderSlider::~RenderSlider()&lt;br /&gt;
  {&lt;br /&gt;
      if (m_thumb)&lt;br /&gt;
          m_thumb-&amp;gt;detach();&lt;br /&gt;
 +    m_thumb = 0;&lt;br /&gt;
  }&lt;br /&gt;
  &lt;br /&gt;
  int RenderSlider::baselinePosition(bool, bool) const&lt;br /&gt;
 @@ -493,7 +494,8 @@ void RenderSlider::forwardEvent(Event* event)&lt;br /&gt;
          }&lt;br /&gt;
      }&lt;br /&gt;
  &lt;br /&gt;
 -    m_thumb-&amp;gt;defaultEventHandler(event);&lt;br /&gt;
 +    if (m_thumb)&lt;br /&gt;
 +        m_thumb-&amp;gt;defaultEventHandler(event);&lt;br /&gt;
  }&lt;br /&gt;
  &lt;br /&gt;
  bool RenderSlider::inDragMode() const&lt;br /&gt;
&lt;br /&gt;
=== Old3DS v10.6 ===&lt;br /&gt;
[[browserhax|spider28hax]] was fixed. The &amp;quot;2^32 characters long string&amp;quot; vuln described [[3DS_Userland_Flaws|here]] was &#039;&#039;finally&#039;&#039; fixed.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;A lot&#039;&#039; of WebKit issues/vulns were fixed, see [https://gist.github.com/yellows8/b1e10caa1d8bb8a46316 here] for the changes.&lt;br /&gt;
&lt;br /&gt;
libpng was updated from version 1.4.12 to 1.4.19. zlib was updated from 1.2.7 to 1.2.8.&lt;br /&gt;
&lt;br /&gt;
The .text size increased by 0x478-bytes.&lt;br /&gt;
&lt;br /&gt;
The only changes in RomFS was that the following files were updated:&lt;br /&gt;
 /cro/oss.cro&lt;br /&gt;
 /cro/static.crs&lt;br /&gt;
 /cro/webkit.cro&lt;br /&gt;
 /.crr/static.crr&lt;br /&gt;
 /manual/Manual.bcma&lt;br /&gt;
&lt;br /&gt;
=== Old3DS v10.7 ===&lt;br /&gt;
&#039;&#039;Nothing&#039;&#039; changed except some words for version-values in .text being updated(RomFS wasn&#039;t changed), code for browser-version-check was [[#v10.7_2|updated]].&lt;br /&gt;
&lt;br /&gt;
=== Old3DS v11.1 ===&lt;br /&gt;
Nothing changed in the ExeFS codebin besides the usual version values. The following files in RomFS were updated:&lt;br /&gt;
  /cro/oss.cro&lt;br /&gt;
  /cro/webkit.cro&lt;br /&gt;
  /.crr/static.crr&lt;br /&gt;
&lt;br /&gt;
== Forced system-update ==&lt;br /&gt;
The Old3DS/New3DS Internet Browser updated with [[9.9.0-26]] added the following message strings:&lt;br /&gt;
 In order to use the Internet &lt;br /&gt;
 browser, a system update &lt;br /&gt;
 is required.&lt;br /&gt;
 To perform a system update, &lt;br /&gt;
 select System Update from Other&lt;br /&gt;
 Settings in System Settings.&lt;br /&gt;
&lt;br /&gt;
 The Internet browser cannot be&lt;br /&gt;
 used at this time.&lt;br /&gt;
 Please check your network&lt;br /&gt;
 environment or try again later.&lt;br /&gt;
&lt;br /&gt;
For whatever reason, the above &#039;&#039;message strings&#039;&#039; were removed with New3DS-browser v10.2, then re-added with v10.4. This does not apply to the Old3DS browser. Whenever v10.2 New3DS browser tries to use these message-strings for displaying a browser-update-related message, it will crash due to an assert failing since the message-strings are missing. Hence, if/when the v10.2 update-check page is ever updated where the browser tries to display a message for it, or when accessing that page fails, the browser will automatically crash.&lt;br /&gt;
&lt;br /&gt;
This wasn&#039;t enforced(web-browser displaying the above message when the installed browser isn&#039;t the latest version) until October 26, 2015.&lt;br /&gt;
&lt;br /&gt;
This message only triggers when attempting to load a web-page. This is only handled the first time the browser accesses a web-page, during this browser session.&lt;br /&gt;
&lt;br /&gt;
The browser codebins starting with v9.9 now contain the following URL strings:&lt;br /&gt;
* Old3DS: &amp;lt;nowiki&amp;gt;&amp;quot;https://cbvc.cdn.nintendo.net/CTR/1/&amp;lt;region&amp;gt;&amp;quot;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
* New3DS: &amp;lt;nowiki&amp;gt;&amp;quot;https://cbvc.cdn.nintendo.net/SNAKE/1/&amp;lt;region&amp;gt;&amp;quot;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;region&amp;gt; string is one of the following:&lt;br /&gt;
* &amp;quot;JPN&amp;quot;&lt;br /&gt;
* &amp;quot;USA&amp;quot;&lt;br /&gt;
* &amp;quot;EUR&amp;quot;&lt;br /&gt;
* &amp;quot;KOR&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Starting with the browser from [[10.2.0-28]], the &amp;quot;1&amp;quot; in the above URLs were changed to &amp;quot;2&amp;quot;. With the New3DS browser from [[10.4.0-29]], it&#039;s now &amp;quot;3&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
As of October 26, 2015, the &amp;quot;1&amp;quot; URLs return the browser-version for v9.9(decimal number as a string without any &amp;quot;.&amp;quot;), while the &amp;quot;2&amp;quot; URLs returns 0.&lt;br /&gt;
&lt;br /&gt;
 if(internal_browserver &amp;gt; server_browserver)&lt;br /&gt;
 {&lt;br /&gt;
     &amp;lt;safe&amp;gt;&lt;br /&gt;
 }&lt;br /&gt;
 else&lt;br /&gt;
 {&lt;br /&gt;
     &amp;lt;update message&amp;gt;&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
Hence, internal_browserver == server_browserver will trigger the sysupdate message, which appears to be the normal way to indicate that the current browser is outdated(see above).&lt;br /&gt;
&lt;br /&gt;
There is a cache for this in savedata. The request is only done when at least 24-hours have passed since the last time the request was done(see the below savedata section).&lt;br /&gt;
&lt;br /&gt;
It is still possible to guard against this update by blocking the previous URLs using a proxy. &lt;br /&gt;
It is not possible to remove the update message by entering the [[Recovery Mode]].&lt;br /&gt;
&lt;br /&gt;
=== Page request ===&lt;br /&gt;
For this request, all root-CAs bundled with the browser are trusted, in addition to two of the SSL module builtin Nintendo root-CAs.&lt;br /&gt;
&lt;br /&gt;
The browser(with New3DS at least) does the following with [[HTTP_Services|HTTPC]] for requesting the above page:&lt;br /&gt;
* Initializes the HTTP context and uses [[HTTPC:InitializeConnectionSession]] + [[HTTPC:SetProxyDefault]].&lt;br /&gt;
* Uses [[HTTP_Services|HTTPC]] command 0x250080 twice with cmd[1]=contexthandle: first time cmd[2]=0x3, second time cmd[2]=0x6.&lt;br /&gt;
* Then [[HTTPC:AddTrustedRootCA]] is used 48 times to setup 48 trusted root CAs. This appears to be every cert in the browser &amp;quot;romfs:/browser/rootca.pem&amp;quot; file converted to DER, in the same order from there(in other words, every single root CA the browser trusts by default for normal web-browsing).&lt;br /&gt;
* Then [[HTTPC:BeginRequest]] is used.&lt;br /&gt;
* Then [[HTTPC:ReceiveDataTimeout]] is used, the recv-size seems to be fixed to 0x20.&lt;br /&gt;
* Then [[HTTPC:GetResponseStatusCodeTimeout]] is used.&lt;br /&gt;
* Then [[HTTPC:GetDownloadSizeState]] is used.&lt;br /&gt;
* Then the HTTP context is closed.&lt;br /&gt;
&lt;br /&gt;
Raw request data(New3DS USA v10.2 browser):&lt;br /&gt;
 000000: 47 45 54 20 2f 53 4e 41 4b 45 2f 32 2f 55 53 41  GET /SNAKE/2/USA&lt;br /&gt;
 000010: 20 48 54 54 50 2f 31 2e 31 0d 0a 48 6f 73 74 3a   HTTP/1.1..Host:&lt;br /&gt;
 000020: 20 63 62 76 63 2e 63 64 6e 2e 6e 69 6e 74 65 6e   cbvc.cdn.ninten&lt;br /&gt;
 000030: 64 6f 2e 6e 65 74 0d 0a 0d 0a                    do.net....&lt;br /&gt;
&lt;br /&gt;
=== v10.7 ===&lt;br /&gt;
The only actual code change with Old3DS/New3DS browser v10.7 was that the code which calculates the diff_timestamp was moved to immediately after the block which initializes &amp;lt;state_timestamp&amp;gt; when &amp;lt;state_timestamp&amp;gt; is all-zero. This fixed the browser-version-check [[3DS_Userland_Flaws|bypass]].&lt;br /&gt;
&lt;br /&gt;
== v9.9+/v10.7+ dummy web-browser ==&lt;br /&gt;
Gamecards v9.9 and above include, with their sysupdate, a dummy Old3DS/New3DS web-browser. The *only* thing this title does is display the same message listed in the above forced-update section. The message files in RomFS *only* contain that message string above. There are no &amp;quot;http&amp;quot; strings in the main codebin, and [[RO_Services|RO]] isn&#039;t used either(no CRO data in RomFS at all). Both browsers are internally called &amp;quot;dummySpider&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Hence, if you update your system below v9.8 with any v9.9 or above gamecard, the system web-browser will be rendered *completely* useless until you install a system-update from CDN(no network requests involved here).&lt;br /&gt;
&lt;br /&gt;
Gamecards v10.7 and above include an updated dummy web-browser, where the only difference is the title version.&lt;br /&gt;
&lt;br /&gt;
== Savedata ==&lt;br /&gt;
=== New3DS ===&lt;br /&gt;
On newer SKATER versions, it appears *all* NAND savedata is stored under the [[System_SaveData|0x000200BB]] savedata.&lt;br /&gt;
&lt;br /&gt;
==== 0x000200BB savedata ====&lt;br /&gt;
This only contains &amp;quot;t.bin&amp;quot; with filesize 0xadf80, the format is below.&lt;br /&gt;
&lt;br /&gt;
The timestamp format used here is the number of milliseconds since January 1, 2000(local-time).&lt;br /&gt;
&lt;br /&gt;
When using the &amp;quot;Initialize savedata&amp;quot; option in the browser, that deletes this savedata file/image then exits the browser. This file is then re-created when the browser gets started again.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Offset&lt;br /&gt;
! Size&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| 0x68&lt;br /&gt;
| 0x4?&lt;br /&gt;
| This counter is incremented each time the savedata is written.&lt;br /&gt;
|-&lt;br /&gt;
| 0x70&lt;br /&gt;
| 0x8&lt;br /&gt;
| Timestamp for when the savedata was last written.&lt;br /&gt;
|-&lt;br /&gt;
| 0x94&lt;br /&gt;
| 0x15?&lt;br /&gt;
| This is all-zeros on non-JPN systems. On JPN systems where the browser filter is disabled, this is a string in the following format: &amp;quot;4110-%016llX&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
| 0xD8&lt;br /&gt;
| 0x8&lt;br /&gt;
| s64 timestamp, can be either a normal positive timestamp or a relative negative one. Used with the forced-update described above. When an update is detected this timestamp is negative, otherwise this is a normal positive timestamp(it&#039;s unknown how exactly this timestamp is checked). When positive, this seems to be the last time the forced-update HTTPS request was done where no update was needed.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==APT Parameters==&lt;br /&gt;
The URL to load can optionally be loaded from char[] string [[APT:SendParameter|paramblk+0]]. This is used when scanning URL QR-codes in Home Menu / etc.&lt;br /&gt;
&lt;br /&gt;
==Errors==&lt;br /&gt;
&amp;quot;Failed to load part of this page&amp;quot;: This can be caused by failing to load &amp;quot;/favicon.ico&amp;quot;. For example, this can be caused by loading a plain HTTP page, with plain-http favicon redirecting to HTTPS. If cert-verify then fails with favicon in this case, this error would then trigger.&lt;br /&gt;
&lt;br /&gt;
==Other details==&lt;br /&gt;
&lt;br /&gt;
*It scored 90/100 on [http://acid3.acidtests.org/ Acid3] test&lt;br /&gt;
*Images from the Internet can be saved to the [[SD Filesystem|SD Card]] and viewed using the [[Nintendo 3DS Camera]] application.&lt;br /&gt;
*Images saved to an [[SD Filesystem|SD Card]] or to the Nintendo 3DS system memory can be uploaded to blogs or other sites that allow the uploading of photos using :&lt;br /&gt;
 &amp;lt;input type=&amp;quot;file&amp;quot; /&amp;gt;&lt;br /&gt;
* HTML5Test.com say that Drag and drop is supported but it&#039;s not (code on WebKit is ready, but it&#039;s not implemented on interface of browser)&lt;br /&gt;
&lt;br /&gt;
==Tips==&lt;br /&gt;
&lt;br /&gt;
=== Detect User Agent ===&lt;br /&gt;
&lt;br /&gt;
To detect if the user agent is Nintendo 3DS Browser :&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;script type=&amp;quot;text/javascript&amp;quot;&amp;gt;&lt;br /&gt;
     if (navigator.userAgent.indexOf(&#039;Nintendo 3DS&#039;) == -1) { //If the UserAgent is not &amp;quot;Nintendo 3DS&amp;quot;&lt;br /&gt;
         location.replace(&#039;http://www.3dbrew.org&#039;); //Redirect to an other page&lt;br /&gt;
     }&lt;br /&gt;
 &amp;lt;/script&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* You can check &amp;lt;em&amp;gt;navigator.platform==&amp;quot;Nintendo 3DS&amp;quot;&amp;lt;/em&amp;gt; as well.&lt;br /&gt;
&lt;br /&gt;
=== Scrolling ===&lt;br /&gt;
&lt;br /&gt;
Scrolling can be altered by modifying &amp;lt;em&amp;gt;document.body.scrollTop&amp;lt;/em&amp;gt; and &amp;lt;em&amp;gt;document.body.scrollLeft&amp;lt;/em&amp;gt;.  However, there are drawbacks related to working with these properties:&lt;br /&gt;
&lt;br /&gt;
* Both properties return 0 when accessed&lt;br /&gt;
* Setting one property resets the other property&#039;s scroll position&lt;br /&gt;
&lt;br /&gt;
In order to set both at the same time (without either resetting to 0), use &amp;lt;em&amp;gt;window.scrollTo&amp;lt;/em&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Events ===&lt;br /&gt;
==== Key Events ====&lt;br /&gt;
The following buttons trigger the &amp;lt;em&amp;gt;onkeydown&amp;lt;/em&amp;gt;, &amp;lt;em&amp;gt;onkeypress&amp;lt;/em&amp;gt; and &amp;lt;em&amp;gt;onkeyup&amp;lt;/em&amp;gt; events:&lt;br /&gt;
&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot; width=&amp;quot;20%&amp;quot;&lt;br /&gt;
! Code !! Button &lt;br /&gt;
|-&lt;br /&gt;
| 13 || A&lt;br /&gt;
|-&lt;br /&gt;
| 37 || Left&lt;br /&gt;
|-&lt;br /&gt;
| 38 || Up&lt;br /&gt;
|-&lt;br /&gt;
| 39 || Right&lt;br /&gt;
|-&lt;br /&gt;
| 40 || Down&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The events cannot have their default action cancelled.  Other buttons do not trigger key events.&lt;br /&gt;
&lt;br /&gt;
==== Touch/Mouse Events ====&lt;br /&gt;
&amp;lt;em&amp;gt;onmousedown&amp;lt;/em&amp;gt;, &amp;lt;em&amp;gt;onmouseup&amp;lt;/em&amp;gt; &amp;amp; &amp;lt;em&amp;gt;onclick&amp;lt;/em&amp;gt; are all triggered by the browser.  However, the &amp;lt;em&amp;gt;onmousedown&amp;lt;/em&amp;gt; event doesn&#039;t trigger until you lift the stylus or you&#039;ve held it on the screen for ~2 seconds—which is when text selection mode is activated—making it pretty much the same as &amp;lt;em&amp;gt;onmouseup&amp;lt;/em&amp;gt;.  The events cannot have their default action cancelled.&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;em&amp;gt;onmousemove&amp;lt;/em&amp;gt; and common touch/gesture events are not supported.&lt;br /&gt;
&lt;br /&gt;
== Screen Resolution ==&lt;br /&gt;
&lt;br /&gt;
The up screen resolution is 400×240. However, the viewable area in the browser is only &amp;lt;b&amp;gt;400×220&amp;lt;/b&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The touch screen resolution is 320×240. However, the viewable area in the browser is only &amp;lt;b&amp;gt;320×212&amp;lt;/b&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
You can have a page span both screens. However, the browser will behave as if the bottom screen is the only active screen and the top screen is scrolled off. This is important when computing CSS coordinates. Items positioned from &amp;quot;bottom&amp;quot; will be positioned based on 220px and not the full 432px of both screens.&lt;br /&gt;
&lt;br /&gt;
== Using Both Screens ==&lt;br /&gt;
&lt;br /&gt;
Generally the easiest way to accomplish the correct layout is to create HTML elements that &amp;quot;contain&amp;quot; the top and bottom screens. Here&#039;s an example:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;!DOCTYPE html&amp;gt;&lt;br /&gt;
 &amp;lt;html&amp;gt;&lt;br /&gt;
   &amp;lt;head&amp;gt;&lt;br /&gt;
     &amp;lt;meta name=&amp;quot;viewport&amp;quot; content=&amp;quot;width=400&amp;quot;&amp;gt;&lt;br /&gt;
     &amp;lt;style&amp;gt;&lt;br /&gt;
       body{margin:0px;}&lt;br /&gt;
       #topscreen{width:400px;height:220px;overflow:hidden;}&lt;br /&gt;
       #bottomscreen{width:320px;height:212px;overflow:hidden;margin:0 auto;}&lt;br /&gt;
     &amp;lt;/style&amp;gt;&lt;br /&gt;
   &amp;lt;/head&amp;gt;&lt;br /&gt;
   &amp;lt;body&amp;gt;&lt;br /&gt;
     &amp;amp;lt;div id=&amp;quot;topscreen&amp;quot;&amp;gt;Top Screen&amp;amp;lt;/div&amp;gt;&lt;br /&gt;
     &amp;amp;lt;div id=&amp;quot;bottomscreen&amp;quot;&amp;gt;Bottom Screen&amp;amp;lt;/div&amp;gt;&lt;br /&gt;
   &amp;lt;/body&amp;gt;&lt;br /&gt;
 &amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This scheme allows the page to be easily manipulated through JavaScript.  In order to have the window snap to the correct position, use the following JavaScript code:&lt;br /&gt;
&lt;br /&gt;
 window.setInterval(function () {&lt;br /&gt;
     window.scrollTo(40, 220);  &lt;br /&gt;
 }, 50);&lt;br /&gt;
&lt;br /&gt;
This automatically resets the position if the user accidentally scrolls the page.&lt;br /&gt;
&lt;br /&gt;
==Example Sites==&lt;br /&gt;
&amp;lt;!-- If you have a website that demonstrates these techniques, place it here! --&amp;gt;&lt;br /&gt;
* [http://www.nintendo.com/3ds/internetbrowser/bookmarks Nintendo 3DS Bookmarks] - This is the first bookmark pre-installed in the browser.&lt;br /&gt;
* [http://3ds.andysmith.co.uk/jFox.html jFox] (Short URL: http://bit.ly/iB7FqW)&lt;br /&gt;
* [http://ditto3d.com/3ds Ditto3D] (Short URL: http://bit.ly/oVreWA)&lt;/div&gt;</summary>
		<author><name>Yellows8</name></author>
	</entry>
	<entry>
		<id>https://www.3dbrew.org/w/index.php?title=11.4.0-37&amp;diff=19855</id>
		<title>11.4.0-37</title>
		<link rel="alternate" type="text/html" href="https://www.3dbrew.org/w/index.php?title=11.4.0-37&amp;diff=19855"/>
		<updated>2017-04-11T15:02:28Z</updated>

		<summary type="html">&lt;p&gt;Yellows8: /* System Titles */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The Old3DS+New3DS 11.4.0-37 system update was released on April 10, 2017. This Old3DS update was released for the following regions: USA, EUR, JPN, CHN, KOR, and TWN. This New3DS update was released for the following regions: USA, EUR, JPN, CHN, KOR, and TWN.&lt;br /&gt;
&lt;br /&gt;
Security flaws fixed: yes.&lt;br /&gt;
&lt;br /&gt;
==Change-log==&lt;br /&gt;
[http://en-americas-support.nintendo.com/app/answers/detail/a_id/667/p/430/c/267 Official] USA change-log:&lt;br /&gt;
* Further improvements to overall system stability and other minor adjustments have been made to enhance the user experience&lt;br /&gt;
&lt;br /&gt;
==System Titles==&lt;br /&gt;
===NATIVE_FIRM===&lt;br /&gt;
====Process9====&lt;br /&gt;
The global boolean preventing [[FIRM|SAFE_FIRM]] from being launched is now set in Process9&#039;s crt0 if [[CONFIG9_Registers#CFG9_BOOTENV|CFG9_BOOTENV]] has bit0 set, that is to say, if it has been launched from a firmlaunch (this register is set to 1 just before a firmlaunch). The following code has also been added in the firmlaunch function itself: &amp;lt;code&amp;gt;if(!(CFG9_BOOTENV &amp;amp; 1) /* not a firmlaunch */ || (CFG9_BOOTENV &amp;amp; 6) /* firmlaunched from LGY_FIRM (if even possible at all) */) goto panic&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
This is to fix [[3DS_System_Flaws#Process9|safehax]].&lt;br /&gt;
&lt;br /&gt;
====New3DS kernel9loader====&lt;br /&gt;
New3DS kernel9loader wasn&#039;t updated.&lt;br /&gt;
&lt;br /&gt;
====ARM11 kernel====&lt;br /&gt;
There are at least, and likely, three changes:&lt;br /&gt;
&lt;br /&gt;
* [[CONFIG11_Registers#CFG11_WIFIUNK|CFG11_WIFIUNK]] is now set to 0x10 in Kernel11&#039;s crt0&lt;br /&gt;
* A new SVC, [[SVC|svc 0x5A]] has been introduced, to enable or disable wifi&lt;br /&gt;
* The code handling [[SVC|svcArbitrateAddress]] with type = SIGNAL, has been changed. It now counts the actual number of threads arbitrating on that address, and if it is non-zero, it executes the following hack: &amp;lt;code&amp;gt;if(coreId == 0 &amp;amp;&amp;amp; currentThread-&amp;gt;dynamicPriority &amp;gt;= 50) waitCycles(0x64E)&amp;lt;/code&amp;gt;. This supposedly works around the lag issue in some games, which has been introduced on [[11.3.0-36]]&lt;br /&gt;
&lt;br /&gt;
===Modules===&lt;br /&gt;
No FIRM ARM11 sysmodule was changed.&lt;br /&gt;
&lt;br /&gt;
===[[NWM_Services|NWM-sysmodule]]===&lt;br /&gt;
The [[CONFIG11_Registers]] are no longer directly mapped under userland for NWM-sysmodule.&lt;br /&gt;
This prevents anything under NWM-module from modifying the GPUPROT register. This was used by both *hax payload(prior to v11.4 release) and [https://github.com/smealum/udsploit udsploit].&lt;br /&gt;
&lt;br /&gt;
The codebin was updated.&lt;br /&gt;
&lt;br /&gt;
The crt0-poke in PDN that NWM previously did:&lt;br /&gt;
  0x1EC4010C |= 0x10&lt;br /&gt;
&lt;br /&gt;
.. has been removed from NWM. This one has been moved into kernel bootup.&lt;br /&gt;
&lt;br /&gt;
All accesses to 0x1EC40180 have been replaced by a new syscall, [[SVC|0x5A]].&lt;br /&gt;
&lt;br /&gt;
This now includes code from old CTRSDK update(s). A new func was added for calling a func, previously that func was directly called via vtable funcptr. The only other changes was new heap code(and the code for using it basically), for fixing the NWMUDS sharedmem [[3DS_System_Flaws|vuln]]. This includes code which actually validates heap memchunkhdrs, with svcBreak being executed on failure.&lt;br /&gt;
&lt;br /&gt;
A new string was added at 0x13E200: &amp;quot;used&amp;quot;(with 3 0xFF bytes afterwards), this is used by the new heap code. The wifi-fw was moved from .data to .rodata.&lt;br /&gt;
&lt;br /&gt;
===[[HTTP_Services|HTTP-sysmodule]]===&lt;br /&gt;
There were exactly 3 changes in the HTTP-sysmodule codebin.&lt;br /&gt;
&lt;br /&gt;
Two functions, the memalloc and memfree functions used with HTTP sharedmem, were updated to use the new function. The new function is for heap memchunkhdr validation. This additional code is the same new heap code as NWM-sysmodule. This fixed the vuln used by ctr-httpwn at the time of sysupdate release.&lt;br /&gt;
&lt;br /&gt;
===[[Friend_Services|Friends-sysmodule]]===&lt;br /&gt;
Like past updates the only change in this codebin was the fpdver(0x9-&amp;gt;0xA).&lt;br /&gt;
&lt;br /&gt;
===[[NS_and_APT_Services|NS-sysmodule]]===&lt;br /&gt;
The only changes for NS was version values in the codebin, nothing else.&lt;br /&gt;
&lt;br /&gt;
===[[Internet Browser]]===&lt;br /&gt;
The web-browser was updated, only for New3DS. See [[Internet Browser|here]] for details.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
System update report(s):&lt;br /&gt;
* [https://yls8.mtheall.com/ninupdates/reports.php?date=04-10-17_08-00-38&amp;amp;sys=ctr]&lt;br /&gt;
* [https://yls8.mtheall.com/ninupdates/reports.php?date=04-10-17_08-00-47&amp;amp;sys=ktr]&lt;/div&gt;</summary>
		<author><name>Yellows8</name></author>
	</entry>
	<entry>
		<id>https://www.3dbrew.org/w/index.php?title=11.4.0-37&amp;diff=19854</id>
		<title>11.4.0-37</title>
		<link rel="alternate" type="text/html" href="https://www.3dbrew.org/w/index.php?title=11.4.0-37&amp;diff=19854"/>
		<updated>2017-04-11T14:56:42Z</updated>

		<summary type="html">&lt;p&gt;Yellows8: /* System Titles */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The Old3DS+New3DS 11.4.0-37 system update was released on April 10, 2017. This Old3DS update was released for the following regions: USA, EUR, JPN, CHN, KOR, and TWN. This New3DS update was released for the following regions: USA, EUR, JPN, CHN, KOR, and TWN.&lt;br /&gt;
&lt;br /&gt;
Security flaws fixed: yes.&lt;br /&gt;
&lt;br /&gt;
==Change-log==&lt;br /&gt;
[http://en-americas-support.nintendo.com/app/answers/detail/a_id/667/p/430/c/267 Official] USA change-log:&lt;br /&gt;
* Further improvements to overall system stability and other minor adjustments have been made to enhance the user experience&lt;br /&gt;
&lt;br /&gt;
==System Titles==&lt;br /&gt;
===NATIVE_FIRM===&lt;br /&gt;
====Process9====&lt;br /&gt;
The global boolean preventing [[FIRM|SAFE_FIRM]] from being launched is now set in Process9&#039;s crt0 if [[CONFIG9_Registers#CFG9_BOOTENV|CFG9_BOOTENV]] has bit0 set, that is to say, if it has been launched from a firmlaunch (this register is set to 1 just before a firmlaunch). The following code has also been added in the firmlaunch function itself: &amp;lt;code&amp;gt;if(!(CFG9_BOOTENV &amp;amp; 1) /* not a firmlaunch */ || (CFG9_BOOTENV &amp;amp; 6) /* firmlaunched from LGY_FIRM (if even possible at all) */) goto panic&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
This is to fix [[3DS_System_Flaws#Process9|safehax]].&lt;br /&gt;
&lt;br /&gt;
====New3DS kernel9loader====&lt;br /&gt;
New3DS kernel9loader wasn&#039;t updated.&lt;br /&gt;
&lt;br /&gt;
====ARM11 kernel====&lt;br /&gt;
There are at least, and likely, three changes:&lt;br /&gt;
&lt;br /&gt;
* [[CONFIG11_Registers#CFG11_WIFIUNK|CFG11_WIFIUNK]] is now set to 0x10 in Kernel11&#039;s crt0&lt;br /&gt;
* A new SVC, [[SVC|svc 0x5A]] has been introduced, to enable or disable wifi&lt;br /&gt;
* The code handling [[SVC|svcArbitrateAddress]] with type = SIGNAL, has been changed. It now counts the actual number of threads arbitrating on that address, and if it is non-zero, it executes the following hack: &amp;lt;code&amp;gt;if(coreId == 0 &amp;amp;&amp;amp; currentThread-&amp;gt;dynamicPriority &amp;gt;= 50) waitCycles(0x64E)&amp;lt;/code&amp;gt;. This supposedly works around the lag issue in some games, which has been introduced on [[11.3.0-36]]&lt;br /&gt;
&lt;br /&gt;
===Modules===&lt;br /&gt;
No FIRM ARM11 sysmodule was changed.&lt;br /&gt;
&lt;br /&gt;
===[[NWM_Services|NWM-sysmodule]]===&lt;br /&gt;
The [[CONFIG11_Registers]] are no longer directly mapped under userland for NWM-sysmodule.&lt;br /&gt;
This prevents anything under NWM-module from modifying the GPUPROT register. This was used by both *hax payload(prior to v11.4 release) and [https://github.com/smealum/udsploit udsploit].&lt;br /&gt;
&lt;br /&gt;
The codebin was updated.&lt;br /&gt;
&lt;br /&gt;
The crt0-poke in PDN that NWM previously did:&lt;br /&gt;
  0x1EC4010C |= 0x10&lt;br /&gt;
&lt;br /&gt;
.. has been removed from NWM. This one has been moved into kernel bootup.&lt;br /&gt;
&lt;br /&gt;
All accesses to 0x1EC40180 have been replaced by a new syscall, [[SVC|0x5A]].&lt;br /&gt;
&lt;br /&gt;
This now includes code from old CTRSDK update(s). A new func was added for calling a func, previously that func was directly called via vtable funcptr. The only other changes was new heap code(and the code for using it basically), for fixing the NWMUDS sharedmem [[3DS_System_Flaws|vuln]]. This includes code which actually validates heap memchunkhdrs, with svcBreak being executed on failure.&lt;br /&gt;
&lt;br /&gt;
A new string was added at 0x13E200: &amp;quot;used&amp;quot;(with 3 0xFF bytes afterwards), this is used by the new heap code. The wifi-fw was moved from .data to .rodata.&lt;br /&gt;
&lt;br /&gt;
===[[HTTP_Services|HTTP-sysmodule]]===&lt;br /&gt;
There were exactly 3 changes in the HTTP-sysmodule codebin.&lt;br /&gt;
&lt;br /&gt;
Two functions, the memalloc and memfree functions used with HTTP sharedmem, were updated to use the new function. The new function is for heap memchunkhdr validation. This additional code is the same new heap code as NWM-sysmodule. This fixed the vuln used by ctr-httpwn at the time of sysupdate release.&lt;br /&gt;
&lt;br /&gt;
===[[Friend_Services|Friends-sysmodule]]===&lt;br /&gt;
Like past updates the only change in this codebin was the fpdver(0x9-&amp;gt;0xA).&lt;br /&gt;
&lt;br /&gt;
===[[Internet Browser]]===&lt;br /&gt;
The web-browser was updated, only for New3DS. See [[Internet Browser|here]] for details.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
System update report(s):&lt;br /&gt;
* [https://yls8.mtheall.com/ninupdates/reports.php?date=04-10-17_08-00-38&amp;amp;sys=ctr]&lt;br /&gt;
* [https://yls8.mtheall.com/ninupdates/reports.php?date=04-10-17_08-00-47&amp;amp;sys=ktr]&lt;/div&gt;</summary>
		<author><name>Yellows8</name></author>
	</entry>
	<entry>
		<id>https://www.3dbrew.org/w/index.php?title=Homebrew_Exploits&amp;diff=19853</id>
		<title>Homebrew Exploits</title>
		<link rel="alternate" type="text/html" href="https://www.3dbrew.org/w/index.php?title=Homebrew_Exploits&amp;diff=19853"/>
		<updated>2017-04-11T14:49:20Z</updated>

		<summary type="html">&lt;p&gt;Yellows8: /* Secondary Exploits */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Payload==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Works on latest fw&lt;br /&gt;
!  Name&lt;br /&gt;
!  Description&lt;br /&gt;
!  Supported firmwares&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: lightgreen&amp;quot; | Yes&lt;br /&gt;
| [https://smealum.github.io/3ds/ *hax payload]&lt;br /&gt;
| Booted by all of the below non-sysmodule exploits.&lt;br /&gt;
| From &#039;&#039;&#039;9.0.0-7&#039;&#039;&#039; up to and including &#039;&#039;&#039;11.3.0-36&#039;&#039;&#039;.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
For the rest of this page, &amp;quot;Supported firmwares&amp;quot; refers to the exploit &#039;&#039;itself&#039;&#039;, not whether *hax payload supports it.&lt;br /&gt;
&lt;br /&gt;
==Standalone Homebrew Launcher Exploits==&lt;br /&gt;
The following homebrew exploits can be executed on a previously un-exploited system. &#039;&#039;Please&#039;&#039; see the above Payload section regarding what &amp;quot;Supported firmwares&amp;quot; indicates &#039;&#039;exactly&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Works on latest fw&lt;br /&gt;
!  Name&lt;br /&gt;
!  Supported firmwares&lt;br /&gt;
!  Requirements&lt;br /&gt;
!  Author&lt;br /&gt;
!  Install&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: salmon&amp;quot; | No&lt;br /&gt;
| [[ninjhax|Ninjhax 1.1b]]&lt;br /&gt;
| From &#039;&#039;&#039;4.0.0-7&#039;&#039;&#039; up to and including &#039;&#039;&#039;9.2.0-20&#039;&#039;&#039;.&lt;br /&gt;
| A cartridge or eShop version (JPN-only) of &amp;quot;Cubic Ninja&amp;quot;.&lt;br /&gt;
| smea&lt;br /&gt;
| [http://smealum.net/ninjhax/ Install]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: lightgreen&amp;quot; | Yes&lt;br /&gt;
| [[ninjhax|Ninjhax 2.x]]&lt;br /&gt;
| From &#039;&#039;&#039;9.0.0-7&#039;&#039;&#039; up to and including &#039;&#039;&#039;11.3.0-36&#039;&#039;&#039;.&lt;br /&gt;
|  A cartridge or eShop version (JPN-only, not available anymore for purchase) of &amp;quot;Cubic Ninja&amp;quot;.&lt;br /&gt;
| smea&lt;br /&gt;
| [https://smealum.github.io/ninjhax2/ Install]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: lightgreen&amp;quot; | Yes&lt;br /&gt;
| [http://plutooo.github.io/freakyhax/ freakyhax]&lt;br /&gt;
| From &#039;&#039;&#039;9.0.0-7&#039;&#039;&#039; up to and including &#039;&#039;&#039;11.3.0-36&#039;&#039;&#039;.&lt;br /&gt;
|  A cartridge or eShop version (USA/EUR/JAP, not available anymore for purchase) of &amp;quot;Freakyform Deluxe&amp;quot;.&lt;br /&gt;
| plutoo&lt;br /&gt;
| [http://plutooo.github.io/freakyhax/ Install]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: salmon&amp;quot; | No&lt;br /&gt;
| [http://plutooo.github.io/smilehax/ smilehax]&lt;br /&gt;
| From &#039;&#039;&#039;9.0.0-7&#039;&#039;&#039; up to and including &#039;&#039;&#039;11.0.0-33&#039;&#039;&#039;&lt;br /&gt;
| SmileBASIC (JPN all versions up to 3.32 excluded, USA 3.31 only)&lt;br /&gt;
| plutoo&lt;br /&gt;
| [http://plutooo.github.io/smilehax/ Install]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: salmon&amp;quot; | No&lt;br /&gt;
| [http://mrnbayoh.github.io/basicsploit/ BASICSploit]&lt;br /&gt;
| From &#039;&#039;&#039;9.0.0-7&#039;&#039;&#039; up to and including &#039;&#039;&#039;11.0.0-33&#039;&#039;&#039;&lt;br /&gt;
| SmileBASIC (USA all versions)&lt;br /&gt;
| MrNbaYoh&lt;br /&gt;
| [http://mrnbayoh.github.io/basicsploit/ Install]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: lightgreen&amp;quot; | Yes&lt;br /&gt;
| [[smashbroshax|smashbroshax]] (beaconhax)&lt;br /&gt;
| (New 3DS only) From &#039;&#039;&#039;9.0.0-X&#039;&#039;&#039; up to and including &#039;&#039;&#039;11.3.0-36&#039;&#039;&#039;.&lt;br /&gt;
| Super Smash Bros 3DS (full-game) and a way to broadcast raw wifi beacons. The demo (prior to the updated November 2015 [https://github.com/yellows8/3ds_smashbroshax version]) isn&#039;t usable with the *hax payloads. Game-version v1.1.3 fixed the vuln used with this, see the repo for a workaround for that.&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
| [https://github.com/yellows8/3ds_smashbroshax Install]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: salmon&amp;quot; | No&lt;br /&gt;
| [[browserhax]]&lt;br /&gt;
| From &#039;&#039;&#039;9.0.0-2&#039;&#039;&#039; to &#039;&#039;&#039;11.0.0-33&#039;&#039;&#039;&lt;br /&gt;
Note that the browser-version-check bypass is only usable prior to [[10.7.0-32]].&lt;br /&gt;
| A USA, EUR, JPN, or KOR system.&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
| [http://yls8.mtheall.com/3dsbrowserhax.php Install]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: salmon&amp;quot; | No&lt;br /&gt;
| [https://github.com/svanheulen/genhax genhax]&lt;br /&gt;
| (New 3DS only) From &#039;&#039;&#039;9.9.0-X&#039;&#039;&#039; up to and including &#039;&#039;&#039;11.2.0-X&#039;&#039;&#039;.&lt;br /&gt;
| A gamecard or eShop-install of Monster Hunter X (JPN only), and the DLC encryption key (see installer instructions). &#039;&#039;&#039;Note: the secondary exploit still works, see bellow&#039;&#039;&#039;&lt;br /&gt;
| svanheulen&lt;br /&gt;
| [https://github.com/svanheulen/genhax_installer Install]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: salmon&amp;quot; | No&lt;br /&gt;
| [https://github.com/nedwill/soundhax soundhax]&lt;br /&gt;
| From &#039;&#039;&#039;9.0.0-13&#039;&#039;&#039; up to and including &#039;&#039;&#039;11.3.0-36&#039;&#039;&#039;.&lt;br /&gt;
| A USA, EUR, JPN or KOR system.&lt;br /&gt;
| nedwill&lt;br /&gt;
| [http://soundhax.com Install]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: lightgreen&amp;quot; | Yes&lt;br /&gt;
| [https://github.com/MrNbaYoh/doodlebomb doodlebomb]&lt;br /&gt;
| From &#039;&#039;&#039;9.0.0-X&#039;&#039;&#039;(?) up to and including &#039;&#039;&#039;11.4.0-X&#039;&#039;&#039;.&lt;br /&gt;
| An eShop-install of Swapdoodle. A friend from the system friends-list to receive the exploit from online, see &amp;quot;Without the Homebrew Launcher&amp;quot; instructions.&lt;br /&gt;
| MrNbaYoh&lt;br /&gt;
| [https://mrnbayoh.github.io/doodlebomb/ Install]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Note that ninjhax 1.x is still not obsolete. Even though ninjhax 2.x can be run on 9.3+, this was made possible (amongst other things) by sacrificing the memory remapping exploit used in ninjhax 1.x (rohax). Therefore, things like JIT engines for emulators can only be supported on ninjhax 1.x. Furthermore, ninjhax 2.x does not run on system versions below 9.0.0-X, while ninjhax 1.x does.&lt;br /&gt;
&lt;br /&gt;
==Secondary Exploits==&lt;br /&gt;
Installation of these exploits requires a previously exploited system to install. After installation, they can be used on their own. &#039;&#039;Please&#039;&#039; see the above Payload section regarding what &amp;quot;Supported firmwares&amp;quot; indicates &#039;&#039;exactly&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
!  Works on latest fw&lt;br /&gt;
!  Name&lt;br /&gt;
!  Supported firmwares&lt;br /&gt;
!  Requirements&lt;br /&gt;
!  Author&lt;br /&gt;
!  Install&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: salmon&amp;quot; | No&lt;br /&gt;
| [[ironhax]]&lt;br /&gt;
| From &#039;&#039;&#039;9.5.0-X&#039;&#039;&#039; up to and including &#039;&#039;&#039;10.3.0-X&#039;&#039;&#039;, for &#039;&#039;&#039;X&#039;&#039;&#039; up to and including 28.&lt;br /&gt;
| A copy of &amp;quot;Ironfall: Invasion&amp;quot; downloaded from eShop before August 11th, 2015. Note the updated version that was released on October 13th, 2015 is not supported.&lt;br /&gt;
| smea&lt;br /&gt;
| [http://smealum.github.io/3ds/ Install]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: lightgreen&amp;quot; | Yes&lt;br /&gt;
| [http://vegaroxas.github.io/ steelhax]&lt;br /&gt;
| From &#039;&#039;&#039;9.0.0-X&#039;&#039;&#039; up to and including &#039;&#039;&#039;11.3.0-X&#039;&#039;&#039;, for &#039;&#039;&#039;X&#039;&#039;&#039; up to and including 36.&lt;br /&gt;
| A copy of Steel Diver: Sub Wars&lt;br /&gt;
| Vegaroxas&lt;br /&gt;
| [https://github.com/VegaRoXas/vegaroxas.github.io/raw/master/files/steelhax-installer.zip Install]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: lightgreen&amp;quot; | Yes&lt;br /&gt;
| [https://github.com/yellows8/oot3dhax oot3dhax]&lt;br /&gt;
| From &#039;&#039;&#039;9.0.0-X&#039;&#039;&#039; up to and including &#039;&#039;&#039;11.3.0-X&#039;&#039;&#039;, for &#039;&#039;&#039;X&#039;&#039;&#039; up to and including 36.&lt;br /&gt;
| A gamecard or eShop-install of Legend of Zelda: Ocarina of Time 3D. Besides using the installer app, writing raw saveimages with a save dongle for example is another option. Before compression was introduced in the 2016-7-18 release, the size of the *hax payload meant the exploit can&#039;t coexist with regular saves on a physical version of the game.&lt;br /&gt;
| Yellows8 / smea et al.&lt;br /&gt;
| See [https://smealum.github.io/3ds/ here].&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: salmon&amp;quot; | No&lt;br /&gt;
| [[menuhax]]&lt;br /&gt;
| JPN/USA/EUR: From &#039;&#039;&#039;9.0.0-X&#039;&#039;&#039; up to and including &#039;&#039;&#039;11.2.0-X&#039;&#039;&#039;.&lt;br /&gt;
KOR: From &#039;&#039;&#039;9.6.0-X&#039;&#039;&#039; up to and including &#039;&#039;&#039;11.2.0-X&#039;&#039;&#039;.&lt;br /&gt;
| JPN/USA/EUR: Having created [[Home_Menu#Home_Menu_Theme_SD_ExtData|theme extdata]] through opening the official theme selector at least once.&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
| [https://github.com/yellows8/3ds_homemenuhax/releases Download]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: lightgreen&amp;quot; | Yes&lt;br /&gt;
| [https://github.com/shinyquagsire23/supermysterychunkhax supermysterychunkhax]&lt;br /&gt;
| From &#039;&#039;&#039;9.9.0-X&#039;&#039;&#039; (USA/JPN) / &#039;&#039;&#039;10.2.0-X&#039;&#039;&#039; (EUR) up to and including &#039;&#039;&#039;11.1.0-X&#039;&#039;&#039;, for &#039;&#039;&#039;X&#039;&#039;&#039; up to and including 34.&lt;br /&gt;
| A gamecard or eShop-install of Pokémon Super Mystery Dungeon.&lt;br /&gt;
| Shiny Quagsire / SALT team&lt;br /&gt;
| [https://smd.salthax.org/ Install].&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: salmon&amp;quot; | No&lt;br /&gt;
| [https://github.com/shinyquagsire23/v_hax (v*)hax]&lt;br /&gt;
| From &#039;&#039;&#039;9.0.0-X&#039;&#039;&#039; up to and including &#039;&#039;&#039;11.0.0-X&#039;&#039;&#039;, for &#039;&#039;&#039;X&#039;&#039;&#039; up to and including 33.&lt;br /&gt;
Note that &#039;&#039;&#039;9.0.0-X&#039;&#039;&#039; is only required for the Homebrew Launcher - the game itself only requires &#039;&#039;&#039;2.1.0-X&#039;&#039;&#039; for primitive userland code execution.&lt;br /&gt;
| A copy of VVVVVV downloaded after March 2012 (v1). v1.1 patches out the overflow vulnerability used by (v*)hax.&lt;br /&gt;
| Shiny Quagsire / SALT team&lt;br /&gt;
| [https://vvvvvv.salthax.org/ Install].&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: lightgreen&amp;quot; | Yes&lt;br /&gt;
| [https://github.com/Dazzozo/humblehax humblehax]&lt;br /&gt;
| From &#039;&#039;&#039;9.0.0-X&#039;&#039;&#039; (USA/EUR) up to and including &#039;&#039;&#039;11.2.0-X&#039;&#039;&#039;, for &#039;&#039;&#039;X&#039;&#039;&#039; up to and including 35.&lt;br /&gt;
| An eShop-install of Citizens of Earth (either v1 or v2), featured in the Humble &amp;quot;Friends of Nintendo&amp;quot; Bundle.&lt;br /&gt;
| Dazzozo / SALT team&lt;br /&gt;
| [https://citizens.salthax.org/ Install].&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: salmon&amp;quot; | No&lt;br /&gt;
| [http://mrnbayoh.github.io/basehaxx/ basehaxx]&lt;br /&gt;
| From &#039;&#039;&#039;9.0.0-X&#039;&#039;&#039; up to and including &#039;&#039;&#039;11.1.0-X&#039;&#039;&#039;, for &#039;&#039;&#039;X&#039;&#039;&#039; up to and including 34.&lt;br /&gt;
| A gamecard or eShop-install of Pokémon Omega Ruby / Alpha Sapphire.&lt;br /&gt;
| MrNbaYoh&lt;br /&gt;
| [http://mrnbayoh.github.io/basehaxx/ install]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: lightgreen&amp;quot; | Yes&lt;br /&gt;
| [https://github.com/yellows8/stickerhax stickerhax]&lt;br /&gt;
| From &#039;&#039;&#039;9.0.0-X&#039;&#039;&#039; up to and including &#039;&#039;&#039;11.3.0-X&#039;&#039;&#039;.&lt;br /&gt;
| A gamecard or eShop-install of Paper Mario: Sticker Star.&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
| [https://github.com/yellows8/stickerhax Here]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: lightgreen&amp;quot; | Yes&lt;br /&gt;
| [https://github.com/svanheulen/genhax genhax]&lt;br /&gt;
| (New 3DS only) From &#039;&#039;&#039;9.9.0-X&#039;&#039;&#039;(JPN) or &#039;&#039;&#039;10.3.0-X&#039;&#039;&#039;(EUR/USA) up to and including &#039;&#039;&#039;11.3.0-X&#039;&#039;&#039;.&lt;br /&gt;
| A gamecard or eShop-install of Monster Hunter Generations or Monster Hunter X (without the game updates installed), and an internet connection during installation.&lt;br /&gt;
| svanheulen&lt;br /&gt;
| [https://github.com/svanheulen/genhax_installer Install]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: lightgreen&amp;quot; | Yes&lt;br /&gt;
| [https://github.com/MrNbaYoh/painthax painthax]&lt;br /&gt;
| From &#039;&#039;&#039;9.0.0-X&#039;&#039;&#039; up to and including &#039;&#039;&#039;11.3.0-X&#039;&#039;&#039;.&lt;br /&gt;
| An eShop-install of PixelPaint.&lt;br /&gt;
| MrNbaYoh&lt;br /&gt;
| [https://github.com/MrNbaYoh/painthax/releases/latest install]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: salmon&amp;quot; | No&lt;br /&gt;
| [https://github.com/yellows8/ctpkpwn ctpkpwn_tfh]&lt;br /&gt;
| From &#039;&#039;&#039;9.9.0-X&#039;&#039;&#039; up to and including &#039;&#039;&#039;11.3.0-X&#039;&#039;&#039;.&lt;br /&gt;
| A gamecard or eShop-install of &amp;quot;The Legend of Zelda: Tri Force Heroes&amp;quot;, and an Internet connection during installation. Unless you have &amp;quot;CFW&amp;quot;, ctr-httpwn &amp;gt;=v1.2 with the included bosshaxx on a compatible system-version is also required. If installing via ctr-httpwn, you can&#039;t do so on &amp;gt;=v11.4. Note that the exploit itself was not fixed.&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
| [https://github.com/yellows8/ctpkpwn/releases Install]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: lightgreen&amp;quot; | Yes&lt;br /&gt;
| [https://github.com/MrNbaYoh/doodlebomb doodlebomb]&lt;br /&gt;
| From &#039;&#039;&#039;9.0.0-X&#039;&#039;&#039;(?) up to and including &#039;&#039;&#039;11.4.0-X&#039;&#039;&#039;.&lt;br /&gt;
| An eShop-install of Swapdoodle.&lt;br /&gt;
| MrNbaYoh&lt;br /&gt;
| [https://mrnbayoh.github.io/doodlebomb/ Install]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Exploits without Homebrew Launcher (Not recommended)==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;&#039;&#039;&#039;Warning:&#039;&#039;&#039;&amp;lt;/u&amp;gt; The following exploits can run code, but are missing a 3DSX launcher. They cannot launch any homebrew in the 3DSX format.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Works on latest fw&lt;br /&gt;
!  Name&lt;br /&gt;
!  Supported firmwares&lt;br /&gt;
!  Requirements&lt;br /&gt;
!  Author&lt;br /&gt;
!  Install&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: salmon&amp;quot; | No&lt;br /&gt;
| [[browserhax]] (Without the loader in the 3ds_browserhax_common repo)&lt;br /&gt;
| (Old3DS) From &#039;&#039;&#039;5.0.0-2&#039;&#039;&#039; to &#039;&#039;&#039;11.0.0-33&#039;&#039;&#039; (Pre-v5.0 is supported for some versions if you manually modify the source)&lt;br /&gt;
&lt;br /&gt;
(New3DS) From &#039;&#039;&#039;9.0.0-20&#039;&#039;&#039; to &#039;&#039;&#039;11.0.0-33&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Note that the browser-version-check bypass is only usable prior to [[10.7.0-32]].&lt;br /&gt;
| An USA, EUR, or JPN system.&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
| [[browserhax|Install]]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: salmon&amp;quot; | No&lt;br /&gt;
| Ninjhax (with specialized payloads)&lt;br /&gt;
| Up to &#039;&#039;&#039;9.2.0-20&#039;&#039;&#039;?&lt;br /&gt;
| &lt;br /&gt;
| smea + independent developers&lt;br /&gt;
| N/A&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Previous Exploits==&lt;br /&gt;
&amp;lt;u&amp;gt;&#039;&#039;&#039;Warning:&#039;&#039;&#039;&amp;lt;/u&amp;gt; These exploits &#039;&#039;&#039;do not work&#039;&#039;&#039;. They are exploits which no longer function at all, regardless of software or firmware revision.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
!  Works on latest fw&lt;br /&gt;
! Name&lt;br /&gt;
! Supported firmwares&lt;br /&gt;
! Requirements&lt;br /&gt;
! Author&lt;br /&gt;
! Install&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: salmon&amp;quot; | No&lt;br /&gt;
| [[tubehax|Tubehax]]&lt;br /&gt;
| None. &#039;&#039;&#039;Was&#039;&#039;&#039;: From &#039;&#039;&#039;9.0.0-X&#039;&#039;&#039; up to and including &#039;&#039;&#039;10.1.0-X&#039;&#039;&#039;, for &#039;&#039;&#039;X&#039;&#039;&#039; up to and including 27.&lt;br /&gt;
| The YouTube application and an Internet connection. As of October 15, 2015, this is no longer usable due to an update being released which fixes the vuln used by tubehax + app update being forced (see [[YouTube|here]]).&lt;br /&gt;
| smea&lt;br /&gt;
| [http://smealum.github.io/3ds/ Install]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Other Homebrew Loaders==&lt;br /&gt;
The [https://github.com/yellows8/hblauncher_loader hblauncher_loader] title can be used when running under modded-FIRM which allows running unsigned titles, to boot the *hax payloads.&lt;br /&gt;
&lt;br /&gt;
==Sysmodule Exploits==&lt;br /&gt;
This section is for system-module exploits, which can be run from the *hax payloads.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Works on latest fw&lt;br /&gt;
! Name&lt;br /&gt;
! Supported firmwares&lt;br /&gt;
! Requirements&lt;br /&gt;
! Author&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: salmon&amp;quot; | No, still usable pre-v11.4.&lt;br /&gt;
| [https://github.com/yellows8/ctr-httpwn/releases ctr-httpwn]&lt;br /&gt;
| From &#039;&#039;&#039;9.6.0-X&#039;&#039;&#039; up to and including &#039;&#039;&#039;11.3.0-X&#039;&#039;&#039;. This includes bosshaxx.&lt;br /&gt;
| None&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==WebKit vuln testing==&lt;br /&gt;
See [https://github.com/yellows8/3ds_browserhax_common/issues/28 here].&lt;/div&gt;</summary>
		<author><name>Yellows8</name></author>
	</entry>
	<entry>
		<id>https://www.3dbrew.org/w/index.php?title=3DS_System_Flaws&amp;diff=19852</id>
		<title>3DS System Flaws</title>
		<link rel="alternate" type="text/html" href="https://www.3dbrew.org/w/index.php?title=3DS_System_Flaws&amp;diff=19852"/>
		<updated>2017-04-11T14:39:37Z</updated>

		<summary type="html">&lt;p&gt;Yellows8: /* Standalone Sysmodules */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Exploits are used to execute unofficial code (homebrew) on the Nintendo 3DS. This page is a list of publicly known system flaws, for userland applications/applets flaws see [[3DS_Userland_Flaws|here]].&lt;br /&gt;
&lt;br /&gt;
=Stale / Rejected Efforts=&lt;br /&gt;
* Neimod has been working on a RAM dumping setup for a little while now. He&#039;s de-soldered the 3DS&#039;s RAM chip and hooked it and the RAM pinouts on the 3DS&#039; PCB up to a custom RAM dumping setup. A while ago he published photos showing his setup to be working quite well, with the 3DS successfully booting up. However, his flickr stream is now private along with most of his work.&lt;br /&gt;
&lt;br /&gt;
* Someone (who will remain unnamed) has released CFW and CIA installers, all of which is copied from the work of others, or copyrighted material.&lt;br /&gt;
&lt;br /&gt;
==Tips and info==&lt;br /&gt;
The 3DS uses the XN feature of the ARM11 processor. There&#039;s no official way from applications to enable executable permission for memory containing arbitrary unsigned code(there&#039;s a [[SVC]] for this, but only [[RO_Services|RO-module]] has access to it). A usable userland exploit would still be useful: you could only do return-oriented-programming with it initially. From ROP one could then exploit system flaw(s), see below.&lt;br /&gt;
&lt;br /&gt;
SD card [[extdata]] and SD savegames can be attacked, for consoles where the console-unique [[Nand/private/movable.sed|movable.sed]] was dumped(accessing SD data is far easier by running code on the target 3DS however).&lt;br /&gt;
&lt;br /&gt;
=System flaws=&lt;br /&gt;
== Hardware ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
!  Summary&lt;br /&gt;
!  Description&lt;br /&gt;
!  Fixed with hardware model/revision&lt;br /&gt;
!  Newest hardware model/revision this flaw was checked for&lt;br /&gt;
!  Timeframe this was discovered&lt;br /&gt;
!  Discovered by&lt;br /&gt;
|-&lt;br /&gt;
| ARM9/ARM11 bootrom vectors point at uninitialized RAM&lt;br /&gt;
| ARM9&#039;s and ARM11&#039;s exception vectors are hardcoded to point at the CPU&#039;s internal memory (0x08000000 region for ARM9, AXIWRAM for ARM11). While the bootrom does set them up to point to an endless loop at some point during boot, it does not do so immediately. As such, a carefully-timed fault injection (via hardware) to trigger an exception (such as an invalid instruction) will cause execution to fall into ARM9 RAM. &lt;br /&gt;
Since RAM isn&#039;t cleared on boot (see below), one can immediately start execution of their own code here to dump bootrom, OTP, etc.&lt;br /&gt;
The ARM9 bootrom does the following at reset:  reset vector branches to another instruction, then branches to bootrom+0x8000. Hence, there&#039;s no way to know for certain when exactly the ARM9 exception-vector data stored in memory gets initialized.&lt;br /&gt;
&lt;br /&gt;
This requires *very* *precise* timing for triggering the hardware fault.&lt;br /&gt;
&lt;br /&gt;
It has been exploited by derrek to dump the ARM9 bootrom as of Summer 2015.&lt;br /&gt;
| None: all available 3DS models at the time of writing have the exact same ARM9/ARM11 bootrom for the unprotected areas.&lt;br /&gt;
| New3DS&lt;br /&gt;
| End of February 2014&lt;br /&gt;
| [[User:Derrek|derrek]], WulfyStylez (May 2015) independently&lt;br /&gt;
|-&lt;br /&gt;
| Missing AES key clearing&lt;br /&gt;
| The hardware AES engine does not clear keys when doing a hard reset/reboot.&lt;br /&gt;
| None&lt;br /&gt;
| New3DS&lt;br /&gt;
| August 2014&lt;br /&gt;
| Mathieulh/Others&lt;br /&gt;
|-&lt;br /&gt;
| No RAM clearing on reboots&lt;br /&gt;
| On an MCU-triggered reboot all RAM including FCRAM/ARM9 memory/AXIWRAM/VRAM keeps its contents.&lt;br /&gt;
| None&lt;br /&gt;
| New3DS&lt;br /&gt;
| March 2014&lt;br /&gt;
| [[User:Derrek|derrek]]&lt;br /&gt;
|-&lt;br /&gt;
| 32bits of actual console-unique TWLNAND keydata&lt;br /&gt;
| On retail the 8-bytes at ARM9 address [[Memory_layout|0x01FFB808]] are XORed with hard-coded data, to generate the TWL console-unique keys, including TWLNAND. On Old3DS the high u32 is always 0x0, while on New3DS that u32 is always 0x2. On top of this, the lower u32&#039;s highest bit is always ORed. only 31 bits of the TWL console-unique keydata / TWL consoleID are actually console-unique.&lt;br /&gt;
This allows one to easily bruteforce the TWL console-unique keydata with *just* data from TWLNAND. On DSi the actual console-unique data for key generation is 8-bytes(all bytes actually set).&lt;br /&gt;
| None&lt;br /&gt;
| New3DS&lt;br /&gt;
| 2012?&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| DSi / 3DS-TWL key-generator&lt;br /&gt;
| After using the key generator to generate the normal-key, you could overwrite parts of the normal-key with your own data and then recover the key-generator output by comparing the new crypto output with the original crypto output. From the normal-key outputs, you could deduce the TWL key-generator function.&lt;br /&gt;
This applies to the keyX/keyY too.&lt;br /&gt;
&lt;br /&gt;
This attack does not work for the 3DS key-generator because keyslots 0-3 are only for TWL keys.&lt;br /&gt;
| None&lt;br /&gt;
| New3DS&lt;br /&gt;
| 2011&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| 3DS key-generator&lt;br /&gt;
| The algorithm for generating the normal-keys for keyslots is cryptographically weak.  As a result, it is easily susceptible to differential cryptanalysis if the normal-key corresponding to any scrambler-generated keyslot is discovered.&lt;br /&gt;
&lt;br /&gt;
Several such pairs of matching normal-keys and KeyY values were found, leading to deducing the key-generator function.&lt;br /&gt;
| None&lt;br /&gt;
| New3DS&lt;br /&gt;
| February 2015&lt;br /&gt;
| [[User:Yellows8|Yellows8]], [[User:Plutooo|plutoo]]&lt;br /&gt;
|-&lt;br /&gt;
| FIRM partitions known-plaintext&lt;br /&gt;
| The [[Flash_Filesystem|FIRM partitions]] are encrypted with AES-CTR without a MAC. Since this works by XOR&#039;ing data with a static (per-console in this case) keystream, one can deduce the keystream of a portion of each FIRM partition if they have the actual FIRM binary stored in it.&lt;br /&gt;
&lt;br /&gt;
This can be paired with many exploits. For example, it allows minor FIRM downgrades (i.e. 10.4 to 9.6 or 9.5 to 9.4, but not 9.6 to 9.5).&lt;br /&gt;
&lt;br /&gt;
This can be somewhat addressed by having a FIRM header skip over previously used section offsets, but this would just air-gap newer FIRMs without fixing the core bug. This can also only be done a limited number of times due to the size of FIRM versus the size of the partitions.&lt;br /&gt;
| None&lt;br /&gt;
| New3DS&lt;br /&gt;
| &lt;br /&gt;
| Everyone&lt;br /&gt;
|-&lt;br /&gt;
| RSA keyslots don&#039;t clear exponent when setting modulus&lt;br /&gt;
| The [[RSA_Registers|RSA keyslots]] are set by boot ROM to have four private RSA keys.  The exponent value in the RSA registers is write-only and not readable.&lt;br /&gt;
&lt;br /&gt;
However, when setting a keyslot&#039;s modulus, the RSA hardware leaves the exponent alone.  This allows retrieving the exponent by doing a discrete logarithm of the output.&lt;br /&gt;
&lt;br /&gt;
By setting the modulus to a prime number whose modular multiplicative order is &amp;quot;smooth&amp;quot; (that is, p-1 is divisible by only small prime numbers), discrete logarithms can be calculated quickly using the [[wikipedia:Pohlig-Hellman algorithm|Pohlig-Hellman algorithm]].  If the prime chosen is greater than the modulus, but the same bit size, the discrete logarithm is the private exponent.&lt;br /&gt;
&lt;br /&gt;
This exploit&#039;s usefulness is limited: RSA keyslot 0 is only used in current firmware for deriving the 6.x save and 7.x NCCH keys, which were already known, and the other three keyslots are entirely unused.  Additionally, with a boot ROM dump, this exploit is moot; these private keys are located in the protected ARM9 boot ROM.&lt;br /&gt;
| None&lt;br /&gt;
| New3DS&lt;br /&gt;
| March 2016&lt;br /&gt;
| [[User:Myria|Myria]]&lt;br /&gt;
|-&lt;br /&gt;
| Boot9 AES keyinit function issues&lt;br /&gt;
| [[Bootloader|Boot9]] seems to have two bugs in the AES key-init function, see [[AES_Registers#AES_key-init|here]].&lt;br /&gt;
| None&lt;br /&gt;
| BootROM issue.&lt;br /&gt;
| 2015&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| [[CONFIG11_Registers#CFG11_GPUPROT|CFG11_GPUPROT]] allowing acccess to AXIWRAM/FCRAM-BASE-memregion&lt;br /&gt;
| [[CONFIG11_Registers#CFG11_GPUPROT|CFG11_GPUPROT]] can be configured by anything with access to it to allow the GPU to access the entire AXIWRAM+FCRAM. For example, this is an issue for any sysmodule that gets exploited and has access to this register memory-page(include one that&#039;s listed below).&lt;br /&gt;
&lt;br /&gt;
See also &amp;quot;kernelhax via gspwn&amp;quot; below.&lt;br /&gt;
| None&lt;br /&gt;
| New3DS&lt;br /&gt;
| February 7, 2017&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== ARM9 software ==&lt;br /&gt;
&lt;br /&gt;
=== arm9loader ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Summary&lt;br /&gt;
!  Description&lt;br /&gt;
!  Successful exploitation result&lt;br /&gt;
!  Fixed in [[FIRM]] system version&lt;br /&gt;
!  Last [[FIRM]] system version this flaw was checked for&lt;br /&gt;
!  Timeframe this was discovered&lt;br /&gt;
!  Public disclosure timeframe&lt;br /&gt;
!  Discovered by&lt;br /&gt;
|-&lt;br /&gt;
| Generating the keysector console-unique keys with ITCM+Boot9&lt;br /&gt;
| [[Bootloader|Boot9]] decrypts the 0x100-byte [[OTP_Registers|OTP]] using AES-CBC with keydata stored in Boot9. If hash verification is successful, the plaintext of the first 0x90-bytes are copied into [[Memory_layout|ITCM]]. This is the &#039;&#039;exact&#039;&#039; &#039;&#039;same&#039;&#039; region hashed by arm9loader when generating the console-unique keys for decrypting the keysector, except arm9loader uses the raw encrypted OTP.&lt;br /&gt;
&lt;br /&gt;
Therefore, with the OTP keydata+IV from Boot9 you can: encrypt the 0x90-bytes from ITCM, then hash the output to get the console-unique keys for the system&#039;s keysector. This can even be done for Old3DS which doesn&#039;t have the arm9loader keysector officially.&lt;br /&gt;
&lt;br /&gt;
It&#039;s unknown why arm9loader only used the first 0x90-bytes of OTP. Using more data from OTP would&#039;ve prevented this. Fixing this would require doing exactly that, but that would also mean updating the NAND keysector(which is dangerous).&lt;br /&gt;
| See description.&lt;br /&gt;
| None&lt;br /&gt;
| &lt;br /&gt;
| 2015&lt;br /&gt;
| January 6, 2017&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| Rearrangable keys in the NAND keystore&lt;br /&gt;
| Due to the keystore being encrypted with AES-ECB, one can rearrange blocks and still have the NAND keystore decrypt in a deterministic way. &lt;br /&gt;
&lt;br /&gt;
Using 10.0 FIRM it is possible to rearrange keys such that ARM9 memory is executed. As such using existing ARM9 execution 10.0 FIRM can be written to NAND and a payload written to memory, with the payload to be executed post-K9L using an MCU reboot.&lt;br /&gt;
| arm9loaderhax given existing ARM9 code execution&lt;br /&gt;
| None&lt;br /&gt;
| [[11.3.0-36|11.3.0-X]]&lt;br /&gt;
| Early 2016&lt;br /&gt;
| 27 September 2016&lt;br /&gt;
| Myria, [[User:Dark samus|dark_samus]]; mathieulh (independently); [[User:Plutooo|plutoo]] (independently) + others&lt;br /&gt;
|-&lt;br /&gt;
| Uncleared OTP hash keydata in console-unique 0x11 key-generation&lt;br /&gt;
| Kernel9Loader does not clear the [[SHA_Registers#SHA_HASH|SHA_HASH register]] after use. As a result, the data stored here as K9L hands over to Kernel9 is the hash of [[OTP_Registers|OTP data]] used to seed the [[FIRM#New_3DS_FIRM|console-unique NAND keystore decryption key]] set on keyslot 0x11.&lt;br /&gt;
&lt;br /&gt;
Retrieving this keydata and the [[Flash_Filesystem#0x12C00|NAND keystore]] of the same device allows calculating the decrypted New3DS NAND keystore (non-unique, common to all New3DS units), which contains AES normal keys, also set on keyslot 0x11, which are then used to derive all current [[AES_Registers#Keyslots|New3DS-only AES keyXs]] including the newer batch introduced in [[9.6.0-24#arm9loader|9.6.0-X]]. From there, it is trivial to perform the same key derivation in order to initialize those keys on any system version, and even on Old3DS.&lt;br /&gt;
&lt;br /&gt;
This can be performed by exploiting the &amp;quot;arm9loaderhax&amp;quot; vulnerability to obtain post-K9L code execution after an MCU reboot (the bootrom section-loading fail is not relevant here, this attack was performed without OTP data by brute-forcing keys), and using this to dump the SHA_HASH register. This attack works on any FIRM version shipping a vulnerable version of K9L, whereas OTP dumping required a boot of &amp;lt;[[3.0.0-6|3.0.0-X]].&lt;br /&gt;
&lt;br /&gt;
This attack results in obtaining the entire (0x200-bytes) NAND keystore - it was confirmed at a later date that this keystore is encrypted with the same key (by comparing the decrypted data from multiple units), and therefore using another key in this store will not remedy the issue as all keys are known (i.e. later, unused keys decrypt to the same 0x200-bytes constant with the same OTP hash). Later keys could have been encrypted differently but this is not the case. As a result of this, it is not possible for Nintendo to use K9L again in its current format for its intended purpose, though this was not news from the moment people dumped a New3DS OTP.&lt;br /&gt;
| Derivation of all New3DS keys generated via the NAND keystore (0x1B &amp;quot;Secure4&amp;quot; etc.)&lt;br /&gt;
| None&lt;br /&gt;
| [[11.3.0-36|11.3.0-X]]&lt;br /&gt;
| ~April 2015, implemented in May 2015&lt;br /&gt;
| 13 January 2016&lt;br /&gt;
| [[User:WulfyStylez|WulfyStylez]], [[User:Dazzozo|Dazzozo]], [[User:Shinyquagsire23|shinyquagsire23]] (complimentary + implemented), [[User:Plutooo|plutoo]], Normmatt (discovered independently)&lt;br /&gt;
|-&lt;br /&gt;
| enhanced-arm9loaderhax&lt;br /&gt;
| See the 32c3 3ds talk.&lt;br /&gt;
Since this is a combination of a trick with the arm9-bootrom + arm9loaderhax, and since you have to manually write FIRM to the firm0/firm1 NAND partitions, this can&#039;t be completely fixed. Any system with existing ARM9 code execution and an OTP/OTP hash dump can exploit this. Additionally, by using the FIRM partition known-plaintext bug and bruteforcing the second entry in the keystore, this can currently be exploited on all New3DS systems without any other prerequisite hacks.&lt;br /&gt;
| arm9loaderhax which automatically occurs at hard-boot.&lt;br /&gt;
| See arm9loaderhax / description.&lt;br /&gt;
| See arm9loaderhax / description.&lt;br /&gt;
| Theorized around mid July, 2015. Later implemented+tested by [[User:Plutooo|plutoo]] and [[User:Derrek|derrek]].&lt;br /&gt;
| 32c3 3ds talk (December 27, 2015)&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| Missing verification-block for the 9.6 keys (arm9loaderhax)&lt;br /&gt;
| Starting with [[9.6.0-24|9.6.0-X]] a new set of NAND-based keys were introduced. However, no verification block was added to verify that the new key read from NAND is correct. This was technically an issue from [[9.5.0-22|9.5.0-X]] with the original sector+0 keydata, however the below is only possible with [[9.6.0-24|9.6.0-X]] since keyslots 0x15 and 0x16 are generated from different 0x11 keyXs.&lt;br /&gt;
&lt;br /&gt;
Writing an incorrect key to NAND will cause arm9loader to decrypt the ARM9 kernel as garbage and then jump to it.&lt;br /&gt;
&lt;br /&gt;
This allows an hardware-based attack where you can boot into an older exploited firmware, fill all memory with NOP sleds/jump-instructions, and then reboot into executing garbage. By automating this process with various input keydata, eventually you&#039;ll find some garbage that jumps to your code.&lt;br /&gt;
&lt;br /&gt;
This gives very early ARM9 code execution (pre-ARM9 kernel). As such, it is possible to dump RSA keyslots with this and calculate the 6.x [[Savegames#6.0.0-11_Savegame_keyY|save]], and 7.x [[NCCH]] keys. This cannot be used to recover keys initialized by arm9loader itself. This is due to it wiping the area used for its stack during NAND sector decryption and keyslot init. &lt;br /&gt;
&lt;br /&gt;
Due to FIRMs on both Old and New 3DS using the same RSA data, this can be exploited on Old3DS as well, but only if one already has the actual plaintext normalkey from New3DS NAND sector 0x96 offset-0 and has dumped the OTP area of the Old3DS.&lt;br /&gt;
| Recovery of 6.x [[Savegames#6.0.0-11_Savegame_keyY|save key]]/7.x [[NCCH]] key, access to uncleared OTP hash keydata&lt;br /&gt;
| None&lt;br /&gt;
| [[11.3.0-36|11.3.0-X]]&lt;br /&gt;
| March, 2015&lt;br /&gt;
| &lt;br /&gt;
| [[User:Plutooo|plutoo]]&lt;br /&gt;
|-&lt;br /&gt;
| Uncleared New3DS keyslot 0x11&lt;br /&gt;
| Originally the New3DS [[FIRM]] arm9bin loader only cleared keyslot 0x11 when it gets executed at firmlaunch. This was fixed with [[9.5.0-22|9.5.0-X]] by completely clearing keyslot 0x11 immediately after the loader finishes using keyslot 0x11.&lt;br /&gt;
This means that any ARM9 code that can execute before the loader clears the keyslot at firmlaunch(including firmlaunch-hax) can get access to the uncleared keyslot 0x11, which then allows one to generate all &amp;lt;=v9.5 New3DS keyXs which are generated by keyslot 0x11.&lt;br /&gt;
&lt;br /&gt;
Therefore, to completely fix this the loader would have to generate more keys using different keyslot 0x11 keydata. This was done with [[9.6.0-24|9.6.0-X]].&lt;br /&gt;
| New3DS keyXs generation&lt;br /&gt;
| Mostly fixed with [[9.5.0-22|9.5.0-X]], completely fixed with new keys with [[9.6.0-24|9.6.0-X]].&lt;br /&gt;
| &lt;br /&gt;
| February 3, 2015 (one day after [[9.5.0-22|9.5.0-X]] release)&lt;br /&gt;
| &lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Process9 ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Summary&lt;br /&gt;
!  Description&lt;br /&gt;
!  Successful exploitation result&lt;br /&gt;
!  Fixed in [[FIRM]] system version&lt;br /&gt;
!  Last [[FIRM]] system version this flaw was checked for&lt;br /&gt;
!  Timeframe this was discovered&lt;br /&gt;
!  Public disclosure timeframe&lt;br /&gt;
!  Discovered by&lt;br /&gt;
|-&lt;br /&gt;
| Leak of normal-key matching a key-scrambler key&lt;br /&gt;
| New 3DS firmware versions [[8.1.0-0 New3DS|8.1.0]] through [[9.2.0-20|9.2.0]] set the encryption key for [[Amiibo]] data using a hardcoded normal-key in Process9.  In firmware [[9.3.0-21|9.3.0]], Nintendo &amp;quot;fixed&amp;quot; this by using the key scrambler instead, by calculating the keyY value for keyslot 0x39 that results in the same normal-key, then hardcoding that keyY into Process9.&lt;br /&gt;
&lt;br /&gt;
Nintendo&#039;s fix is actually the problem: Nintendo revealed the normal-key matching an unknown keyX and a known keyY.  Combined with the key scrambler using an insecure scrambling algorithm (see &amp;quot;Hardware&amp;quot; above), the key scrambler function could be deduced.&lt;br /&gt;
| Deducing the keyX for keyslot 0x39 and the key scrambler algorithm&lt;br /&gt;
| New 3DS [[9.3.0-21|9.3.0-X]], sort of&lt;br /&gt;
| [[10.0.0-27|10.0.0-X]]&lt;br /&gt;
| Sometime in 2015 after the hardware key-generator was broken.&lt;br /&gt;
| 32c3 3ds talk (December 27, 2015)&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| Leak of normal-key matching a key-generator key&lt;br /&gt;
| During the 3DS&#039; development (June/July 2010) Nintendo added support installing encrypted content ([[CIA]]). Common-key index1 was intended to be a [[AES|hardware generated key]]. However while they added code to generate the key in hardware, they forgot to remove the normal-key for index1 (used elsewhere, likely old debug code). Nintendo later removed the normal key sometime before the first non-prototype firmware release.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Knowing the keyY and the normal-key for common-key index1, the devkit key-generator algorithm can be deduced (see &amp;quot;Hardware&amp;quot; above). Additionally the remaining devkit common-keys can be generated once the common-key keyX is recovered.&lt;br /&gt;
&lt;br /&gt;
Note the devkit key-generator was discovered to be the same as the retail key-generator.&lt;br /&gt;
| Deducing the keyX for keyslot 0x3D and hardware key-generator algorithm. Generate remaining devkit common-keys.&lt;br /&gt;
| pre-[[1.0.0-0|1.0.0-X]]&lt;br /&gt;
| &lt;br /&gt;
| Shortly after the key-generator was revealed to be flawed at the 32c3 3ds talk&lt;br /&gt;
| January 20, 2016&lt;br /&gt;
| [[User:Jakcron|jakcron]]&lt;br /&gt;
|-&lt;br /&gt;
| safefirmhax&lt;br /&gt;
| SAFE_MODE_FIRM is almost never updated(even when NATIVE_FIRM is updated for vuln fixes), this can be noticed by &#039;&#039;just&#039;&#039; checking 3dbrew/ninupdates title-listings.&lt;br /&gt;
&lt;br /&gt;
The fix for firmlaunch-hax was only applied to NATIVE_FIRM in [[9.5.0-22|9.5.0-X]], leaving SAFE_FIRM exploitable. With ARM11-kernel execution, one can trigger FIRM-launch in to SAFE_FIRM, do Kernel9 &amp;lt;=&amp;gt; Kernel11 sync, PXI sync and then repeat the original attack on SAFE_FIRM instead.&lt;br /&gt;
| ARM9 code execution&lt;br /&gt;
| [[11.3.0-36|11.3.0-X]]&lt;br /&gt;
| &lt;br /&gt;
| 2012-2013?&lt;br /&gt;
| Wiki: January 2, 2017&lt;br /&gt;
| Everyone&lt;br /&gt;
|-&lt;br /&gt;
| safefirmhax 1.1&lt;br /&gt;
| Nintendo&#039;s original safefirmhax fix was flawed -- they added a global boolean that got set to true whenever a non-sysmodule title got launched (except for a hardcoded repair title id), and panic()&#039;d if that boolean was true to prevent launching safefirm after hax was active. However, because the boolean was initially false after firmlaunch -- With ARM11-kernel execution, one could FIRM-launch into NATIVE_FIRM, and then immediately FIRM-launch again into SAFE_FIRM early in NATIVE_FIRM boot before the boolean got set to true to repeat the safehax attack.&lt;br /&gt;
&lt;br /&gt;
This was fixed by adding additional CFG9_BOOTENV checks to firmlaunch code in 11.4.&lt;br /&gt;
| ARM9 code execution&lt;br /&gt;
| [[11.4.0-36|11.4.0-X]]&lt;br /&gt;
| &lt;br /&gt;
| safefirmhax fix&lt;br /&gt;
| Wiki: April 10, 2017&lt;br /&gt;
| Everyone&lt;br /&gt;
|-&lt;br /&gt;
| ntrcardhax&lt;br /&gt;
| When reading the banner of a NTR title, Process9 relies on a hardware register to know when the banner was fully read.&lt;br /&gt;
However that register is shared between the ARM9 and the ARM11.&lt;br /&gt;
An attacker with k11 control can so make Process9 believe the banner continues forever and so trigger a buffer overflow.&lt;br /&gt;
With a custom banner for a NTR flashcart, this leads to code execution in Process9.&lt;br /&gt;
&lt;br /&gt;
This was fixed by adding bound checks on the read data.&lt;br /&gt;
| ARM9 code execution&lt;br /&gt;
| [[10.4.0-29|10.4.0-X]]&lt;br /&gt;
| &lt;br /&gt;
| March 2015&lt;br /&gt;
| 32c3 3ds talk (December 27, 2015)&lt;br /&gt;
| [[User:Plutooo|plutoo]]&lt;br /&gt;
|-&lt;br /&gt;
| Title downgrading via [[Application_Manager_Services|AM]]([[Application_Manager_Services_PXI|PXI]])&lt;br /&gt;
| When a title is *already* installed, Process9 will compare the installed title-version with the title-version being installed. When the one being installed is older, Process9 would return an error.&lt;br /&gt;
&lt;br /&gt;
However, this can be bypassed by just deleting the title first via the service command(s) for that: with the title removed from the [[Title_Database]], Process9 can&#039;t compare the input title-version with anything. Hence, titles can be downgraded this way.&lt;br /&gt;
&lt;br /&gt;
[[11.0.0-33|11.0.0-X]] fixed this for key system titles (MSET, Home Menu, spider, ErrDisp, SKATER, NATIVE_FIRM, and every retail system module), by checking the version of the title to install against a hard-coded list of (titleID, minimumVersionRequired) pairs.&lt;br /&gt;
| Bypassing title version check at installation, which then allows downgrading any title.&lt;br /&gt;
| [[11.0.0-33|11.0.0-X]], for key system titles.&lt;br /&gt;
| NATIVE_FIRM / AM-sysmodule [[11.0.0-33|11.0.0-X]]&lt;br /&gt;
| ?&lt;br /&gt;
| &lt;br /&gt;
| ?&lt;br /&gt;
|-&lt;br /&gt;
| FAT FS code null-deref&lt;br /&gt;
| When FSFile:Read is used with a file which is corrupted on a FAT filesystem(in particular SD), Process9 can crash. This particular crash is caused by a function returning NULL instead of an actual ptr due to an error. The caller of that function doesn&#039;t check for NULL which then triggers a read based at NULL.&lt;br /&gt;
&lt;br /&gt;
Sample &amp;quot;fsck.vfat -n -v -V &amp;lt;fat image backup&amp;gt;&amp;quot; output for the above crash:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;...&lt;br /&gt;
Starting check/repair pass.&lt;br /&gt;
&amp;lt;FilePath0&amp;gt; and&lt;br /&gt;
&amp;lt;FilePath1&amp;gt;&lt;br /&gt;
 share clusters.&lt;br /&gt;
 Truncating second to 3375104 bytes.&lt;br /&gt;
&amp;lt;FilePath1&amp;gt;&lt;br /&gt;
 File size is 2787392 bytes, cluster chain length is 16384 bytes.&lt;br /&gt;
 Truncating file to 16384 bytes.&lt;br /&gt;
Checking for unused clusters.&lt;br /&gt;
Reclaimed 1 unused cluster (16384 bytes).&lt;br /&gt;
Checking free cluster summary.&lt;br /&gt;
Free cluster summary wrong (1404490 vs. really 1404491)&lt;br /&gt;
 Auto-correcting.&lt;br /&gt;
Starting verification pass.&lt;br /&gt;
Checking for unused clusters.&lt;br /&gt;
Leaving filesystem unchanged.&amp;lt;/pre&amp;gt;&lt;br /&gt;
| Useless null-based-read&lt;br /&gt;
| None&lt;br /&gt;
| [[9.6.0-24|9.6.0-X]]&lt;br /&gt;
| July 8-9, 2015&lt;br /&gt;
| &lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| RSA signature padding checks&lt;br /&gt;
| The TWL_FIRM RSA sig padding check code used for all TWL RSA sig-checks has issues, see [[FIRM|here]].&lt;br /&gt;
The main 3DS RSA padding check code(non-certificate, including NATIVE_FIRM) uses the function used with the above to extract more padding + the actual hash from the additional padding. This isn&#039;t really a problem here because there&#039;s proper padding check code which is executed prior to this.&lt;br /&gt;
| &lt;br /&gt;
| None&lt;br /&gt;
| [[9.5.0-22|9.5.0-X]]&lt;br /&gt;
| March 2015&lt;br /&gt;
| &lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| [[AMPXI:ValidateDSiWareSectionMAC]] [[AES_Registers|AES]] keyslot reuse&lt;br /&gt;
| When the input DSiWare section index is higher than &amp;lt;max number of DSiWare sections supported by this FIRM&amp;gt;, Process9 uses keyid 0x40 for calculating the AESMAC, which translates to keyslot 0x40. The result is that the keyslot is left at whatever was already selected before, since the AES selectkeyslot code will immediately  return when keyslot is &amp;gt;=0x40. However, actually exploiting this is difficult: the calculated AESMAC is never returned, this command just compares the calculated AESMAC with the input AESMAC(result-code depends on whether the AESMACs match). It&#039;s unknown whether a timing attack would work with this.&lt;br /&gt;
This is basically a different form of the pxips9 keyslot vuln, except with AESMAC etc.&lt;br /&gt;
| See description.&lt;br /&gt;
| None&lt;br /&gt;
| [[11.3.0-36|11.3.0-X]]&lt;br /&gt;
| March 15, 2015&lt;br /&gt;
| December 29, 2015&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| pxips9 [[AES_Registers|AES]] keyslot reuse&lt;br /&gt;
| This requires access to the [[Process_Services|ps:ps]]/pxi:ps9 services. One way to get access to this would be snshax on system-version &amp;lt;=10.1.0-X(see 32c3 3ds talk).&lt;br /&gt;
When an invalid key-type value is passed to any of the PS commands, Process9 will try to select keyslot 0x40. That aesengine_setkeyslot() code will then immediately return due to the invalid keyslot value. Since that function doesn&#039;t return any errors, Process9 will just continue to do crypto with whatever AES keyslot was selected before the PS command was sent.&lt;br /&gt;
| Reusing the previously used keyslot, for crypto with PS.&lt;br /&gt;
| None&lt;br /&gt;
| [[11.3.0-36|11.3.0-X]]&lt;br /&gt;
| Roughly the same time(same day?) as firmlaunch-hax.&lt;br /&gt;
| December 29, 2015&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| firmlaunch-hax: FIRM header ToCToU&lt;br /&gt;
| This can&#039;t be exploited from ARM11 userland.&lt;br /&gt;
During [[FIRM]] launch, the only FIRM header the ARM9 uses at all is stored in FCRAM, this is 0x200-bytes(the actual used FIRM RSA signature is read to the Process9 stack however). The ARM9 doesn&#039;t expect &amp;quot;anything&amp;quot; besides the ARM9 to access this data.&lt;br /&gt;
With [[9.5.0-22]] the address of this FIRM header was changed from a FCRAM address, to ARM9-only address 0x01fffc00.&lt;br /&gt;
| ARM9 code execution&lt;br /&gt;
| [[9.5.0-22]]&lt;br /&gt;
| &lt;br /&gt;
| 2012, 3 days after [[User:Yellows8|Yellows8]] started Process9 code RE.&lt;br /&gt;
| &lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| Uninitialized data output for (PXI) command replies&lt;br /&gt;
| PXI commands for various services(including some [[Filesystem_services_PXI|here]] and many others) can write uninitialized data (like from ARM registers) to the command reply. This happens with stubbed commands, but this can also occur with certain commands when returning an error.&lt;br /&gt;
Certain ARM11 service commands have this same issue as well.&lt;br /&gt;
| &lt;br /&gt;
| None&lt;br /&gt;
| [[9.3.0-21|9.3.0-X]]&lt;br /&gt;
| ?&lt;br /&gt;
| &lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| [[Filesystem_services_PXI|FSPXI]] OpenArchive SD permissions&lt;br /&gt;
| Process9 does not use the exheader ARM9 access-mount permission flag for SD at all.&lt;br /&gt;
This would mean ARM11-kernelmode code / fs-module itself could directly use FSPXI to access SD card without ARM9 checking for SD access, but this is rather useless since a process is usually running with SD access(Home Menu for example) anyway.&lt;br /&gt;
| &lt;br /&gt;
| None&lt;br /&gt;
| [[9.3.0-21|9.3.0-X]]&lt;br /&gt;
| 2012&lt;br /&gt;
| &lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| [[AMPXI:ExportDSiWare]] export path&lt;br /&gt;
| Process9 allocates memory on Process9 heap for the export path then verifies that the actual allocated size matches the input size. Then Process9 copies the input path from FCRAM to this buffer, and uses it with the Process9 FS openfile code, which use paths in the form of &amp;quot;&amp;lt;mountpoint&amp;gt;:/&amp;lt;path&amp;gt;&amp;quot;.&lt;br /&gt;
Process9 does not check the contents of this path at all before passing it to the FS code, besides writing a NUL-terminator to the end of the buffer.&lt;br /&gt;
| Exporting of DSiWare to arbitrary Process9 file-paths, such as &amp;quot;nand:/&amp;lt;path&amp;gt;&amp;quot; etc. This isn&#039;t really useful since the data which gets written can&#039;t be controlled.&lt;br /&gt;
| None&lt;br /&gt;
| [[9.5.0-22]]&lt;br /&gt;
| April 2013&lt;br /&gt;
| &lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| [[DSiWare_Exports]] [[CTCert]] verification&lt;br /&gt;
| Just like DSi originally did, 3DS verifies the APCert for DSiWare on SD with the CTCert also in the DSiWare .bin. On DSi this was fixed with with system-version 1.4.2 by verifying with the actual console-unique cert instead(stored in NAND), while on 3DS it&#039;s still not(?) fixed.&lt;br /&gt;
On 3DS however this is rather useless, due to the entire DSiWare .bin being encrypted with the console-unique movable.sed keyY.&lt;br /&gt;
| When the movable.sed keyY for the target 3DS is known and the target 3DS CTCert private-key is unknown, importing of modified DSiWare SD .bin files.&lt;br /&gt;
| Unknown, probably none.&lt;br /&gt;
| ?&lt;br /&gt;
| April 2013&lt;br /&gt;
| &lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| [[Gamecard_Services_PXI]] unchecked REG_CTRCARDCNT transfer-size&lt;br /&gt;
| The u8 REG_CTRCARDCNT transfer-size parameter for the [[Gamecard_Services_PXI]] read/write CTRCARD commands is used as an index for an array of u16 values. Before [[5.0.0-11|5.0.0-X]] this u8 value wasn&#039;t checked, thus out-of-bounds reads could be triggered(which is rather useless in this case).&lt;br /&gt;
| Out-of-bounds read for a value which gets written to a register.&lt;br /&gt;
| [[5.0.0-11|5.0.0-X]]&lt;br /&gt;
| &lt;br /&gt;
| 2013?&lt;br /&gt;
| &lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| [[PXI_Registers|PXI]] cmdbuf buffer overrun&lt;br /&gt;
| The Process9 code responsible [[PXI_Registers|PXI]] communications didn&#039;t verify the size of the incoming command before writing it to a C++ member variable. &lt;br /&gt;
| Probably ARM9 code execution&lt;br /&gt;
| [[5.0.0-11|5.0.0-11]]&lt;br /&gt;
| &lt;br /&gt;
| March 2015, original timeframe if any unknown&lt;br /&gt;
| &lt;br /&gt;
| [[User:Plutooo|plutoo]]/[[User:Yellows8|Yellows8]]/maybe others(?)&lt;br /&gt;
|-&lt;br /&gt;
| [[Application_Manager_Services_PXI|PXIAM]] command 0x003D0108(See also [[Application_Manager_Services|this]])&lt;br /&gt;
| When handling this command, Process9 allocates a 0x2800-byte heap buffer, then copies the 4 FCRAM input buffers to this heap buffer without checking the sizes at all(only the buffers with non-zero sizes are copied). Starting with [[5.0.0-11|5.0.0-X]], the total combined size of the input data must be &amp;lt;=0x2800.&lt;br /&gt;
| ARM9 code execution&lt;br /&gt;
| [[5.0.0-11|5.0.0-X]]&lt;br /&gt;
| &lt;br /&gt;
| May 2013&lt;br /&gt;
| &lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| [[Process_Services_PXI|PS RSA]] commands buffer overflows&lt;br /&gt;
| pxips9 cmd1(not accessible via ps:ps) and VerifyRsaSha256: unchecked copy to a buffer in Process9&#039;s .bss, from the input FCRAM buffer. The buffer is located before the pxi cmdhandler threads&#039; stacks. SignRsaSha256 also has a buf overflow, but this isn&#039;t exploitable.&lt;br /&gt;
The buffer for this is the buffer for the signature data. With v5.0, the signature buffer was moved to stack, with a check for the signature data size. When the signature data size is too large, Process9 uses [[SVC|svcBreak]].&lt;br /&gt;
| ARM9 code execution&lt;br /&gt;
| [[5.0.0-11|5.0.0-X]]&lt;br /&gt;
| &lt;br /&gt;
| 2012&lt;br /&gt;
| &lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| [[PXI_Registers|PXI]] pxi_id bad check&lt;br /&gt;
| The Process9 code responsible for [[PXI_Registers|PXI]] communications read pxi_id as a signed char. There were two flaws:&lt;br /&gt;
* They used it as index to a lookup-table without checking the value at all.&lt;br /&gt;
* Another function verified that pxi_id &amp;lt; 7, allowing negative values to pass the check. This would also cause an out-of-range table-lookup.&lt;br /&gt;
| Maybe ARM9 code execution&lt;br /&gt;
| [[3.0.0-5|3.0.0-5]]&lt;br /&gt;
|&lt;br /&gt;
| March 2015, originally 2012 for the first issue at least&lt;br /&gt;
| &lt;br /&gt;
| [[User:Plutooo|plutoo]], [[User:Yellows8|Yellows8]], maybe others(?)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Kernel9 ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Summary&lt;br /&gt;
!  Description&lt;br /&gt;
!  Successful exploitation result&lt;br /&gt;
!  Fixed in [[FIRM]] system version&lt;br /&gt;
!  Last [[FIRM]] system version this flaw was checked for&lt;br /&gt;
!  Timeframe this was discovered&lt;br /&gt;
!  Discovered by&lt;br /&gt;
|-&lt;br /&gt;
| [[CONFIG Registers#CFG_SYSPROT9|CFG_SYSPROT9]] bit1 not set by Kernel9&lt;br /&gt;
| Old versions of Kernel9 never set bit1 of [[CONFIG Registers#CFG_SYSPROT9|CFG_SYSPROT9]]. This leaves the [[OTP Registers|0x10012000]]-region unprotected (this region should be locked early during boot!). Since it&#039;s never locked, you can dump it once you get ARM9 code execution.&lt;br /&gt;
&lt;br /&gt;
From [[3.0.0-5|3.0.0-X]] this was fixed by setting the bit in Kernel9 after poking some registers in that region. On New3DS arm9loader sets this bit instead of Kernel9, which is exploitable through a hardware + software vulnerability (see arm9loaderhax / description).&lt;br /&gt;
&lt;br /&gt;
This flaw resurged when it gained a new practical use: retrieving the OTP data for a New3DS console in order to decrypt the key data used in arm9loader (see enhanced-arm9loaderhax / description). This was performed by downgrading to a vulnerable system version. By accounting for differences in CTR-NAND crypto (0x05 -&amp;gt; 0x04, see partition encryption types [[Flash_Filesystem#NAND_structure|here]]), it is possible to boot a New3DS using Old3DS firmware 1.0-2.X and an Old3DS [[NCSD#NCSD_header|NCSD Header]] to retrieve the required OTP data using this flaw.&lt;br /&gt;
| Dumping of the [[OTP Registers|OTP]] area&lt;br /&gt;
| [[3.0.0-5|3.0.0-X]]&lt;br /&gt;
|&lt;br /&gt;
| February 2015&lt;br /&gt;
| [[User:Plutooo|plutoo]], Normmatt independently&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== ARM11 software ==&lt;br /&gt;
=== Kernel11 ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Summary&lt;br /&gt;
!  Description&lt;br /&gt;
!  Successful exploitation result&lt;br /&gt;
!  Fixed in [[FIRM]] system version&lt;br /&gt;
!  Last [[FIRM]] system version this flaw was checked for&lt;br /&gt;
!  Timeframe this was discovered&lt;br /&gt;
!  Discovered by&lt;br /&gt;
|-&lt;br /&gt;
| [[SVC|svcGetThreadList]] process reference leak&lt;br /&gt;
| When given a valid process handle (including &amp;lt;code&amp;gt;0xFFFF8001&amp;lt;/code&amp;gt;), svcGetThreadList forgets to decrement the reference count of the underlying [[KProcess]] instance, after having finished using it.&lt;br /&gt;
| Before [[11.2.0-35|11.2.0-X]]: reference count overflow and therefore use-after-free, but this UAF was most likely not exploitable&lt;br /&gt;
| &lt;br /&gt;
| [[11.3.0-36|11.3.0-X]]&lt;br /&gt;
| April 3, 2017&lt;br /&gt;
| [[User:TuxSH|TuxSH]]&lt;br /&gt;
|-&lt;br /&gt;
| kernelhax via gspwn&lt;br /&gt;
| Originally the kernel didn&#039;t initialize [[CONFIG11_Registers#CFG11_GPUPROT|CFG11_GPUPROT]]. Since it&#039;s 0 at hard-boot, this allowed the GPU to access the entire FCRAM + AXIWRAM.&lt;br /&gt;
| Entire FCRAM+AXIWRAM R/W.&lt;br /&gt;
| [[3.0.0-5|3.0.0-X]]&lt;br /&gt;
| &lt;br /&gt;
| February 7, 2017&lt;br /&gt;
| [[User:Plutooo|plutoo]], [[User:Yellows8|Yellows8]] partly&lt;br /&gt;
|-&lt;br /&gt;
| fasthax&lt;br /&gt;
| When a KTimer is created in pulse mode, the kernel calls a virtual function to reset the timer each time it pulses. The scheduler is locked for that core to avoid race conditions, but another core can call CloseHandle on the timer and free it, leading to a UAF vtable call.&lt;br /&gt;
| See description.&lt;br /&gt;
| [[11.3.0-36|11.3.0-X]]&lt;br /&gt;
| [[11.3.0-36|11.3.0-X]]&lt;br /&gt;
| May 2016&lt;br /&gt;
| nedwill&lt;br /&gt;
|-&lt;br /&gt;
| ipctakeover&lt;br /&gt;
| When sending cmdreplies, it does not validate that the src_addr and src_size match the equivalent dst_addr and dst_size. With a modified addr/size specified in a cmdreply for an output buffer, the data-copy for the first/last pages could be used to overwrite data outside of the buffer specified by the original process.&lt;br /&gt;
&lt;br /&gt;
Used by ctr-httpwn as of v1.2, for &amp;quot;ipctakeover/bosshaxx&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
This can be used to takeover processes where the process is using your service session. Like HTTPC -&amp;gt; BOSS, for bosshaxx above. NIM takeover can be done too(actual stack buffer overflow can trigger), etc.&lt;br /&gt;
| See description.&lt;br /&gt;
| None&lt;br /&gt;
| [[11.3.0-36|11.3.0-X]]&lt;br /&gt;
| November 26, 2016&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| Using IPC input buffers as output buffers&lt;br /&gt;
| When sending cmdreplies, it does not validate that the cmdreply descriptor type matches the equivalent cmdreq descriptor type. This could be used by an exploited sysmodule to use what was intended as an input-buffer as an output-buffer, and also combine other IPC vuln(s) with this.&lt;br /&gt;
&lt;br /&gt;
Used by ctr-httpwn as of v1.2, for &amp;quot;ipctakeover/bosshaxx&amp;quot;.&lt;br /&gt;
| See description.&lt;br /&gt;
| None&lt;br /&gt;
| [[11.3.0-36|11.3.0-X]]&lt;br /&gt;
| November 2016&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
|  [[SVC]] table too small&lt;br /&gt;
|  The table of function pointers for SVC&#039;s only contains entries up to 0x7D, but the biggest allowed SVC for the table is 0x7F. Thus, executing SVC7E or SVC7F would make the SVC-handler read after the buffer, and interpret some ARM instructions as function pointers.&lt;br /&gt;
&lt;br /&gt;
However, this would require patching the kernel .text or modifying SVC-access-control. Even if you could get these to execute, they would still jump to memory that isn&#039;t mapped as executable.&lt;br /&gt;
| &lt;br /&gt;
|  None&lt;br /&gt;
| [[11.3.0-36|11.3.0-X]]&lt;br /&gt;
| 2012&lt;br /&gt;
| Everyone&lt;br /&gt;
|-&lt;br /&gt;
|  [[SVC|svcBackdoor (0x7B)]]&lt;br /&gt;
|  This backdoor allows executing SVC-mode code at the user-specified code-address. This is used by Process9, using this on the ARM11 (with NATIVE_FIRM) required patching the kernel .text or modifying SVC-access-control.&lt;br /&gt;
| See description&lt;br /&gt;
| [[11.0.0-33|11.0.0-X]] (deleted)&lt;br /&gt;
| &lt;br /&gt;
|&lt;br /&gt;
| Everyone&lt;br /&gt;
|-&lt;br /&gt;
| veryslowpidhax&lt;br /&gt;
| &#039;&#039;&#039;This is completely different from the kernelmode-code-execution vuln described in the below separate entry.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
When updating the kernel global PID counter under [[SVC|svcCreateProcess]] the kernel does not check for wraparound to 0x0(the PID for the very first process). This only matters because [[Services|SM-module]] allows processes with PID value less than &amp;lt;total ARM11 FIRM modules&amp;gt; to access &#039;&#039;all&#039;&#039; services, without checking exheader service-access-control; and because Kernel11 checks for the PID to be 1 (loader) to use the input mem-region value on ControlMemory. This alone does not affect access the [[SVC|SVCs]] access table at all.&lt;br /&gt;
&lt;br /&gt;
Inlined ldrex+strex code is used for updating the above counter. [[11.2.0-35|11.2.0-X]] had changes for similar code, but it was only for dedicated ldrex+strex functions(mainly for kernel objects) and hence this PID code was not affected.&lt;br /&gt;
&lt;br /&gt;
With launching+terminating a sysmodule repeatedly with this via ns:s, it would take weeks to finish(if not at least about a month?).&lt;br /&gt;
| Access to all [[Services_API|services]], ControlMemory on any given mem-region.&lt;br /&gt;
| None&lt;br /&gt;
| [[11.3.0-36|11.3.0-X]]&lt;br /&gt;
| 2012 maybe?&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
|  slowhax/waithax&lt;br /&gt;
|  svcWaitSynchronizationN does not decrement the references to valid handles in an array before returning an error when it encounters an invalid handle. This allows one to (slowly) overflow the reference count for a handle object to zero.&lt;br /&gt;
| ARM11 kernel-mode code execution&lt;br /&gt;
| [[11.2.0-35|11.2.0-X]]&lt;br /&gt;
| [[11.2.0-35|11.2.0-X]]&lt;br /&gt;
| 2016&lt;br /&gt;
| nedwill, [[User:Derrek|derrek]]&lt;br /&gt;
|-&lt;br /&gt;
| [[Memory_layout#ARM11_Detailed_virtual_memory_map|0xEFF00000]] / 0xDFF00000 ARM11 kernel virtual-memory&lt;br /&gt;
| The ARM11 kernel-mode 0xEFF00000/0xDFF00000 virtual-memory(size 0x100000) is mapped to phys-mem 0x1FF00000(entire DSP-mem + entire AXIWRAM), with permissions RW-. This is used during ARM11 kernel startup for loading the FIRM-modules from the FIRM section located in DSP-mem, this never seems to be used after that, however. This is never unmapped either.&lt;br /&gt;
| &lt;br /&gt;
| None&lt;br /&gt;
| [[11.3.0-36|11.3.0-X]]&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| memchunkhax2.1&lt;br /&gt;
| Nintendo&#039;s fix for memchunkhax2 in [[10.4.0-29|10.4.0-X]] did not fix the GPU case: one may cause the requisite ToCToU race using gspwn, bypassing the new validation.&lt;br /&gt;
derrek&#039;s original 32c3 presentation for memchunkhax2 commented that a GPU-based attack was possible, but would be difficult.  However, memchunkhax2.1 showed that it was possible to do fairly reliably.&lt;br /&gt;
| ARM11 kernel code execution&lt;br /&gt;
| [[11.0.0-33|11.0.0-X]], via the new [[Memory_Management#MemoryBlockHeader|memchunkhdr]] MAC which prevents modifying memchunkhdr data with DMA.&lt;br /&gt;
| [[11.0.0-33|11.0.0-X]]&lt;br /&gt;
|&lt;br /&gt;
| [[User:Derrek|derrek]], aliaspider&lt;br /&gt;
|-&lt;br /&gt;
| memchunkhax2&lt;br /&gt;
| When allocating a block of memory, the &amp;quot;next&amp;quot; pointer of the [[Memory_Management#MemoryBlockHeader|memchunkhdr]] is accessed without being checked after being mapped to userland.&lt;br /&gt;
This allows a race condition, where the process can change the next pointer just before it&#039;s accessed. By pointing the next pointer to a crafted memchunckhdr in the kernel SlabHeap, some of the SlabHeap is allocated to the calling process, allowing to change vtables of kernel objects. &lt;br /&gt;
| ARM11 kernel code execution&lt;br /&gt;
| [[10.4.0-29|10.4.0-X]] (partially, see memchunkhax2.1)&lt;br /&gt;
| [[10.4.0-29|10.4.0-X]]&lt;br /&gt;
|&lt;br /&gt;
| [[User:Derrek|derrek]]&lt;br /&gt;
|-&lt;br /&gt;
| heaphax&lt;br /&gt;
| Can change the size of free memchunk structures stored in FCRAM using DMA, which leads to the ability to allocate memory chunks over already-allocated memory. This can be used in the SYSTEM region to allocate RW memory over any part of the NS system module, which is enough to take it over.&lt;br /&gt;
| Code execution with access to all of NS&#039;s privileges. (including downgrading) Code execution within any applet.&lt;br /&gt;
| [[11.0.0-33|11.0.0-X]], via the new [[Memory_Management#MemoryBlockHeader|memchunkhdr]] MAC which prevents modifying memchunkhdr data with DMA.&lt;br /&gt;
| [[11.0.0-33|11.0.0-X]]&lt;br /&gt;
| April 2015 ?&lt;br /&gt;
| smea&lt;br /&gt;
|-&lt;br /&gt;
| snshax&lt;br /&gt;
| Can force creation of Safe NS process into gspwn-able memory, allowing for takeover.&lt;br /&gt;
| Code execution with access to all of NS&#039;s privileges. (including downgrading)&lt;br /&gt;
| [[10.1.0-27|10.1.0-X]]&lt;br /&gt;
| [[10.1.0-27|10.1.0-X]]&lt;br /&gt;
| April 2015 ?&lt;br /&gt;
| smea&lt;br /&gt;
|-&lt;br /&gt;
|  AffinityMask/processorid validation&lt;br /&gt;
|  With [[10.0.0-27|10.0.0-X]] the following functions were updated: svcGetThreadAffinityMask, svcGetProcessAffinityMask, svcSetProcessAffinityMask, and svcCreateThread. The code changes for all but svcCreateThread are identical.&lt;br /&gt;
The original code with the first 3 did the following: &lt;br /&gt;
* if(u32_processorcount &amp;gt; ~0x80000001)return 0xe0e01bfd;&lt;br /&gt;
* if(s32_processorcount &amp;gt; &amp;lt;total_cores&amp;gt;)return 0xd8e007fd;&lt;br /&gt;
The following code replaced the above:&lt;br /&gt;
* if(u32_processorcount &amp;gt;= &amp;lt;total_cores+1&amp;gt;)return 0xd8e007fd;&lt;br /&gt;
In theory the latter should catch everything that the former did, so it&#039;s unknown if this was really a security issue.&lt;br /&gt;
&lt;br /&gt;
The svcCreateThread changes with [[10.0.0-27|10.0.0-X]] definitely did fix a security issue.&lt;br /&gt;
* Original code: &amp;quot;if(s32_processorid &amp;gt; &amp;lt;total_cores&amp;gt;)return 0xd8e007fd;&amp;quot;&lt;br /&gt;
* New code: &amp;quot;if(s32_processorid &amp;gt;= &amp;lt;total_cores&amp;gt; || s32_processorid &amp;lt;= -4)return 0xd8e007fd;&amp;quot;&lt;br /&gt;
This fixed an off-by-one issue: if one would use processorid=total_cores, which isn&#039;t actually a valid value, svcCreateThread would accept that value on &amp;lt;[[10.0.0-27|10.0.0-X]]. This results in data being written out-of-bounds(baseaddr = arrayaddr + entrysize*processorid), which has the following result:&lt;br /&gt;
* Old3DS: Useless kernel-mode crash due to accessing unmapped memory.&lt;br /&gt;
* New3DS: uncontrolled data write into a kernel-mode L1 MMU-table. This isn&#039;t really useful: the data can&#039;t be controlled, and the data which gets overwritten is all-zero anyway(this isn&#039;t anywhere near MMU L1 entries for actually mapped memory).&lt;br /&gt;
The previous version also allowed large negative s32_processorid values(negative processorid values are special values not actual procids), but it appears using values like that won&#039;t actually do anything(meaning no crash) besides the thread not running / thread not running for a while(besides triggering a kernelpanic with certain s32_processorid value(s)).&lt;br /&gt;
| Nothing useful&lt;br /&gt;
|  [[10.0.0-27|10.0.0-X]]&lt;br /&gt;
| [[10.0.0-27|10.0.0-X]]&lt;br /&gt;
| svcCreateThread issue: May 31, 2015. The rest: September 8, 2015, via v9.6-&amp;gt;v10.0 ARM11-kernel code-diff.&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| memchunkhax&lt;br /&gt;
| The kernel originally did not validate the data stored in the FCRAM kernel heap [[Memchunkhdr|memchunk-headers]] for free-memory at all. Exploiting this requires raw R/W access to these memchunk-headers, like physical-memory access with gspwn.&lt;br /&gt;
&lt;br /&gt;
There are &#039;&#039;multiple&#039;&#039; ways to exploit this, but the end-result for most of these is the same: overwrite code in AXIWRAM via the 0xEFF00000/0xDFF00000 kernel virtual-memory mapping.&lt;br /&gt;
&lt;br /&gt;
This was fixed in [[9.3.0-21|9.3.0-X]] by checking that the memchunk(including size, next, and prev ptrs) is located within the currently used heap memory. The kernel may also check that the next/prev ptrs are valid compared to other memchunk-headers basically. When any of these checks fail, kernelpanic() is called.&lt;br /&gt;
| When combined with other flaws: ARM11-kernelmode code execution&lt;br /&gt;
| [[9.3.0-21|9.3.0-21]]&lt;br /&gt;
| &lt;br /&gt;
| February 2014&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| Multiple [[KLinkedListNode|KLinkedListNode]] SlabHeap use after free bugs&lt;br /&gt;
| The ARM11-kernel did access the &#039;key&#039; field of [[KLinkedListNode|KLinkedListNode]] objects, which are located on the SlabHeap, after freeing them. Thus, triggering an allocation of a new [[KLinkedListNode|KLinkedListNode]] object at the right time could result in a type-confusion. Pseudo-code:&lt;br /&gt;
SlabHeap_free(KLinkedListNode);&lt;br /&gt;
KObject *obj = KLinkedListNode-&amp;gt;key;  // the object there might have changed!&lt;br /&gt;
This bug appeared all over the place.&lt;br /&gt;
| ARM11-kernelmode code exec maybe&lt;br /&gt;
| [[8.0.0-18|8.0.0-18]]&lt;br /&gt;
| &lt;br /&gt;
| April 2015&lt;br /&gt;
| [[User:Derrek|derrek]]&lt;br /&gt;
|-&lt;br /&gt;
| PXI [[RPC_Command_Structure|Command]] input/output buffer permissions&lt;br /&gt;
| Originally the ARM11-kernel didn&#039;t check permissions for PXI input/output buffers for commands. Starting with [[6.0.0-11|6.0.0]] PXI input/output buffers must have RW permissions, otherwise kernelpanic is triggered.&lt;br /&gt;
| &lt;br /&gt;
| [[6.0.0-11|6.0.0-11]]&lt;br /&gt;
| &lt;br /&gt;
| 2012&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| [[SVC|svcStartInterProcessDma]]&lt;br /&gt;
| For svcStartInterProcessDma, the kernel code had the following flaws:&lt;br /&gt;
&lt;br /&gt;
* Originally the ARM11-kernel read the input DmaConfig structure directly in kernel-mode(ldr(b/h) instructions), without checking whether the DmaConfig address is readable under userland. This was fixed by copying that structure to the SVC-mode stack, using the ldrbt instruction.&lt;br /&gt;
&lt;br /&gt;
* Integer overflows for srcaddr+size and dstaddr+size are now checked(with [[6.0.0-11]]), which were not checked before.&lt;br /&gt;
&lt;br /&gt;
* The kernel now also checks whether the srcaddr/dstaddr (+size) is within userland memory (0x20000000), the kernel now (with [[6.0.0-11]]) returns an error when the address is beyond userland memory. Using an address &amp;gt;=0x20000000 would result in the kernel reading from the process L1 MMU table, beyond the memory allocated for that MMU table(for vaddr-&amp;gt;physaddr conversion). &lt;br /&gt;
| &lt;br /&gt;
| [[6.0.0-11]]&lt;br /&gt;
| &lt;br /&gt;
| DmaConfig issue: unknown. The rest: 2014&lt;br /&gt;
| [[User:Plutooo|plutoo]], [[User:Yellows8|Yellows8]] independently&lt;br /&gt;
|-&lt;br /&gt;
| [[SVC|svcControlMemory]] Parameter checks&lt;br /&gt;
| For svcControlMemory the parameter check had these two flaws:&lt;br /&gt;
&lt;br /&gt;
* The allowed range for addr0, addr1, size parameters depends on which MemoryOperation is being specified. The limitation for GSP heap was only checked if op=(u32)0x10003. By setting a random bit in op that has no meaning (like bit17?), op would instead be (u32)0x30003, and the range-check would be less strict and not accurate. However, the kernel doesn&#039;t actually use the input address for LINEAR memory-mapping at all besides the range-checks, so this isn&#039;t actually useful. This was fixed in the kernel by just checking for the LINEAR bit, instead of comparing the entire MemoryOperation value with 0x10003.&lt;br /&gt;
&lt;br /&gt;
* Integer overflows on (addr0+size) are now checked that previously weren&#039;t (this also applies to most other address checks elsewhere in the kernel).&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| [[5.0.0-11]]&lt;br /&gt;
| &lt;br /&gt;
|&lt;br /&gt;
| [[User:Plutooo|plutoo]]&lt;br /&gt;
|-&lt;br /&gt;
| [[RPC_Command_Structure|Command]] request/response buffer overflow&lt;br /&gt;
| Originally the kernel did not check the word-values from the command-header. Starting with [[5.0.0-11]], the kernel will trigger a kernelpanic() when the total word-size of the entire command(including the cmd-header) is larger than 0x40-words (0x100-bytes). This allows overwriting threadlocalstorage+0x180 in the destination thread. However, since the data written there would be translate parameters (such as header-words + buffer addresses), exploiting this would likely be very difficult, if possible at all.&lt;br /&gt;
&lt;br /&gt;
If the two words at threadlocalstorage+0x180 could be overwritten with controlled data this way, one could then use a command with a buffer-header of &amp;lt;nowiki&amp;gt;((size&amp;lt;&amp;lt;14) | 2)&amp;lt;/nowiki&amp;gt; to write arbitrary memory to any RW userland memory in the destination process.&lt;br /&gt;
| &lt;br /&gt;
| [[5.0.0-11]]&lt;br /&gt;
| &lt;br /&gt;
| v4.1 FIRM -&amp;gt; v5.0 code diff&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| [[SVC|SVC stack allocation overflows]]&lt;br /&gt;
| &lt;br /&gt;
* Syscalls that allocate a variable-length array on stack, only checked bit31 before multiplying by 4/16 (when calculating how much memory to allocate). If a large integer was passed as input to one of these syscalls, an integer overflow would occur, and too little memory would have been allocated on stack resulting in a buffer overrun. &lt;br /&gt;
* The alignment (size+7)&amp;amp;~7 calculation before allocation was not checked for integer overflow.&lt;br /&gt;
&lt;br /&gt;
This might allow for ARM11 kernel code-execution.&lt;br /&gt;
&lt;br /&gt;
(Applies to svcSetResourceLimitValues, svcGetThreadList, svcGetProcessList, svcReplyAndReceive, svcWaitSynchronizationN.)&lt;br /&gt;
| &lt;br /&gt;
| [[5.0.0-11]]&lt;br /&gt;
| &lt;br /&gt;
| v4.1 FIRM -&amp;gt; v5.0 code diff&lt;br /&gt;
| [[User:Plutooo|plutoo]], [[User:Yellows8|Yellows8]] complementary&lt;br /&gt;
|-&lt;br /&gt;
| [[SVC|svcControlMemory]] MemoryOperation MAP memory-permissions&lt;br /&gt;
| svcControlMemory with MemoryOperation=MAP allows mapping the already-mapped process virtual-mem at addr1, to addr0. The lowest address permitted for addr1 is 0x00100000. Originally the ARM11 kernel didn&#039;t check memory permissions for addr1. Therefore .text as addr1 could be mapped elsewhere as RW- memory, which allowed ARM11 userland code-execution.&lt;br /&gt;
| &lt;br /&gt;
| [[4.1.0-8]]&lt;br /&gt;
| &lt;br /&gt;
| 2012&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| [[RPC_Command_Structure|Command]] input/output buffer permissions&lt;br /&gt;
| Originally the ARM11 kernel didn&#039;t check memory permissions for the input/output buffers for commands. Starting with [[4.0.0-7]] the ARM11 kernel will trigger a kernelpanic() if the input/output buffers don&#039;t have the required memory permissions. For example, this allowed a FSUSER file-read to .text, which therefore allowed ARM11-userland code execution.&lt;br /&gt;
| &lt;br /&gt;
| [[4.0.0-7]]&lt;br /&gt;
| &lt;br /&gt;
| 2012&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| [[SVC|svcReadProcessMemory/svcWriteProcessMemory memory]] permissions&lt;br /&gt;
| Originally the kernel only checked the first page(0x1000-bytes) of the src/dst buffers, for svcReadProcessMemory and svcWriteProcessMemory. There is no known retail processes which have access to these SVCs.&lt;br /&gt;
| &lt;br /&gt;
| [[4.0.0-7]]&lt;br /&gt;
| &lt;br /&gt;
| 2012?&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== [[FIRM]] Sysmodules ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Summary&lt;br /&gt;
!  Description&lt;br /&gt;
!  Successful exploitation result&lt;br /&gt;
!  Fixed in [[FIRM]] system version&lt;br /&gt;
!  Last [[FIRM]] system version this flaw was checked for&lt;br /&gt;
!  Timeframe this was discovered&lt;br /&gt;
!  Discovered by&lt;br /&gt;
|-&lt;br /&gt;
| [[Services|&amp;quot;srv:pm&amp;quot;]] process registration&lt;br /&gt;
| Originally any process had access to the port &amp;quot;srv:pm&amp;quot;. The PID&#039;s used for the (un)registration commands are not checked either. This allowed any process to re-register itself with &amp;quot;srv:pm&amp;quot;, and therefore allowed the process to give itself access to any service, bypassing the exheader service-access-control list.&lt;br /&gt;
&lt;br /&gt;
This was fixed in [[7.0.0-13]]: starting with [[7.0.0-13]] &amp;quot;srv:pm&amp;quot; is now a service instead of a globally accessible port. Only processes with PID&#039;s less than 6 (in other words: fs, ldr, sm, pm, pxi modules) have access to it. With [[7.0.0-13]] there can only be one session for &amp;quot;srv:pm&amp;quot; open at a time(this is used by pm module), svcBreak will be executed if more sessions are opened by the processes which can access this.&lt;br /&gt;
&lt;br /&gt;
This flaw was needed for exploiting the &amp;lt;=v4.x Process9 PXI vulnerabilities from ARM11 userland ROP, since most applications don&#039;t have access to those service(s).&lt;br /&gt;
| Access to arbitrary services&lt;br /&gt;
| [[7.0.0-13]]&lt;br /&gt;
| &lt;br /&gt;
| 2012&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| FSDIR null-deref&lt;br /&gt;
| [[Filesystem_services|FS]]-module may crash in some cases when handling directory reading. The trigger seems to be due to using [[FSDir:Close]] without closing the dir-handle afterwards?(Perhaps this is caused by out-of-memory?) This seems to be useless since it&#039;s just a null-deref.&lt;br /&gt;
| &lt;br /&gt;
| None&lt;br /&gt;
| [[9.6.0-24|9.6.0-X]]&lt;br /&gt;
| May 19(?)-20, 2015&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Standalone Sysmodules ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Summary&lt;br /&gt;
!  Description&lt;br /&gt;
!  Successful exploitation result&lt;br /&gt;
!  Fixed in system-module system-version&lt;br /&gt;
!  Last system-module system-version this flaw was checked for&lt;br /&gt;
!  Timeframe this was discovered&lt;br /&gt;
!  Timeframe this was added to wiki&lt;br /&gt;
!  Discovered by&lt;br /&gt;
|-&lt;br /&gt;
| [[MP:SendDataFrame]] missing input array index validation&lt;br /&gt;
| [[MP:SendDataFrame]] doesn&#039;t validate the input index at cmdreq[1], unless the function for flag=non-zero is executed. This is used to calculate the following, without validating the index at all: someptr = stateptr + (index*0x924) + somestateoffset.&lt;br /&gt;
&lt;br /&gt;
After validating some flags from someptr, when input_flag=0 the input buffer data is copied to someptr+someotheroffset+0x14 with the u16 size loaded from someptr+someotheroffset.&lt;br /&gt;
&lt;br /&gt;
With a large input index someptr could be setup to be at a &amp;lt;target address&amp;gt;, for overwriting memory.&lt;br /&gt;
&lt;br /&gt;
This is probably difficult to exploit.&lt;br /&gt;
| &lt;br /&gt;
| None&lt;br /&gt;
| [[8.0.0-18]](MP-sysmodule v2048)&lt;br /&gt;
| January 22, 2017&lt;br /&gt;
| January 22, 2017&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| [[MP_Services|MP]] cmd1 out-of-bounds handle read&lt;br /&gt;
| MP-sysmodule handles the input parameter for cmd1 as a s32. It checks for &amp;gt;=16, but not &amp;lt;0. With &amp;lt;16 it basically does the following(array of entries 4-bytes each): *outhandle = ((Handle*)(stateptr+offsetinstate))[inputindex].&lt;br /&gt;
&lt;br /&gt;
Hence, this can be used to load any handle in MP-sysmodule memory. MP doesn&#039;t really have any service handles of interest however(can be obtained from elsewhere too).&lt;br /&gt;
| Reading any handle in MP-sysmodule memory.&lt;br /&gt;
| None&lt;br /&gt;
| [[8.0.0-18]](MP-sysmodule v2048)&lt;br /&gt;
| January 21, 2017&lt;br /&gt;
| January 22, 2017&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| AM stack/.bss infoleak via [[AM:ReadTwlBackupInfo]]([[AM:ReadTwlBackupInfoEx|Ex]])&lt;br /&gt;
| After writing the output-info structure to stack, it then copies that structure to the output buffer ptr using the size from the command. The size is not checked. This could be used to read data from the AM-service-thread stack handling the command + .bss.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;This was not tested on hardware.&#039;&#039;&#039;&lt;br /&gt;
| Stack/.bss reading&lt;br /&gt;
| None&lt;br /&gt;
| [[10.0.0-27]](AM v9217)&lt;br /&gt;
| Roughly October 17, 2016&lt;br /&gt;
| October 25, 2016&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| [[MVD_Services|MVD]]: Stack buffer overflow with [[MVDSTD:SetupOutputBuffers]].&lt;br /&gt;
| The input total_entries is not validated when initially processing the input entry-list. This fixed-size input entry-list is copied to stack from the command request. The loop for processing this initializes a global table, the converted linearmem-&amp;gt;physaddrs used there are also copied to stack(0x8-bytes of physaddrs per entry).&lt;br /&gt;
&lt;br /&gt;
If total_entries is too large, MVD-sysmodule will crash due to reading unmapped memory following the stack(0x10000000). Afterwards if the out-of-bounds total_entries is smaller than that, it will crash due accessing address 0x0, hence this useless.&lt;br /&gt;
| MVD-sysmodule crash.&lt;br /&gt;
| None&lt;br /&gt;
| [[9.0.0-20]]&lt;br /&gt;
| April 22, 2016 (Tested on the 25th)&lt;br /&gt;
| April 25, 2016&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| [[NWM_Services|NWM]]: Using CTRSDK heap with UDS sharedmem from the user-process.&lt;br /&gt;
| See the HTTP-sysmodule section below.&lt;br /&gt;
&lt;br /&gt;
CTRSDK heap is used with the sharedmem from [[NWMUDS:InitializeWithVersion]]. Buffers are allocated/freed under this heap using [[NWMUDS:Bind]] and [[NWMUDS:Unbind]].&lt;br /&gt;
&lt;br /&gt;
Hence, overwriting sharedmem with gspwn then using [[NWMUDS:Unbind]] results in the usual controlled CTRSDK memchunk-header write, similar to HTTP-sysmodule.&lt;br /&gt;
&lt;br /&gt;
This could be done by creating an UDS network, without any other nodes on the network.&lt;br /&gt;
&lt;br /&gt;
Besides CTRSDK memchunk-headers, there are no addresses stored under this sharedmem.&lt;br /&gt;
| ROP under NWM-module.&lt;br /&gt;
| [[11.4.0-37|11.4.0-X]]&lt;br /&gt;
| [[9.0.0-20|9.0.0-X]]&lt;br /&gt;
| April 10, 2016&lt;br /&gt;
| April 16, 2016&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| [[DLP_Services|DLP]]: Out-of-bounds memory access during spectator [[Download_Play|data-frame]] checksum calculation&lt;br /&gt;
| DLP doesn&#039;t validate the frame_size when receiving spectator data-frames at all, unlike non-spectator data-frames. The actual spectator data-frame parsing code doesn&#039;t use that field either. However, the data-frame checksum calculation code called during checksum verification does use the frame_size for loading the size of the framebuf.&lt;br /&gt;
&lt;br /&gt;
Hence, using a large frame_size like 0xFFFF will result in the checksum calculation code reading data out-of-bounds. This isn&#039;t really useful, you could trigger a remote local-WLAN DLP-sysmodule crash while a 3DS system is scanning for DLP networks(due to accessing unmapped memory), but that&#039;s about all(trying to infoleak with this likely isn&#039;t useful either).&lt;br /&gt;
| DLP-sysmodule crash, handled by dlplay system-application by a &amp;quot;connection interrupted&amp;quot; error eventually then a fatal-error via ErrDisp.&lt;br /&gt;
| None&lt;br /&gt;
| [[10.0.0-27|10.0.0-X]]&lt;br /&gt;
| April 8, 2016 (Tested on the 10th)&lt;br /&gt;
| April 10, 2016&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| [[DLP_Services|DLP]]: Out-of-bounds output data writing during spectator sysupdate titlelist [[Download_Play|data-frame]] handling&lt;br /&gt;
| The total_entries and out_entryindex fields for the titlelist DLP spectator data-frames are not validated. This is parsed during DLP network scanning. Hence, the specified titlelist data can be written out-of-bounds using the specified out_entryindex and total_entries. A crash will occur while reading the input data-frame titlelist if total_entries is larger than 0x27A, due to accessing unmapped memory.&lt;br /&gt;
&lt;br /&gt;
There&#039;s not much non-zero data to overwrite following the output buffer(located in sharedmem), any ptrs are located in sharedmem. Overwriting certain ptr(s) are only known to cause a crash when attempting to use the DLP-client shutdown service-command.&lt;br /&gt;
&lt;br /&gt;
There&#039;s no known way to exploit the above crash, since the linked-list code involves writes zeros(with a controlled start ptr).&lt;br /&gt;
| &lt;br /&gt;
| None&lt;br /&gt;
| [[10.0.0-27|10.0.0-X]]&lt;br /&gt;
| April 8-9, 2016&lt;br /&gt;
| April 10, 2016&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| [[IR_Services|IR]]: Stack buffer overflow with custom hardware&lt;br /&gt;
| Originally IR sysmodule used the read value from the I2C-IR registers TXLVL and RXLVL without validating them at all. See [[10.6.0-31|here]] for the fix. This is the size used for reading the data-recv FIFO, etc. The output buffer for reading is located on the stack.&lt;br /&gt;
&lt;br /&gt;
This should be exploitable if one could successfully setup the custom hardware for this and if the entire intended sizes actually get read from I2C.&lt;br /&gt;
| ROP under IR sysmodule.&lt;br /&gt;
| [[10.6.0-31|10.6.0-31]]&lt;br /&gt;
| &lt;br /&gt;
| February 23, 2016 (Unknown if it was noticed before then)&lt;br /&gt;
| February 23, 2016&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| [[HTTP_Services|HTTP]]: Using CTRSDK heap with sharedmem from the user-process.&lt;br /&gt;
| The data from httpcAddPostDataAscii and other commands is stored under a CTRSDK heap. That heap is the sharedmem specified by the user-process via the HTTPC Initialize command.&lt;br /&gt;
Normally this sharedmem isn&#039;t accessible to the user-process once the sysmodule maps it, hence using it is supposed to be &amp;quot;safe&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
This isn&#039;t the case due to gspwn however. Since CTRSDK heap code is so insecure in general, one can use gspwn to locate the HTTPC sharedmem + read/write it, then trigger a mem-write under the sysmodule. This can then be used to get ROP going under HTTP-sysmodule.&lt;br /&gt;
&lt;br /&gt;
This is exploited by [https://github.com/yellows8/ctr-httpwn/ctr-httpwn ctr-httpwn].&lt;br /&gt;
| ROP under HTTP sysmdule.&lt;br /&gt;
| [[11.4.0-37|11.4.0-X]]&lt;br /&gt;
| [[9.6.0-24|9.6.0-X]] (Latest sysmodule version as of [[10.7.0-32|10.7.0-32]])&lt;br /&gt;
| Late 2015&lt;br /&gt;
| March 22, 2016&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| [[NIM_Services|NIM]]: Downloading old title-versions from eShop&lt;br /&gt;
| Multiple NIM service commands(such as [[NIMS:StartDownload]]) use a title-version value specified by the user-process, NIM does not validate that this input version matches the latest version available via SOAP. Therefore, when combined with AM(PXI) [[#Process9|title-downgrading]] via deleting the target eShop title with System Settings Data Management(if the title was already installed), this allows downloading+installing any title-version from eShop &#039;&#039;if&#039;&#039; it&#039;s still available from CDN.&lt;br /&gt;
The easiest way to exploit this is to just patch the eShop system-application code using these NIM commands(ideally the code which loads the title-version).&lt;br /&gt;
&lt;br /&gt;
Originally this was tested with a debugging-system via modded-FIRM, eventually smea implemented it in HANS for the 32c3 release.&lt;br /&gt;
| Downloading old title-versions from eShop&lt;br /&gt;
| None&lt;br /&gt;
| [[10.0.0-27|10.0.0-X]]&lt;br /&gt;
| October 24, 2015 (Unknown when exactly the first eShop title downgrade was actually tested, maybe November)&lt;br /&gt;
| January 7, 2016 (Same day Ironfall v1.0 was removed from CDN via the main-CXI files)&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| [[SPI_Services|SPI]] service out-of-bounds write&lt;br /&gt;
| cmd1 has out-of-bounds write allowing overwrite of some static variables in .data.&lt;br /&gt;
| &lt;br /&gt;
| None&lt;br /&gt;
| [[9.5.0-22]]&lt;br /&gt;
| March 2015&lt;br /&gt;
| &lt;br /&gt;
| [[User:Plutooo|plutoo]]&lt;br /&gt;
|-&lt;br /&gt;
| [[NFC_Services|NFC]] module service command buf-overflows&lt;br /&gt;
| NFC module copies data with certain commands, from command input buffers to stack without checking the size. These commands include the following, it&#039;s unknown if there&#039;s more commands with similar issues: &amp;quot;nfc:dev&amp;quot; &amp;lt;0x000C....&amp;gt; and &amp;quot;nfc:s&amp;quot; &amp;lt;0x0037....&amp;gt;.&lt;br /&gt;
Since both of these commands are stubbed in the Old3DS NFC module from the very first version(those just return an error), these issues only affect the New3DS NFC module.&lt;br /&gt;
&lt;br /&gt;
There&#039;s no known retail titles which have access to either of these services.&lt;br /&gt;
| ROP under NFC module.&lt;br /&gt;
| New3DS: None&lt;br /&gt;
| New3DS: [[9.5.0-22]]&lt;br /&gt;
| December 2014?&lt;br /&gt;
| &lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| [[News_Services|NEWSS]] service command notificationID validation failure&lt;br /&gt;
| This module does not validate the input notificationID for &amp;lt;nowiki&amp;gt;&amp;quot;news:s&amp;quot;&amp;lt;/nowiki&amp;gt; service commands. This is an out-of-bounds array index bug. For example, [[NEWSS:SetNotificationHeader]] could be used to exploit news module: this copies the input data(size is properly checked) to: out = newsdb_savedata+0x10 + (someu32array[notificationID]*0x70).&lt;br /&gt;
| ROP under news module.&lt;br /&gt;
| None&lt;br /&gt;
| [[9.7.0-25|9.7.0-X]]&lt;br /&gt;
| December 2014&lt;br /&gt;
| &lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| [[NWMUDS:DecryptBeaconData]] heap buffer overflow&lt;br /&gt;
| input_size = 0x1E * &amp;lt;value the u8 from input_[[NWM_Services|networkstruct]]+0x1D&amp;gt;. Then input_tag0 is copied to a heap buffer. When input_size is larger than 0xFA-bytes, it will then copy input_tag1 to &amp;lt;end_address_of_previous_outbuf&amp;gt;, with size=input_size-0xFA.&lt;br /&gt;
&lt;br /&gt;
This can be triggered by either using this command directly, or by boadcasting a wifi beacon which triggers it while a 3DS system running the target process is in range, when the process is scanning for hosts to connect to. Processes will only pass tag data to this command when the wlancommID and other thing(s) match the values for the process.&lt;br /&gt;
&lt;br /&gt;
There&#039;s no known way to actually exploit this for getting ROP under NWM-module, at the time of originally adding this to the wiki. This is because the data which gets copied out-of-bounds *and* actually causes crash(es), can&#039;t be controlled it seems(with just broadcasting a beacon at least). It&#039;s unknown whether this could be exploited from just using NWMUDS service-cmd(s) directly.&lt;br /&gt;
| Without any actual way to exploit this: NWM-module DoS, resulting in process termination(process crash). This breaks *everything* involving wifi comms, a reboot is required to recover from this.&lt;br /&gt;
| None&lt;br /&gt;
| [[9.0.0-20]]&lt;br /&gt;
| ~September 23, 2014(see the [[NWMUDS:DecryptBeaconData]] page history)&lt;br /&gt;
| August 3, 2015&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| [[HID_Services|HID]] module shared-mem&lt;br /&gt;
| HID module does not validate the index values in [[HID_Shared_Memory|sharedmem]](just changes index to 0 when index == maxval when updating), therefore large values will result in HID module writing HID data to arbitrary addresses.&lt;br /&gt;
| ROP under HID module, but this is *very* unlikely to be exploitable since the data written is HID data.&lt;br /&gt;
| None&lt;br /&gt;
| [[9.3.0-21]]&lt;br /&gt;
| 2014?&lt;br /&gt;
| &lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| gspwn&lt;br /&gt;
| GSP module does not validate addresses given to the GPU. This allows a user-mode application/applet to read/write to a large part of physical FCRAM using GPU DMA. From this, you can overwrite the .text segment of the application you&#039;re running under, and gain real code-execution from a ROP-chain. Normally applets&#039; .text([[Home Menu]], [[Internet Browser]], etc) is located beyond the area accessible by the GPU, except for [[RO_Services|CROs]] used by applets([[Internet Browser]] for example).&lt;br /&gt;
&lt;br /&gt;
FCRAM is gpu-accessible up to physaddr 0x26800000 on Old3DS, and 0x2D800000 on New3DS. This is BASE_memregion_start(aka SYSTEM_memregion_end)-0x400000 (0x800000 with New3DS) with the default memory-layout on Old3DS/New3DS. With [[11.3.0-36|11.3.0-X]] the cutoff now varies due to the new [[SVC]] 0x59. The New3DS &amp;quot;normal&amp;quot;(non-APPLICATION) cutoff was changed to 0x2D000000 due to the new [[SVC]] 0x59.&lt;br /&gt;
| User-mode code execution.&lt;br /&gt;
| None&lt;br /&gt;
| [[9.6.0-24|9.6.0-X]]&lt;br /&gt;
| Early 2014&lt;br /&gt;
| &lt;br /&gt;
| smea, [[User:Yellows8|Yellows8]]/others before then&lt;br /&gt;
|-&lt;br /&gt;
| rohax&lt;br /&gt;
| Using gspwn, it is possible to overwrite a loaded [[CRO0]]/[[CRR0]] after its RSA-signature has been validated. Badly validated [[CRO0]] header leads to arbitrary read/write of memory in the ro-process. This gives code-execution in the ro module, who has access to [[SVC|syscalls]] 0x70-0x72, 0x7D.&lt;br /&gt;
&lt;br /&gt;
This was fixed after [[ninjhax]] release by adding checks on [[CRO0]]-based pointers before writing to them.&lt;br /&gt;
| Memory-mapping syscalls.&lt;br /&gt;
| [[9.3.0-21]]&lt;br /&gt;
| [[9.4.0-21]]&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| smea, [[User:Plutooo|plutoo]] joint effort&lt;br /&gt;
|-&lt;br /&gt;
| Region free&lt;br /&gt;
| Only [[Home Menu]] itself checks gamecards&#039; region when launching them. Therefore, any application launch that is done directly with [[NS]] without signaling Home Menu to launch the app, will result in region checks being bypassed.&lt;br /&gt;
This essentially means launching the gamecard with the [[NS_and_APT_Services|&amp;quot;ns:s&amp;quot;]] service. The main way to exploit this is to trigger a FIRM launch with an application specified, either with a normal FIRM launch or a hardware [[NSS:RebootSystem|reboot]].&lt;br /&gt;
| Launching gamecards from any region + bypassing Home Menu gamecard-sysupdate installation&lt;br /&gt;
| None&lt;br /&gt;
| Last tested with [[10.1.0-27|10.1.0-X]].&lt;br /&gt;
| June(?) 2014&lt;br /&gt;
| &lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| [[NWM_Services|NWM]] service-cmd state null-ptr deref&lt;br /&gt;
| The NWMUDS service command code loads a ptr from .data, adds an offset to that, then passes that as the state address for the actual command-handler function. The value of the ptr loaded from .data is not checked, therefore this will cause crashes due to that being 0x0 when NWMUDS was not properly initialized.&lt;br /&gt;
It&#039;s unknown whether any NWM services besides NWMUDS have this issue.&lt;br /&gt;
| This is rather useless since it&#039;s only a crash caused by a state ptr based at 0x0.&lt;br /&gt;
| None&lt;br /&gt;
| [[9.0.0-20]]&lt;br /&gt;
| 2013?&lt;br /&gt;
| &lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== General/CTRSDK ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Summary&lt;br /&gt;
!  Description&lt;br /&gt;
!  Successful exploitation result&lt;br /&gt;
!  Fixed in version&lt;br /&gt;
!  Last version this flaw was checked for&lt;br /&gt;
!  Timeframe this was discovered&lt;br /&gt;
!  Discovered by&lt;br /&gt;
|-&lt;br /&gt;
| [[NWM_Services|UDS]] beacon additional-data buffer overflow&lt;br /&gt;
| Originally CTRSDK did not validate the UDS additional-data size before using that size to copy the additional-data to a [[NWM_Services|networkstruct]]. This was eventually fixed.&lt;br /&gt;
This was discovered while doing code RE with an old dlp-module version. It&#039;s unknown in what specific CTRSDK version this was fixed, or even what system-version updated titles with a fixed version.&lt;br /&gt;
&lt;br /&gt;
It&#039;s unknown if there&#039;s any titles using a vulnerable CTRSDK version which are also exploitable with this(dlp module can&#039;t be exploited with this).&lt;br /&gt;
&lt;br /&gt;
The maximum number of bytes that can be written beyond the end of the outbuf is 0x37-bytes, with additionaldata_size=0xFF.&lt;br /&gt;
| Perhaps ROP, very difficult if possible with anything at all&lt;br /&gt;
| ?&lt;br /&gt;
| &lt;br /&gt;
| September(?) 2014&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| CTPK buffer overflow&lt;br /&gt;
| At offset 0x20 in CTPK is an array for each texture, each entry is 0x20-bytes. This contains a wordindex(entry+0x18) for some srcdata relative to CTPK+0, and an u8 wordsize(entry+0x14) for this data. The CTRSDK function handling this doesn&#039;t validate the size, when copying srcdata using this size to the output buffer. Applications usually have the output buffer on the stack, hence stack buffer overflow.&lt;br /&gt;
&lt;br /&gt;
While CTPK(*.ctpk) are normally only loaded from RomFS, some application(s) load from elsewhere too.&lt;br /&gt;
| ROP under the target application.&lt;br /&gt;
| None?&lt;br /&gt;
| &amp;quot;[SDK+NINTENDO:CTR_SDK-11_4_0_200_none]&amp;quot;&lt;br /&gt;
| November 14, 2016&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Yellows8</name></author>
	</entry>
	<entry>
		<id>https://www.3dbrew.org/w/index.php?title=11.4.0-37&amp;diff=19851</id>
		<title>11.4.0-37</title>
		<link rel="alternate" type="text/html" href="https://www.3dbrew.org/w/index.php?title=11.4.0-37&amp;diff=19851"/>
		<updated>2017-04-11T14:38:03Z</updated>

		<summary type="html">&lt;p&gt;Yellows8: /* System Titles */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The Old3DS+New3DS 11.4.0-37 system update was released on April 10, 2017. This Old3DS update was released for the following regions: USA, EUR, JPN, CHN, KOR, and TWN. This New3DS update was released for the following regions: USA, EUR, JPN, CHN, KOR, and TWN.&lt;br /&gt;
&lt;br /&gt;
Security flaws fixed: yes.&lt;br /&gt;
&lt;br /&gt;
==Change-log==&lt;br /&gt;
[http://en-americas-support.nintendo.com/app/answers/detail/a_id/667/p/430/c/267 Official] USA change-log:&lt;br /&gt;
* Further improvements to overall system stability and other minor adjustments have been made to enhance the user experience&lt;br /&gt;
&lt;br /&gt;
==System Titles==&lt;br /&gt;
===NATIVE_FIRM===&lt;br /&gt;
====Process9====&lt;br /&gt;
The global boolean preventing [[FIRM|SAFE_FIRM]] from being launched is now set in Process9&#039;s crt0 if [[CONFIG9_Registers#CFG9_BOOTENV|CFG9_BOOTENV]] has bit0 set, that is to say, if it has been launched from a firmlaunch (this register is set to 1 just before a firmlaunch). The following code has also been added in the firmlaunch function itself: &amp;lt;code&amp;gt;if(!(CFG9_BOOTENV &amp;amp; 1) /* not a firmlaunch */ || (CFG9_BOOTENV &amp;amp; 6) /* firmlaunched from LGY_FIRM (if even possible at all) */) goto panic&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
This is to fix [[3DS_System_Flaws#Process9|safehax]].&lt;br /&gt;
&lt;br /&gt;
====New3DS kernel9loader====&lt;br /&gt;
New3DS kernel9loader wasn&#039;t updated.&lt;br /&gt;
&lt;br /&gt;
====ARM11 kernel====&lt;br /&gt;
There are at least, and likely, three changes:&lt;br /&gt;
&lt;br /&gt;
* [[CONFIG11_Registers#CFG11_WIFIUNK|CFG11_WIFIUNK]] is now set to 0x10 in Kernel11&#039;s crt0&lt;br /&gt;
* A new SVC, [[SVC|svc 0x5A]] has been introduced, to enable or disable wifi&lt;br /&gt;
* The code handling [[SVC|svcArbitrateAddress]] with type = SIGNAL, has been changed. It now counts the actual number of threads arbitrating on that address, and if it is non-zero, it executes the following hack: &amp;lt;code&amp;gt;if(coreId == 0 &amp;amp;&amp;amp; currentThread-&amp;gt;dynamicPriority &amp;gt;= 50) waitCycles(0x64E)&amp;lt;/code&amp;gt;. This supposedly works around the lag issue in some games, which has been introduced on [[11.3.0-36]]&lt;br /&gt;
&lt;br /&gt;
===Modules===&lt;br /&gt;
No FIRM ARM11 sysmodule was changed.&lt;br /&gt;
&lt;br /&gt;
===[[NWM_Services|NWM-sysmodule]]===&lt;br /&gt;
The [[CONFIG11_Registers]] are no longer directly mapped under userland for NWM-sysmodule.&lt;br /&gt;
This prevents anything under NWM-module from modifying the GPUPROT register. This was used by both *hax payload(prior to v11.4 release) and [https://github.com/smealum/udsploit udsploit].&lt;br /&gt;
&lt;br /&gt;
The codebin was updated.&lt;br /&gt;
&lt;br /&gt;
The crt0-poke in PDN that NWM previously did:&lt;br /&gt;
  0x1EC4010C |= 0x10&lt;br /&gt;
&lt;br /&gt;
.. has been removed from NWM. This one has been moved into kernel bootup.&lt;br /&gt;
&lt;br /&gt;
All accesses to 0x1EC40180 have been replaced by a new syscall, [[SVC|0x5A]].&lt;br /&gt;
&lt;br /&gt;
This now includes code from old CTRSDK update(s). A new func was added for calling a func, previously that func was directly called via vtable funcptr. The only other changes was new heap code(and the code for using it basically), for fixing the NWMUDS sharedmem [[3DS_System_Flaws|vuln]]. This includes code which actually validates heap memchunkhdrs, with svcBreak being executed on failure.&lt;br /&gt;
&lt;br /&gt;
A new string was added at 0x13E200: &amp;quot;used&amp;quot;(with 3 0xFF bytes afterwards), this is used by the new heap code. The wifi-fw was moved from .data to .rodata.&lt;br /&gt;
&lt;br /&gt;
===[[HTTP_Services|HTTP-sysmodule]]===&lt;br /&gt;
There were exactly 3 changes in the HTTP-sysmodule codebin.&lt;br /&gt;
&lt;br /&gt;
Two functions, the memalloc and memfree functions used with HTTP sharedmem, were updated to use the new function. The new function is for heap memchunkhdr validation. This additional code is the same new heap code as NWM-sysmodule. This fixed the vuln used by ctr-httpwn at the time of sysupdate release.&lt;br /&gt;
&lt;br /&gt;
===[[Internet Browser]]===&lt;br /&gt;
The web-browser was updated, only for New3DS. See [[Internet Browser|here]] for details.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
System update report(s):&lt;br /&gt;
* [https://yls8.mtheall.com/ninupdates/reports.php?date=04-10-17_08-00-38&amp;amp;sys=ctr]&lt;br /&gt;
* [https://yls8.mtheall.com/ninupdates/reports.php?date=04-10-17_08-00-47&amp;amp;sys=ktr]&lt;/div&gt;</summary>
		<author><name>Yellows8</name></author>
	</entry>
	<entry>
		<id>https://www.3dbrew.org/w/index.php?title=Homebrew_Exploits&amp;diff=19850</id>
		<title>Homebrew Exploits</title>
		<link rel="alternate" type="text/html" href="https://www.3dbrew.org/w/index.php?title=Homebrew_Exploits&amp;diff=19850"/>
		<updated>2017-04-11T14:30:34Z</updated>

		<summary type="html">&lt;p&gt;Yellows8: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Payload==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Works on latest fw&lt;br /&gt;
!  Name&lt;br /&gt;
!  Description&lt;br /&gt;
!  Supported firmwares&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: lightgreen&amp;quot; | Yes&lt;br /&gt;
| [https://smealum.github.io/3ds/ *hax payload]&lt;br /&gt;
| Booted by all of the below non-sysmodule exploits.&lt;br /&gt;
| From &#039;&#039;&#039;9.0.0-7&#039;&#039;&#039; up to and including &#039;&#039;&#039;11.3.0-36&#039;&#039;&#039;.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
For the rest of this page, &amp;quot;Supported firmwares&amp;quot; refers to the exploit &#039;&#039;itself&#039;&#039;, not whether *hax payload supports it.&lt;br /&gt;
&lt;br /&gt;
==Standalone Homebrew Launcher Exploits==&lt;br /&gt;
The following homebrew exploits can be executed on a previously un-exploited system. &#039;&#039;Please&#039;&#039; see the above Payload section regarding what &amp;quot;Supported firmwares&amp;quot; indicates &#039;&#039;exactly&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Works on latest fw&lt;br /&gt;
!  Name&lt;br /&gt;
!  Supported firmwares&lt;br /&gt;
!  Requirements&lt;br /&gt;
!  Author&lt;br /&gt;
!  Install&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: salmon&amp;quot; | No&lt;br /&gt;
| [[ninjhax|Ninjhax 1.1b]]&lt;br /&gt;
| From &#039;&#039;&#039;4.0.0-7&#039;&#039;&#039; up to and including &#039;&#039;&#039;9.2.0-20&#039;&#039;&#039;.&lt;br /&gt;
| A cartridge or eShop version (JPN-only) of &amp;quot;Cubic Ninja&amp;quot;.&lt;br /&gt;
| smea&lt;br /&gt;
| [http://smealum.net/ninjhax/ Install]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: lightgreen&amp;quot; | Yes&lt;br /&gt;
| [[ninjhax|Ninjhax 2.x]]&lt;br /&gt;
| From &#039;&#039;&#039;9.0.0-7&#039;&#039;&#039; up to and including &#039;&#039;&#039;11.3.0-36&#039;&#039;&#039;.&lt;br /&gt;
|  A cartridge or eShop version (JPN-only, not available anymore for purchase) of &amp;quot;Cubic Ninja&amp;quot;.&lt;br /&gt;
| smea&lt;br /&gt;
| [https://smealum.github.io/ninjhax2/ Install]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: lightgreen&amp;quot; | Yes&lt;br /&gt;
| [http://plutooo.github.io/freakyhax/ freakyhax]&lt;br /&gt;
| From &#039;&#039;&#039;9.0.0-7&#039;&#039;&#039; up to and including &#039;&#039;&#039;11.3.0-36&#039;&#039;&#039;.&lt;br /&gt;
|  A cartridge or eShop version (USA/EUR/JAP, not available anymore for purchase) of &amp;quot;Freakyform Deluxe&amp;quot;.&lt;br /&gt;
| plutoo&lt;br /&gt;
| [http://plutooo.github.io/freakyhax/ Install]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: salmon&amp;quot; | No&lt;br /&gt;
| [http://plutooo.github.io/smilehax/ smilehax]&lt;br /&gt;
| From &#039;&#039;&#039;9.0.0-7&#039;&#039;&#039; up to and including &#039;&#039;&#039;11.0.0-33&#039;&#039;&#039;&lt;br /&gt;
| SmileBASIC (JPN all versions up to 3.32 excluded, USA 3.31 only)&lt;br /&gt;
| plutoo&lt;br /&gt;
| [http://plutooo.github.io/smilehax/ Install]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: salmon&amp;quot; | No&lt;br /&gt;
| [http://mrnbayoh.github.io/basicsploit/ BASICSploit]&lt;br /&gt;
| From &#039;&#039;&#039;9.0.0-7&#039;&#039;&#039; up to and including &#039;&#039;&#039;11.0.0-33&#039;&#039;&#039;&lt;br /&gt;
| SmileBASIC (USA all versions)&lt;br /&gt;
| MrNbaYoh&lt;br /&gt;
| [http://mrnbayoh.github.io/basicsploit/ Install]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: lightgreen&amp;quot; | Yes&lt;br /&gt;
| [[smashbroshax|smashbroshax]] (beaconhax)&lt;br /&gt;
| (New 3DS only) From &#039;&#039;&#039;9.0.0-X&#039;&#039;&#039; up to and including &#039;&#039;&#039;11.3.0-36&#039;&#039;&#039;.&lt;br /&gt;
| Super Smash Bros 3DS (full-game) and a way to broadcast raw wifi beacons. The demo (prior to the updated November 2015 [https://github.com/yellows8/3ds_smashbroshax version]) isn&#039;t usable with the *hax payloads. Game-version v1.1.3 fixed the vuln used with this, see the repo for a workaround for that.&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
| [https://github.com/yellows8/3ds_smashbroshax Install]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: salmon&amp;quot; | No&lt;br /&gt;
| [[browserhax]]&lt;br /&gt;
| From &#039;&#039;&#039;9.0.0-2&#039;&#039;&#039; to &#039;&#039;&#039;11.0.0-33&#039;&#039;&#039;&lt;br /&gt;
Note that the browser-version-check bypass is only usable prior to [[10.7.0-32]].&lt;br /&gt;
| A USA, EUR, JPN, or KOR system.&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
| [http://yls8.mtheall.com/3dsbrowserhax.php Install]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: salmon&amp;quot; | No&lt;br /&gt;
| [https://github.com/svanheulen/genhax genhax]&lt;br /&gt;
| (New 3DS only) From &#039;&#039;&#039;9.9.0-X&#039;&#039;&#039; up to and including &#039;&#039;&#039;11.2.0-X&#039;&#039;&#039;.&lt;br /&gt;
| A gamecard or eShop-install of Monster Hunter X (JPN only), and the DLC encryption key (see installer instructions). &#039;&#039;&#039;Note: the secondary exploit still works, see bellow&#039;&#039;&#039;&lt;br /&gt;
| svanheulen&lt;br /&gt;
| [https://github.com/svanheulen/genhax_installer Install]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: salmon&amp;quot; | No&lt;br /&gt;
| [https://github.com/nedwill/soundhax soundhax]&lt;br /&gt;
| From &#039;&#039;&#039;9.0.0-13&#039;&#039;&#039; up to and including &#039;&#039;&#039;11.3.0-36&#039;&#039;&#039;.&lt;br /&gt;
| A USA, EUR, JPN or KOR system.&lt;br /&gt;
| nedwill&lt;br /&gt;
| [http://soundhax.com Install]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: lightgreen&amp;quot; | Yes&lt;br /&gt;
| [https://github.com/MrNbaYoh/doodlebomb doodlebomb]&lt;br /&gt;
| From &#039;&#039;&#039;9.0.0-X&#039;&#039;&#039;(?) up to and including &#039;&#039;&#039;11.4.0-X&#039;&#039;&#039;.&lt;br /&gt;
| An eShop-install of Swapdoodle. A friend from the system friends-list to receive the exploit from online, see &amp;quot;Without the Homebrew Launcher&amp;quot; instructions.&lt;br /&gt;
| MrNbaYoh&lt;br /&gt;
| [https://mrnbayoh.github.io/doodlebomb/ Install]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Note that ninjhax 1.x is still not obsolete. Even though ninjhax 2.x can be run on 9.3+, this was made possible (amongst other things) by sacrificing the memory remapping exploit used in ninjhax 1.x (rohax). Therefore, things like JIT engines for emulators can only be supported on ninjhax 1.x. Furthermore, ninjhax 2.x does not run on system versions below 9.0.0-X, while ninjhax 1.x does.&lt;br /&gt;
&lt;br /&gt;
==Secondary Exploits==&lt;br /&gt;
Installation of these exploits requires a previously exploited system to install. After installation, they can be used on their own. &#039;&#039;Please&#039;&#039; see the above Payload section regarding what &amp;quot;Supported firmwares&amp;quot; indicates &#039;&#039;exactly&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
!  Works on latest fw&lt;br /&gt;
!  Name&lt;br /&gt;
!  Supported firmwares&lt;br /&gt;
!  Requirements&lt;br /&gt;
!  Author&lt;br /&gt;
!  Install&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: salmon&amp;quot; | No&lt;br /&gt;
| [[ironhax]]&lt;br /&gt;
| From &#039;&#039;&#039;9.5.0-X&#039;&#039;&#039; up to and including &#039;&#039;&#039;10.3.0-X&#039;&#039;&#039;, for &#039;&#039;&#039;X&#039;&#039;&#039; up to and including 28.&lt;br /&gt;
| A copy of &amp;quot;Ironfall: Invasion&amp;quot; downloaded from eShop before August 11th, 2015. Note the updated version that was released on October 13th, 2015 is not supported.&lt;br /&gt;
| smea&lt;br /&gt;
| [http://smealum.github.io/3ds/ Install]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: lightgreen&amp;quot; | Yes&lt;br /&gt;
| [http://vegaroxas.github.io/ steelhax]&lt;br /&gt;
| From &#039;&#039;&#039;9.0.0-X&#039;&#039;&#039; up to and including &#039;&#039;&#039;11.3.0-X&#039;&#039;&#039;, for &#039;&#039;&#039;X&#039;&#039;&#039; up to and including 36.&lt;br /&gt;
| A copy of Steel Diver: Sub Wars&lt;br /&gt;
| Vegaroxas&lt;br /&gt;
| [https://github.com/VegaRoXas/vegaroxas.github.io/raw/master/files/steelhax-installer.zip Install]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: lightgreen&amp;quot; | Yes&lt;br /&gt;
| [https://github.com/yellows8/oot3dhax oot3dhax]&lt;br /&gt;
| From &#039;&#039;&#039;9.0.0-X&#039;&#039;&#039; up to and including &#039;&#039;&#039;11.3.0-X&#039;&#039;&#039;, for &#039;&#039;&#039;X&#039;&#039;&#039; up to and including 36.&lt;br /&gt;
| A gamecard or eShop-install of Legend of Zelda: Ocarina of Time 3D. Besides using the installer app, writing raw saveimages with a save dongle for example is another option. Before compression was introduced in the 2016-7-18 release, the size of the *hax payload meant the exploit can&#039;t coexist with regular saves on a physical version of the game.&lt;br /&gt;
| Yellows8 / smea et al.&lt;br /&gt;
| See [https://smealum.github.io/3ds/ here].&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: salmon&amp;quot; | No&lt;br /&gt;
| [[menuhax]]&lt;br /&gt;
| JPN/USA/EUR: From &#039;&#039;&#039;9.0.0-X&#039;&#039;&#039; up to and including &#039;&#039;&#039;11.2.0-X&#039;&#039;&#039;.&lt;br /&gt;
KOR: From &#039;&#039;&#039;9.6.0-X&#039;&#039;&#039; up to and including &#039;&#039;&#039;11.2.0-X&#039;&#039;&#039;.&lt;br /&gt;
| JPN/USA/EUR: Having created [[Home_Menu#Home_Menu_Theme_SD_ExtData|theme extdata]] through opening the official theme selector at least once.&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
| [https://github.com/yellows8/3ds_homemenuhax/releases Download]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: lightgreen&amp;quot; | Yes&lt;br /&gt;
| [https://github.com/shinyquagsire23/supermysterychunkhax supermysterychunkhax]&lt;br /&gt;
| From &#039;&#039;&#039;9.9.0-X&#039;&#039;&#039; (USA/JPN) / &#039;&#039;&#039;10.2.0-X&#039;&#039;&#039; (EUR) up to and including &#039;&#039;&#039;11.1.0-X&#039;&#039;&#039;, for &#039;&#039;&#039;X&#039;&#039;&#039; up to and including 34.&lt;br /&gt;
| A gamecard or eShop-install of Pokémon Super Mystery Dungeon.&lt;br /&gt;
| Shiny Quagsire / SALT team&lt;br /&gt;
| [https://smd.salthax.org/ Install].&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: salmon&amp;quot; | No&lt;br /&gt;
| [https://github.com/shinyquagsire23/v_hax (v*)hax]&lt;br /&gt;
| From &#039;&#039;&#039;9.0.0-X&#039;&#039;&#039; up to and including &#039;&#039;&#039;11.0.0-X&#039;&#039;&#039;, for &#039;&#039;&#039;X&#039;&#039;&#039; up to and including 33.&lt;br /&gt;
Note that &#039;&#039;&#039;9.0.0-X&#039;&#039;&#039; is only required for the Homebrew Launcher - the game itself only requires &#039;&#039;&#039;2.1.0-X&#039;&#039;&#039; for primitive userland code execution.&lt;br /&gt;
| A copy of VVVVVV downloaded after March 2012 (v1). v1.1 patches out the overflow vulnerability used by (v*)hax.&lt;br /&gt;
| Shiny Quagsire / SALT team&lt;br /&gt;
| [https://vvvvvv.salthax.org/ Install].&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: lightgreen&amp;quot; | Yes&lt;br /&gt;
| [https://github.com/Dazzozo/humblehax humblehax]&lt;br /&gt;
| From &#039;&#039;&#039;9.0.0-X&#039;&#039;&#039; (USA/EUR) up to and including &#039;&#039;&#039;11.2.0-X&#039;&#039;&#039;, for &#039;&#039;&#039;X&#039;&#039;&#039; up to and including 35.&lt;br /&gt;
| An eShop-install of Citizens of Earth (either v1 or v2), featured in the Humble &amp;quot;Friends of Nintendo&amp;quot; Bundle.&lt;br /&gt;
| Dazzozo / SALT team&lt;br /&gt;
| [https://citizens.salthax.org/ Install].&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: salmon&amp;quot; | No&lt;br /&gt;
| [http://mrnbayoh.github.io/basehaxx/ basehaxx]&lt;br /&gt;
| From &#039;&#039;&#039;9.0.0-X&#039;&#039;&#039; up to and including &#039;&#039;&#039;11.1.0-X&#039;&#039;&#039;, for &#039;&#039;&#039;X&#039;&#039;&#039; up to and including 34.&lt;br /&gt;
| A gamecard or eShop-install of Pokémon Omega Ruby / Alpha Sapphire.&lt;br /&gt;
| MrNbaYoh&lt;br /&gt;
| [http://mrnbayoh.github.io/basehaxx/ install]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: lightgreen&amp;quot; | Yes&lt;br /&gt;
| [https://github.com/yellows8/stickerhax stickerhax]&lt;br /&gt;
| From &#039;&#039;&#039;9.0.0-X&#039;&#039;&#039; up to and including &#039;&#039;&#039;11.3.0-X&#039;&#039;&#039;.&lt;br /&gt;
| A gamecard or eShop-install of Paper Mario: Sticker Star.&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
| [https://github.com/yellows8/stickerhax Here]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: lightgreen&amp;quot; | Yes&lt;br /&gt;
| [https://github.com/svanheulen/genhax genhax]&lt;br /&gt;
| (New 3DS only) From &#039;&#039;&#039;9.9.0-X&#039;&#039;&#039;(JPN) or &#039;&#039;&#039;10.3.0-X&#039;&#039;&#039;(EUR/USA) up to and including &#039;&#039;&#039;11.3.0-X&#039;&#039;&#039;.&lt;br /&gt;
| A gamecard or eShop-install of Monster Hunter Generations or Monster Hunter X (without the game updates installed), and an internet connection during installation.&lt;br /&gt;
| svanheulen&lt;br /&gt;
| [https://github.com/svanheulen/genhax_installer Install]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: lightgreen&amp;quot; | Yes&lt;br /&gt;
| [https://github.com/MrNbaYoh/painthax painthax]&lt;br /&gt;
| From &#039;&#039;&#039;9.0.0-X&#039;&#039;&#039; up to and including &#039;&#039;&#039;11.3.0-X&#039;&#039;&#039;.&lt;br /&gt;
| An eShop-install of PixelPaint.&lt;br /&gt;
| MrNbaYoh&lt;br /&gt;
| [https://github.com/MrNbaYoh/painthax/releases/latest install]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: lightgreen&amp;quot; | Yes&lt;br /&gt;
| [https://github.com/yellows8/ctpkpwn ctpkpwn_tfh]&lt;br /&gt;
| From &#039;&#039;&#039;9.9.0-X&#039;&#039;&#039; up to and including &#039;&#039;&#039;11.2.0-X&#039;&#039;&#039;.&lt;br /&gt;
| A gamecard or eShop-install of &amp;quot;The Legend of Zelda: Tri Force Heroes&amp;quot;, and an Internet connection during installation. Unless you have &amp;quot;CFW&amp;quot;, ctr-httpwn &amp;gt;=v1.2 with the included bosshaxx on a compatible system-version is also required.&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
| [https://github.com/yellows8/ctpkpwn/releases Install]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: lightgreen&amp;quot; | Yes&lt;br /&gt;
| [https://github.com/MrNbaYoh/doodlebomb doodlebomb]&lt;br /&gt;
| From &#039;&#039;&#039;9.0.0-X&#039;&#039;&#039;(?) up to and including &#039;&#039;&#039;11.4.0-X&#039;&#039;&#039;.&lt;br /&gt;
| An eShop-install of Swapdoodle.&lt;br /&gt;
| MrNbaYoh&lt;br /&gt;
| [https://mrnbayoh.github.io/doodlebomb/ Install]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Exploits without Homebrew Launcher (Not recommended)==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;&#039;&#039;&#039;Warning:&#039;&#039;&#039;&amp;lt;/u&amp;gt; The following exploits can run code, but are missing a 3DSX launcher. They cannot launch any homebrew in the 3DSX format.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Works on latest fw&lt;br /&gt;
!  Name&lt;br /&gt;
!  Supported firmwares&lt;br /&gt;
!  Requirements&lt;br /&gt;
!  Author&lt;br /&gt;
!  Install&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: salmon&amp;quot; | No&lt;br /&gt;
| [[browserhax]] (Without the loader in the 3ds_browserhax_common repo)&lt;br /&gt;
| (Old3DS) From &#039;&#039;&#039;5.0.0-2&#039;&#039;&#039; to &#039;&#039;&#039;11.0.0-33&#039;&#039;&#039; (Pre-v5.0 is supported for some versions if you manually modify the source)&lt;br /&gt;
&lt;br /&gt;
(New3DS) From &#039;&#039;&#039;9.0.0-20&#039;&#039;&#039; to &#039;&#039;&#039;11.0.0-33&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Note that the browser-version-check bypass is only usable prior to [[10.7.0-32]].&lt;br /&gt;
| An USA, EUR, or JPN system.&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
| [[browserhax|Install]]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: salmon&amp;quot; | No&lt;br /&gt;
| Ninjhax (with specialized payloads)&lt;br /&gt;
| Up to &#039;&#039;&#039;9.2.0-20&#039;&#039;&#039;?&lt;br /&gt;
| &lt;br /&gt;
| smea + independent developers&lt;br /&gt;
| N/A&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Previous Exploits==&lt;br /&gt;
&amp;lt;u&amp;gt;&#039;&#039;&#039;Warning:&#039;&#039;&#039;&amp;lt;/u&amp;gt; These exploits &#039;&#039;&#039;do not work&#039;&#039;&#039;. They are exploits which no longer function at all, regardless of software or firmware revision.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
!  Works on latest fw&lt;br /&gt;
! Name&lt;br /&gt;
! Supported firmwares&lt;br /&gt;
! Requirements&lt;br /&gt;
! Author&lt;br /&gt;
! Install&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: salmon&amp;quot; | No&lt;br /&gt;
| [[tubehax|Tubehax]]&lt;br /&gt;
| None. &#039;&#039;&#039;Was&#039;&#039;&#039;: From &#039;&#039;&#039;9.0.0-X&#039;&#039;&#039; up to and including &#039;&#039;&#039;10.1.0-X&#039;&#039;&#039;, for &#039;&#039;&#039;X&#039;&#039;&#039; up to and including 27.&lt;br /&gt;
| The YouTube application and an Internet connection. As of October 15, 2015, this is no longer usable due to an update being released which fixes the vuln used by tubehax + app update being forced (see [[YouTube|here]]).&lt;br /&gt;
| smea&lt;br /&gt;
| [http://smealum.github.io/3ds/ Install]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Other Homebrew Loaders==&lt;br /&gt;
The [https://github.com/yellows8/hblauncher_loader hblauncher_loader] title can be used when running under modded-FIRM which allows running unsigned titles, to boot the *hax payloads.&lt;br /&gt;
&lt;br /&gt;
==Sysmodule Exploits==&lt;br /&gt;
This section is for system-module exploits, which can be run from the *hax payloads.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Works on latest fw&lt;br /&gt;
! Name&lt;br /&gt;
! Supported firmwares&lt;br /&gt;
! Requirements&lt;br /&gt;
! Author&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: salmon&amp;quot; | No, still usable pre-v11.4.&lt;br /&gt;
| [https://github.com/yellows8/ctr-httpwn/releases ctr-httpwn]&lt;br /&gt;
| From &#039;&#039;&#039;9.6.0-X&#039;&#039;&#039; up to and including &#039;&#039;&#039;11.3.0-X&#039;&#039;&#039;. This includes bosshaxx.&lt;br /&gt;
| None&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==WebKit vuln testing==&lt;br /&gt;
See [https://github.com/yellows8/3ds_browserhax_common/issues/28 here].&lt;/div&gt;</summary>
		<author><name>Yellows8</name></author>
	</entry>
	<entry>
		<id>https://www.3dbrew.org/w/index.php?title=3DS_System_Flaws&amp;diff=19848</id>
		<title>3DS System Flaws</title>
		<link rel="alternate" type="text/html" href="https://www.3dbrew.org/w/index.php?title=3DS_System_Flaws&amp;diff=19848"/>
		<updated>2017-04-11T13:41:35Z</updated>

		<summary type="html">&lt;p&gt;Yellows8: /* Standalone Sysmodules */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Exploits are used to execute unofficial code (homebrew) on the Nintendo 3DS. This page is a list of publicly known system flaws, for userland applications/applets flaws see [[3DS_Userland_Flaws|here]].&lt;br /&gt;
&lt;br /&gt;
=Stale / Rejected Efforts=&lt;br /&gt;
* Neimod has been working on a RAM dumping setup for a little while now. He&#039;s de-soldered the 3DS&#039;s RAM chip and hooked it and the RAM pinouts on the 3DS&#039; PCB up to a custom RAM dumping setup. A while ago he published photos showing his setup to be working quite well, with the 3DS successfully booting up. However, his flickr stream is now private along with most of his work.&lt;br /&gt;
&lt;br /&gt;
* Someone (who will remain unnamed) has released CFW and CIA installers, all of which is copied from the work of others, or copyrighted material.&lt;br /&gt;
&lt;br /&gt;
==Tips and info==&lt;br /&gt;
The 3DS uses the XN feature of the ARM11 processor. There&#039;s no official way from applications to enable executable permission for memory containing arbitrary unsigned code(there&#039;s a [[SVC]] for this, but only [[RO_Services|RO-module]] has access to it). A usable userland exploit would still be useful: you could only do return-oriented-programming with it initially. From ROP one could then exploit system flaw(s), see below.&lt;br /&gt;
&lt;br /&gt;
SD card [[extdata]] and SD savegames can be attacked, for consoles where the console-unique [[Nand/private/movable.sed|movable.sed]] was dumped(accessing SD data is far easier by running code on the target 3DS however).&lt;br /&gt;
&lt;br /&gt;
=System flaws=&lt;br /&gt;
== Hardware ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
!  Summary&lt;br /&gt;
!  Description&lt;br /&gt;
!  Fixed with hardware model/revision&lt;br /&gt;
!  Newest hardware model/revision this flaw was checked for&lt;br /&gt;
!  Timeframe this was discovered&lt;br /&gt;
!  Discovered by&lt;br /&gt;
|-&lt;br /&gt;
| ARM9/ARM11 bootrom vectors point at uninitialized RAM&lt;br /&gt;
| ARM9&#039;s and ARM11&#039;s exception vectors are hardcoded to point at the CPU&#039;s internal memory (0x08000000 region for ARM9, AXIWRAM for ARM11). While the bootrom does set them up to point to an endless loop at some point during boot, it does not do so immediately. As such, a carefully-timed fault injection (via hardware) to trigger an exception (such as an invalid instruction) will cause execution to fall into ARM9 RAM. &lt;br /&gt;
Since RAM isn&#039;t cleared on boot (see below), one can immediately start execution of their own code here to dump bootrom, OTP, etc.&lt;br /&gt;
The ARM9 bootrom does the following at reset:  reset vector branches to another instruction, then branches to bootrom+0x8000. Hence, there&#039;s no way to know for certain when exactly the ARM9 exception-vector data stored in memory gets initialized.&lt;br /&gt;
&lt;br /&gt;
This requires *very* *precise* timing for triggering the hardware fault.&lt;br /&gt;
&lt;br /&gt;
It has been exploited by derrek to dump the ARM9 bootrom as of Summer 2015.&lt;br /&gt;
| None: all available 3DS models at the time of writing have the exact same ARM9/ARM11 bootrom for the unprotected areas.&lt;br /&gt;
| New3DS&lt;br /&gt;
| End of February 2014&lt;br /&gt;
| [[User:Derrek|derrek]], WulfyStylez (May 2015) independently&lt;br /&gt;
|-&lt;br /&gt;
| Missing AES key clearing&lt;br /&gt;
| The hardware AES engine does not clear keys when doing a hard reset/reboot.&lt;br /&gt;
| None&lt;br /&gt;
| New3DS&lt;br /&gt;
| August 2014&lt;br /&gt;
| Mathieulh/Others&lt;br /&gt;
|-&lt;br /&gt;
| No RAM clearing on reboots&lt;br /&gt;
| On an MCU-triggered reboot all RAM including FCRAM/ARM9 memory/AXIWRAM/VRAM keeps its contents.&lt;br /&gt;
| None&lt;br /&gt;
| New3DS&lt;br /&gt;
| March 2014&lt;br /&gt;
| [[User:Derrek|derrek]]&lt;br /&gt;
|-&lt;br /&gt;
| 32bits of actual console-unique TWLNAND keydata&lt;br /&gt;
| On retail the 8-bytes at ARM9 address [[Memory_layout|0x01FFB808]] are XORed with hard-coded data, to generate the TWL console-unique keys, including TWLNAND. On Old3DS the high u32 is always 0x0, while on New3DS that u32 is always 0x2. On top of this, the lower u32&#039;s highest bit is always ORed. only 31 bits of the TWL console-unique keydata / TWL consoleID are actually console-unique.&lt;br /&gt;
This allows one to easily bruteforce the TWL console-unique keydata with *just* data from TWLNAND. On DSi the actual console-unique data for key generation is 8-bytes(all bytes actually set).&lt;br /&gt;
| None&lt;br /&gt;
| New3DS&lt;br /&gt;
| 2012?&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| DSi / 3DS-TWL key-generator&lt;br /&gt;
| After using the key generator to generate the normal-key, you could overwrite parts of the normal-key with your own data and then recover the key-generator output by comparing the new crypto output with the original crypto output. From the normal-key outputs, you could deduce the TWL key-generator function.&lt;br /&gt;
This applies to the keyX/keyY too.&lt;br /&gt;
&lt;br /&gt;
This attack does not work for the 3DS key-generator because keyslots 0-3 are only for TWL keys.&lt;br /&gt;
| None&lt;br /&gt;
| New3DS&lt;br /&gt;
| 2011&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| 3DS key-generator&lt;br /&gt;
| The algorithm for generating the normal-keys for keyslots is cryptographically weak.  As a result, it is easily susceptible to differential cryptanalysis if the normal-key corresponding to any scrambler-generated keyslot is discovered.&lt;br /&gt;
&lt;br /&gt;
Several such pairs of matching normal-keys and KeyY values were found, leading to deducing the key-generator function.&lt;br /&gt;
| None&lt;br /&gt;
| New3DS&lt;br /&gt;
| February 2015&lt;br /&gt;
| [[User:Yellows8|Yellows8]], [[User:Plutooo|plutoo]]&lt;br /&gt;
|-&lt;br /&gt;
| FIRM partitions known-plaintext&lt;br /&gt;
| The [[Flash_Filesystem|FIRM partitions]] are encrypted with AES-CTR without a MAC. Since this works by XOR&#039;ing data with a static (per-console in this case) keystream, one can deduce the keystream of a portion of each FIRM partition if they have the actual FIRM binary stored in it.&lt;br /&gt;
&lt;br /&gt;
This can be paired with many exploits. For example, it allows minor FIRM downgrades (i.e. 10.4 to 9.6 or 9.5 to 9.4, but not 9.6 to 9.5).&lt;br /&gt;
&lt;br /&gt;
This can be somewhat addressed by having a FIRM header skip over previously used section offsets, but this would just air-gap newer FIRMs without fixing the core bug. This can also only be done a limited number of times due to the size of FIRM versus the size of the partitions.&lt;br /&gt;
| None&lt;br /&gt;
| New3DS&lt;br /&gt;
| &lt;br /&gt;
| Everyone&lt;br /&gt;
|-&lt;br /&gt;
| RSA keyslots don&#039;t clear exponent when setting modulus&lt;br /&gt;
| The [[RSA_Registers|RSA keyslots]] are set by boot ROM to have four private RSA keys.  The exponent value in the RSA registers is write-only and not readable.&lt;br /&gt;
&lt;br /&gt;
However, when setting a keyslot&#039;s modulus, the RSA hardware leaves the exponent alone.  This allows retrieving the exponent by doing a discrete logarithm of the output.&lt;br /&gt;
&lt;br /&gt;
By setting the modulus to a prime number whose modular multiplicative order is &amp;quot;smooth&amp;quot; (that is, p-1 is divisible by only small prime numbers), discrete logarithms can be calculated quickly using the [[wikipedia:Pohlig-Hellman algorithm|Pohlig-Hellman algorithm]].  If the prime chosen is greater than the modulus, but the same bit size, the discrete logarithm is the private exponent.&lt;br /&gt;
&lt;br /&gt;
This exploit&#039;s usefulness is limited: RSA keyslot 0 is only used in current firmware for deriving the 6.x save and 7.x NCCH keys, which were already known, and the other three keyslots are entirely unused.  Additionally, with a boot ROM dump, this exploit is moot; these private keys are located in the protected ARM9 boot ROM.&lt;br /&gt;
| None&lt;br /&gt;
| New3DS&lt;br /&gt;
| March 2016&lt;br /&gt;
| [[User:Myria|Myria]]&lt;br /&gt;
|-&lt;br /&gt;
| Boot9 AES keyinit function issues&lt;br /&gt;
| [[Bootloader|Boot9]] seems to have two bugs in the AES key-init function, see [[AES_Registers#AES_key-init|here]].&lt;br /&gt;
| None&lt;br /&gt;
| BootROM issue.&lt;br /&gt;
| 2015&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| [[CONFIG11_Registers#CFG11_GPUPROT|CFG11_GPUPROT]] allowing acccess to AXIWRAM/FCRAM-BASE-memregion&lt;br /&gt;
| [[CONFIG11_Registers#CFG11_GPUPROT|CFG11_GPUPROT]] can be configured by anything with access to it to allow the GPU to access the entire AXIWRAM+FCRAM. For example, this is an issue for any sysmodule that gets exploited and has access to this register memory-page(include one that&#039;s listed below).&lt;br /&gt;
&lt;br /&gt;
See also &amp;quot;kernelhax via gspwn&amp;quot; below.&lt;br /&gt;
| None&lt;br /&gt;
| New3DS&lt;br /&gt;
| February 7, 2017&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== ARM9 software ==&lt;br /&gt;
&lt;br /&gt;
=== arm9loader ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Summary&lt;br /&gt;
!  Description&lt;br /&gt;
!  Successful exploitation result&lt;br /&gt;
!  Fixed in [[FIRM]] system version&lt;br /&gt;
!  Last [[FIRM]] system version this flaw was checked for&lt;br /&gt;
!  Timeframe this was discovered&lt;br /&gt;
!  Public disclosure timeframe&lt;br /&gt;
!  Discovered by&lt;br /&gt;
|-&lt;br /&gt;
| Generating the keysector console-unique keys with ITCM+Boot9&lt;br /&gt;
| [[Bootloader|Boot9]] decrypts the 0x100-byte [[OTP_Registers|OTP]] using AES-CBC with keydata stored in Boot9. If hash verification is successful, the plaintext of the first 0x90-bytes are copied into [[Memory_layout|ITCM]]. This is the &#039;&#039;exact&#039;&#039; &#039;&#039;same&#039;&#039; region hashed by arm9loader when generating the console-unique keys for decrypting the keysector, except arm9loader uses the raw encrypted OTP.&lt;br /&gt;
&lt;br /&gt;
Therefore, with the OTP keydata+IV from Boot9 you can: encrypt the 0x90-bytes from ITCM, then hash the output to get the console-unique keys for the system&#039;s keysector. This can even be done for Old3DS which doesn&#039;t have the arm9loader keysector officially.&lt;br /&gt;
&lt;br /&gt;
It&#039;s unknown why arm9loader only used the first 0x90-bytes of OTP. Using more data from OTP would&#039;ve prevented this. Fixing this would require doing exactly that, but that would also mean updating the NAND keysector(which is dangerous).&lt;br /&gt;
| See description.&lt;br /&gt;
| None&lt;br /&gt;
| &lt;br /&gt;
| 2015&lt;br /&gt;
| January 6, 2017&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| Rearrangable keys in the NAND keystore&lt;br /&gt;
| Due to the keystore being encrypted with AES-ECB, one can rearrange blocks and still have the NAND keystore decrypt in a deterministic way. &lt;br /&gt;
&lt;br /&gt;
Using 10.0 FIRM it is possible to rearrange keys such that ARM9 memory is executed. As such using existing ARM9 execution 10.0 FIRM can be written to NAND and a payload written to memory, with the payload to be executed post-K9L using an MCU reboot.&lt;br /&gt;
| arm9loaderhax given existing ARM9 code execution&lt;br /&gt;
| None&lt;br /&gt;
| [[11.3.0-36|11.3.0-X]]&lt;br /&gt;
| Early 2016&lt;br /&gt;
| 27 September 2016&lt;br /&gt;
| Myria, [[User:Dark samus|dark_samus]]; mathieulh (independently); [[User:Plutooo|plutoo]] (independently) + others&lt;br /&gt;
|-&lt;br /&gt;
| Uncleared OTP hash keydata in console-unique 0x11 key-generation&lt;br /&gt;
| Kernel9Loader does not clear the [[SHA_Registers#SHA_HASH|SHA_HASH register]] after use. As a result, the data stored here as K9L hands over to Kernel9 is the hash of [[OTP_Registers|OTP data]] used to seed the [[FIRM#New_3DS_FIRM|console-unique NAND keystore decryption key]] set on keyslot 0x11.&lt;br /&gt;
&lt;br /&gt;
Retrieving this keydata and the [[Flash_Filesystem#0x12C00|NAND keystore]] of the same device allows calculating the decrypted New3DS NAND keystore (non-unique, common to all New3DS units), which contains AES normal keys, also set on keyslot 0x11, which are then used to derive all current [[AES_Registers#Keyslots|New3DS-only AES keyXs]] including the newer batch introduced in [[9.6.0-24#arm9loader|9.6.0-X]]. From there, it is trivial to perform the same key derivation in order to initialize those keys on any system version, and even on Old3DS.&lt;br /&gt;
&lt;br /&gt;
This can be performed by exploiting the &amp;quot;arm9loaderhax&amp;quot; vulnerability to obtain post-K9L code execution after an MCU reboot (the bootrom section-loading fail is not relevant here, this attack was performed without OTP data by brute-forcing keys), and using this to dump the SHA_HASH register. This attack works on any FIRM version shipping a vulnerable version of K9L, whereas OTP dumping required a boot of &amp;lt;[[3.0.0-6|3.0.0-X]].&lt;br /&gt;
&lt;br /&gt;
This attack results in obtaining the entire (0x200-bytes) NAND keystore - it was confirmed at a later date that this keystore is encrypted with the same key (by comparing the decrypted data from multiple units), and therefore using another key in this store will not remedy the issue as all keys are known (i.e. later, unused keys decrypt to the same 0x200-bytes constant with the same OTP hash). Later keys could have been encrypted differently but this is not the case. As a result of this, it is not possible for Nintendo to use K9L again in its current format for its intended purpose, though this was not news from the moment people dumped a New3DS OTP.&lt;br /&gt;
| Derivation of all New3DS keys generated via the NAND keystore (0x1B &amp;quot;Secure4&amp;quot; etc.)&lt;br /&gt;
| None&lt;br /&gt;
| [[11.3.0-36|11.3.0-X]]&lt;br /&gt;
| ~April 2015, implemented in May 2015&lt;br /&gt;
| 13 January 2016&lt;br /&gt;
| [[User:WulfyStylez|WulfyStylez]], [[User:Dazzozo|Dazzozo]], [[User:Shinyquagsire23|shinyquagsire23]] (complimentary + implemented), [[User:Plutooo|plutoo]], Normmatt (discovered independently)&lt;br /&gt;
|-&lt;br /&gt;
| enhanced-arm9loaderhax&lt;br /&gt;
| See the 32c3 3ds talk.&lt;br /&gt;
Since this is a combination of a trick with the arm9-bootrom + arm9loaderhax, and since you have to manually write FIRM to the firm0/firm1 NAND partitions, this can&#039;t be completely fixed. Any system with existing ARM9 code execution and an OTP/OTP hash dump can exploit this. Additionally, by using the FIRM partition known-plaintext bug and bruteforcing the second entry in the keystore, this can currently be exploited on all New3DS systems without any other prerequisite hacks.&lt;br /&gt;
| arm9loaderhax which automatically occurs at hard-boot.&lt;br /&gt;
| See arm9loaderhax / description.&lt;br /&gt;
| See arm9loaderhax / description.&lt;br /&gt;
| Theorized around mid July, 2015. Later implemented+tested by [[User:Plutooo|plutoo]] and [[User:Derrek|derrek]].&lt;br /&gt;
| 32c3 3ds talk (December 27, 2015)&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| Missing verification-block for the 9.6 keys (arm9loaderhax)&lt;br /&gt;
| Starting with [[9.6.0-24|9.6.0-X]] a new set of NAND-based keys were introduced. However, no verification block was added to verify that the new key read from NAND is correct. This was technically an issue from [[9.5.0-22|9.5.0-X]] with the original sector+0 keydata, however the below is only possible with [[9.6.0-24|9.6.0-X]] since keyslots 0x15 and 0x16 are generated from different 0x11 keyXs.&lt;br /&gt;
&lt;br /&gt;
Writing an incorrect key to NAND will cause arm9loader to decrypt the ARM9 kernel as garbage and then jump to it.&lt;br /&gt;
&lt;br /&gt;
This allows an hardware-based attack where you can boot into an older exploited firmware, fill all memory with NOP sleds/jump-instructions, and then reboot into executing garbage. By automating this process with various input keydata, eventually you&#039;ll find some garbage that jumps to your code.&lt;br /&gt;
&lt;br /&gt;
This gives very early ARM9 code execution (pre-ARM9 kernel). As such, it is possible to dump RSA keyslots with this and calculate the 6.x [[Savegames#6.0.0-11_Savegame_keyY|save]], and 7.x [[NCCH]] keys. This cannot be used to recover keys initialized by arm9loader itself. This is due to it wiping the area used for its stack during NAND sector decryption and keyslot init. &lt;br /&gt;
&lt;br /&gt;
Due to FIRMs on both Old and New 3DS using the same RSA data, this can be exploited on Old3DS as well, but only if one already has the actual plaintext normalkey from New3DS NAND sector 0x96 offset-0 and has dumped the OTP area of the Old3DS.&lt;br /&gt;
| Recovery of 6.x [[Savegames#6.0.0-11_Savegame_keyY|save key]]/7.x [[NCCH]] key, access to uncleared OTP hash keydata&lt;br /&gt;
| None&lt;br /&gt;
| [[11.3.0-36|11.3.0-X]]&lt;br /&gt;
| March, 2015&lt;br /&gt;
| &lt;br /&gt;
| [[User:Plutooo|plutoo]]&lt;br /&gt;
|-&lt;br /&gt;
| Uncleared New3DS keyslot 0x11&lt;br /&gt;
| Originally the New3DS [[FIRM]] arm9bin loader only cleared keyslot 0x11 when it gets executed at firmlaunch. This was fixed with [[9.5.0-22|9.5.0-X]] by completely clearing keyslot 0x11 immediately after the loader finishes using keyslot 0x11.&lt;br /&gt;
This means that any ARM9 code that can execute before the loader clears the keyslot at firmlaunch(including firmlaunch-hax) can get access to the uncleared keyslot 0x11, which then allows one to generate all &amp;lt;=v9.5 New3DS keyXs which are generated by keyslot 0x11.&lt;br /&gt;
&lt;br /&gt;
Therefore, to completely fix this the loader would have to generate more keys using different keyslot 0x11 keydata. This was done with [[9.6.0-24|9.6.0-X]].&lt;br /&gt;
| New3DS keyXs generation&lt;br /&gt;
| Mostly fixed with [[9.5.0-22|9.5.0-X]], completely fixed with new keys with [[9.6.0-24|9.6.0-X]].&lt;br /&gt;
| &lt;br /&gt;
| February 3, 2015 (one day after [[9.5.0-22|9.5.0-X]] release)&lt;br /&gt;
| &lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Process9 ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Summary&lt;br /&gt;
!  Description&lt;br /&gt;
!  Successful exploitation result&lt;br /&gt;
!  Fixed in [[FIRM]] system version&lt;br /&gt;
!  Last [[FIRM]] system version this flaw was checked for&lt;br /&gt;
!  Timeframe this was discovered&lt;br /&gt;
!  Public disclosure timeframe&lt;br /&gt;
!  Discovered by&lt;br /&gt;
|-&lt;br /&gt;
| Leak of normal-key matching a key-scrambler key&lt;br /&gt;
| New 3DS firmware versions [[8.1.0-0 New3DS|8.1.0]] through [[9.2.0-20|9.2.0]] set the encryption key for [[Amiibo]] data using a hardcoded normal-key in Process9.  In firmware [[9.3.0-21|9.3.0]], Nintendo &amp;quot;fixed&amp;quot; this by using the key scrambler instead, by calculating the keyY value for keyslot 0x39 that results in the same normal-key, then hardcoding that keyY into Process9.&lt;br /&gt;
&lt;br /&gt;
Nintendo&#039;s fix is actually the problem: Nintendo revealed the normal-key matching an unknown keyX and a known keyY.  Combined with the key scrambler using an insecure scrambling algorithm (see &amp;quot;Hardware&amp;quot; above), the key scrambler function could be deduced.&lt;br /&gt;
| Deducing the keyX for keyslot 0x39 and the key scrambler algorithm&lt;br /&gt;
| New 3DS [[9.3.0-21|9.3.0-X]], sort of&lt;br /&gt;
| [[10.0.0-27|10.0.0-X]]&lt;br /&gt;
| Sometime in 2015 after the hardware key-generator was broken.&lt;br /&gt;
| 32c3 3ds talk (December 27, 2015)&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| Leak of normal-key matching a key-generator key&lt;br /&gt;
| During the 3DS&#039; development (June/July 2010) Nintendo added support installing encrypted content ([[CIA]]). Common-key index1 was intended to be a [[AES|hardware generated key]]. However while they added code to generate the key in hardware, they forgot to remove the normal-key for index1 (used elsewhere, likely old debug code). Nintendo later removed the normal key sometime before the first non-prototype firmware release.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Knowing the keyY and the normal-key for common-key index1, the devkit key-generator algorithm can be deduced (see &amp;quot;Hardware&amp;quot; above). Additionally the remaining devkit common-keys can be generated once the common-key keyX is recovered.&lt;br /&gt;
&lt;br /&gt;
Note the devkit key-generator was discovered to be the same as the retail key-generator.&lt;br /&gt;
| Deducing the keyX for keyslot 0x3D and hardware key-generator algorithm. Generate remaining devkit common-keys.&lt;br /&gt;
| pre-[[1.0.0-0|1.0.0-X]]&lt;br /&gt;
| &lt;br /&gt;
| Shortly after the key-generator was revealed to be flawed at the 32c3 3ds talk&lt;br /&gt;
| January 20, 2016&lt;br /&gt;
| [[User:Jakcron|jakcron]]&lt;br /&gt;
|-&lt;br /&gt;
| safefirmhax&lt;br /&gt;
| SAFE_MODE_FIRM is almost never updated(even when NATIVE_FIRM is updated for vuln fixes), this can be noticed by &#039;&#039;just&#039;&#039; checking 3dbrew/ninupdates title-listings.&lt;br /&gt;
&lt;br /&gt;
The fix for firmlaunch-hax was only applied to NATIVE_FIRM in [[9.5.0-22|9.5.0-X]], leaving SAFE_FIRM exploitable. With ARM11-kernel execution, one can trigger FIRM-launch in to SAFE_FIRM, do Kernel9 &amp;lt;=&amp;gt; Kernel11 sync, PXI sync and then repeat the original attack on SAFE_FIRM instead.&lt;br /&gt;
| ARM9 code execution&lt;br /&gt;
| [[11.3.0-36|11.3.0-X]]&lt;br /&gt;
| &lt;br /&gt;
| 2012-2013?&lt;br /&gt;
| Wiki: January 2, 2017&lt;br /&gt;
| Everyone&lt;br /&gt;
|-&lt;br /&gt;
| safefirmhax 1.1&lt;br /&gt;
| Nintendo&#039;s original safefirmhax fix was flawed -- they added a global boolean that got set to true whenever a non-sysmodule title got launched (except for a hardcoded repair title id), and panic()&#039;d if that boolean was true to prevent launching safefirm after hax was active. However, because the boolean was initially false after firmlaunch -- With ARM11-kernel execution, one could FIRM-launch into NATIVE_FIRM, and then immediately FIRM-launch again into SAFE_FIRM early in NATIVE_FIRM boot before the boolean got set to true to repeat the safehax attack.&lt;br /&gt;
&lt;br /&gt;
This was fixed by adding additional CFG9_BOOTENV checks to firmlaunch code in 11.4.&lt;br /&gt;
| ARM9 code execution&lt;br /&gt;
| [[11.4.0-36|11.4.0-X]]&lt;br /&gt;
| &lt;br /&gt;
| safefirmhax fix&lt;br /&gt;
| Wiki: April 10, 2017&lt;br /&gt;
| Everyone&lt;br /&gt;
|-&lt;br /&gt;
| ntrcardhax&lt;br /&gt;
| When reading the banner of a NTR title, Process9 relies on a hardware register to know when the banner was fully read.&lt;br /&gt;
However that register is shared between the ARM9 and the ARM11.&lt;br /&gt;
An attacker with k11 control can so make Process9 believe the banner continues forever and so trigger a buffer overflow.&lt;br /&gt;
With a custom banner for a NTR flashcart, this leads to code execution in Process9.&lt;br /&gt;
&lt;br /&gt;
This was fixed by adding bound checks on the read data.&lt;br /&gt;
| ARM9 code execution&lt;br /&gt;
| [[10.4.0-29|10.4.0-X]]&lt;br /&gt;
| &lt;br /&gt;
| March 2015&lt;br /&gt;
| 32c3 3ds talk (December 27, 2015)&lt;br /&gt;
| [[User:Plutooo|plutoo]]&lt;br /&gt;
|-&lt;br /&gt;
| Title downgrading via [[Application_Manager_Services|AM]]([[Application_Manager_Services_PXI|PXI]])&lt;br /&gt;
| When a title is *already* installed, Process9 will compare the installed title-version with the title-version being installed. When the one being installed is older, Process9 would return an error.&lt;br /&gt;
&lt;br /&gt;
However, this can be bypassed by just deleting the title first via the service command(s) for that: with the title removed from the [[Title_Database]], Process9 can&#039;t compare the input title-version with anything. Hence, titles can be downgraded this way.&lt;br /&gt;
&lt;br /&gt;
[[11.0.0-33|11.0.0-X]] fixed this for key system titles (MSET, Home Menu, spider, ErrDisp, SKATER, NATIVE_FIRM, and every retail system module), by checking the version of the title to install against a hard-coded list of (titleID, minimumVersionRequired) pairs.&lt;br /&gt;
| Bypassing title version check at installation, which then allows downgrading any title.&lt;br /&gt;
| [[11.0.0-33|11.0.0-X]], for key system titles.&lt;br /&gt;
| NATIVE_FIRM / AM-sysmodule [[11.0.0-33|11.0.0-X]]&lt;br /&gt;
| ?&lt;br /&gt;
| &lt;br /&gt;
| ?&lt;br /&gt;
|-&lt;br /&gt;
| FAT FS code null-deref&lt;br /&gt;
| When FSFile:Read is used with a file which is corrupted on a FAT filesystem(in particular SD), Process9 can crash. This particular crash is caused by a function returning NULL instead of an actual ptr due to an error. The caller of that function doesn&#039;t check for NULL which then triggers a read based at NULL.&lt;br /&gt;
&lt;br /&gt;
Sample &amp;quot;fsck.vfat -n -v -V &amp;lt;fat image backup&amp;gt;&amp;quot; output for the above crash:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;...&lt;br /&gt;
Starting check/repair pass.&lt;br /&gt;
&amp;lt;FilePath0&amp;gt; and&lt;br /&gt;
&amp;lt;FilePath1&amp;gt;&lt;br /&gt;
 share clusters.&lt;br /&gt;
 Truncating second to 3375104 bytes.&lt;br /&gt;
&amp;lt;FilePath1&amp;gt;&lt;br /&gt;
 File size is 2787392 bytes, cluster chain length is 16384 bytes.&lt;br /&gt;
 Truncating file to 16384 bytes.&lt;br /&gt;
Checking for unused clusters.&lt;br /&gt;
Reclaimed 1 unused cluster (16384 bytes).&lt;br /&gt;
Checking free cluster summary.&lt;br /&gt;
Free cluster summary wrong (1404490 vs. really 1404491)&lt;br /&gt;
 Auto-correcting.&lt;br /&gt;
Starting verification pass.&lt;br /&gt;
Checking for unused clusters.&lt;br /&gt;
Leaving filesystem unchanged.&amp;lt;/pre&amp;gt;&lt;br /&gt;
| Useless null-based-read&lt;br /&gt;
| None&lt;br /&gt;
| [[9.6.0-24|9.6.0-X]]&lt;br /&gt;
| July 8-9, 2015&lt;br /&gt;
| &lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| RSA signature padding checks&lt;br /&gt;
| The TWL_FIRM RSA sig padding check code used for all TWL RSA sig-checks has issues, see [[FIRM|here]].&lt;br /&gt;
The main 3DS RSA padding check code(non-certificate, including NATIVE_FIRM) uses the function used with the above to extract more padding + the actual hash from the additional padding. This isn&#039;t really a problem here because there&#039;s proper padding check code which is executed prior to this.&lt;br /&gt;
| &lt;br /&gt;
| None&lt;br /&gt;
| [[9.5.0-22|9.5.0-X]]&lt;br /&gt;
| March 2015&lt;br /&gt;
| &lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| [[AMPXI:ValidateDSiWareSectionMAC]] [[AES_Registers|AES]] keyslot reuse&lt;br /&gt;
| When the input DSiWare section index is higher than &amp;lt;max number of DSiWare sections supported by this FIRM&amp;gt;, Process9 uses keyid 0x40 for calculating the AESMAC, which translates to keyslot 0x40. The result is that the keyslot is left at whatever was already selected before, since the AES selectkeyslot code will immediately  return when keyslot is &amp;gt;=0x40. However, actually exploiting this is difficult: the calculated AESMAC is never returned, this command just compares the calculated AESMAC with the input AESMAC(result-code depends on whether the AESMACs match). It&#039;s unknown whether a timing attack would work with this.&lt;br /&gt;
This is basically a different form of the pxips9 keyslot vuln, except with AESMAC etc.&lt;br /&gt;
| See description.&lt;br /&gt;
| None&lt;br /&gt;
| [[11.3.0-36|11.3.0-X]]&lt;br /&gt;
| March 15, 2015&lt;br /&gt;
| December 29, 2015&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| pxips9 [[AES_Registers|AES]] keyslot reuse&lt;br /&gt;
| This requires access to the [[Process_Services|ps:ps]]/pxi:ps9 services. One way to get access to this would be snshax on system-version &amp;lt;=10.1.0-X(see 32c3 3ds talk).&lt;br /&gt;
When an invalid key-type value is passed to any of the PS commands, Process9 will try to select keyslot 0x40. That aesengine_setkeyslot() code will then immediately return due to the invalid keyslot value. Since that function doesn&#039;t return any errors, Process9 will just continue to do crypto with whatever AES keyslot was selected before the PS command was sent.&lt;br /&gt;
| Reusing the previously used keyslot, for crypto with PS.&lt;br /&gt;
| None&lt;br /&gt;
| [[11.3.0-36|11.3.0-X]]&lt;br /&gt;
| Roughly the same time(same day?) as firmlaunch-hax.&lt;br /&gt;
| December 29, 2015&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| firmlaunch-hax: FIRM header ToCToU&lt;br /&gt;
| This can&#039;t be exploited from ARM11 userland.&lt;br /&gt;
During [[FIRM]] launch, the only FIRM header the ARM9 uses at all is stored in FCRAM, this is 0x200-bytes(the actual used FIRM RSA signature is read to the Process9 stack however). The ARM9 doesn&#039;t expect &amp;quot;anything&amp;quot; besides the ARM9 to access this data.&lt;br /&gt;
With [[9.5.0-22]] the address of this FIRM header was changed from a FCRAM address, to ARM9-only address 0x01fffc00.&lt;br /&gt;
| ARM9 code execution&lt;br /&gt;
| [[9.5.0-22]]&lt;br /&gt;
| &lt;br /&gt;
| 2012, 3 days after [[User:Yellows8|Yellows8]] started Process9 code RE.&lt;br /&gt;
| &lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| Uninitialized data output for (PXI) command replies&lt;br /&gt;
| PXI commands for various services(including some [[Filesystem_services_PXI|here]] and many others) can write uninitialized data (like from ARM registers) to the command reply. This happens with stubbed commands, but this can also occur with certain commands when returning an error.&lt;br /&gt;
Certain ARM11 service commands have this same issue as well.&lt;br /&gt;
| &lt;br /&gt;
| None&lt;br /&gt;
| [[9.3.0-21|9.3.0-X]]&lt;br /&gt;
| ?&lt;br /&gt;
| &lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| [[Filesystem_services_PXI|FSPXI]] OpenArchive SD permissions&lt;br /&gt;
| Process9 does not use the exheader ARM9 access-mount permission flag for SD at all.&lt;br /&gt;
This would mean ARM11-kernelmode code / fs-module itself could directly use FSPXI to access SD card without ARM9 checking for SD access, but this is rather useless since a process is usually running with SD access(Home Menu for example) anyway.&lt;br /&gt;
| &lt;br /&gt;
| None&lt;br /&gt;
| [[9.3.0-21|9.3.0-X]]&lt;br /&gt;
| 2012&lt;br /&gt;
| &lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| [[AMPXI:ExportDSiWare]] export path&lt;br /&gt;
| Process9 allocates memory on Process9 heap for the export path then verifies that the actual allocated size matches the input size. Then Process9 copies the input path from FCRAM to this buffer, and uses it with the Process9 FS openfile code, which use paths in the form of &amp;quot;&amp;lt;mountpoint&amp;gt;:/&amp;lt;path&amp;gt;&amp;quot;.&lt;br /&gt;
Process9 does not check the contents of this path at all before passing it to the FS code, besides writing a NUL-terminator to the end of the buffer.&lt;br /&gt;
| Exporting of DSiWare to arbitrary Process9 file-paths, such as &amp;quot;nand:/&amp;lt;path&amp;gt;&amp;quot; etc. This isn&#039;t really useful since the data which gets written can&#039;t be controlled.&lt;br /&gt;
| None&lt;br /&gt;
| [[9.5.0-22]]&lt;br /&gt;
| April 2013&lt;br /&gt;
| &lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| [[DSiWare_Exports]] [[CTCert]] verification&lt;br /&gt;
| Just like DSi originally did, 3DS verifies the APCert for DSiWare on SD with the CTCert also in the DSiWare .bin. On DSi this was fixed with with system-version 1.4.2 by verifying with the actual console-unique cert instead(stored in NAND), while on 3DS it&#039;s still not(?) fixed.&lt;br /&gt;
On 3DS however this is rather useless, due to the entire DSiWare .bin being encrypted with the console-unique movable.sed keyY.&lt;br /&gt;
| When the movable.sed keyY for the target 3DS is known and the target 3DS CTCert private-key is unknown, importing of modified DSiWare SD .bin files.&lt;br /&gt;
| Unknown, probably none.&lt;br /&gt;
| ?&lt;br /&gt;
| April 2013&lt;br /&gt;
| &lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| [[Gamecard_Services_PXI]] unchecked REG_CTRCARDCNT transfer-size&lt;br /&gt;
| The u8 REG_CTRCARDCNT transfer-size parameter for the [[Gamecard_Services_PXI]] read/write CTRCARD commands is used as an index for an array of u16 values. Before [[5.0.0-11|5.0.0-X]] this u8 value wasn&#039;t checked, thus out-of-bounds reads could be triggered(which is rather useless in this case).&lt;br /&gt;
| Out-of-bounds read for a value which gets written to a register.&lt;br /&gt;
| [[5.0.0-11|5.0.0-X]]&lt;br /&gt;
| &lt;br /&gt;
| 2013?&lt;br /&gt;
| &lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| [[PXI_Registers|PXI]] cmdbuf buffer overrun&lt;br /&gt;
| The Process9 code responsible [[PXI_Registers|PXI]] communications didn&#039;t verify the size of the incoming command before writing it to a C++ member variable. &lt;br /&gt;
| Probably ARM9 code execution&lt;br /&gt;
| [[5.0.0-11|5.0.0-11]]&lt;br /&gt;
| &lt;br /&gt;
| March 2015, original timeframe if any unknown&lt;br /&gt;
| &lt;br /&gt;
| [[User:Plutooo|plutoo]]/[[User:Yellows8|Yellows8]]/maybe others(?)&lt;br /&gt;
|-&lt;br /&gt;
| [[Application_Manager_Services_PXI|PXIAM]] command 0x003D0108(See also [[Application_Manager_Services|this]])&lt;br /&gt;
| When handling this command, Process9 allocates a 0x2800-byte heap buffer, then copies the 4 FCRAM input buffers to this heap buffer without checking the sizes at all(only the buffers with non-zero sizes are copied). Starting with [[5.0.0-11|5.0.0-X]], the total combined size of the input data must be &amp;lt;=0x2800.&lt;br /&gt;
| ARM9 code execution&lt;br /&gt;
| [[5.0.0-11|5.0.0-X]]&lt;br /&gt;
| &lt;br /&gt;
| May 2013&lt;br /&gt;
| &lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| [[Process_Services_PXI|PS RSA]] commands buffer overflows&lt;br /&gt;
| pxips9 cmd1(not accessible via ps:ps) and VerifyRsaSha256: unchecked copy to a buffer in Process9&#039;s .bss, from the input FCRAM buffer. The buffer is located before the pxi cmdhandler threads&#039; stacks. SignRsaSha256 also has a buf overflow, but this isn&#039;t exploitable.&lt;br /&gt;
The buffer for this is the buffer for the signature data. With v5.0, the signature buffer was moved to stack, with a check for the signature data size. When the signature data size is too large, Process9 uses [[SVC|svcBreak]].&lt;br /&gt;
| ARM9 code execution&lt;br /&gt;
| [[5.0.0-11|5.0.0-X]]&lt;br /&gt;
| &lt;br /&gt;
| 2012&lt;br /&gt;
| &lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| [[PXI_Registers|PXI]] pxi_id bad check&lt;br /&gt;
| The Process9 code responsible for [[PXI_Registers|PXI]] communications read pxi_id as a signed char. There were two flaws:&lt;br /&gt;
* They used it as index to a lookup-table without checking the value at all.&lt;br /&gt;
* Another function verified that pxi_id &amp;lt; 7, allowing negative values to pass the check. This would also cause an out-of-range table-lookup.&lt;br /&gt;
| Maybe ARM9 code execution&lt;br /&gt;
| [[3.0.0-5|3.0.0-5]]&lt;br /&gt;
|&lt;br /&gt;
| March 2015, originally 2012 for the first issue at least&lt;br /&gt;
| &lt;br /&gt;
| [[User:Plutooo|plutoo]], [[User:Yellows8|Yellows8]], maybe others(?)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Kernel9 ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Summary&lt;br /&gt;
!  Description&lt;br /&gt;
!  Successful exploitation result&lt;br /&gt;
!  Fixed in [[FIRM]] system version&lt;br /&gt;
!  Last [[FIRM]] system version this flaw was checked for&lt;br /&gt;
!  Timeframe this was discovered&lt;br /&gt;
!  Discovered by&lt;br /&gt;
|-&lt;br /&gt;
| [[CONFIG Registers#CFG_SYSPROT9|CFG_SYSPROT9]] bit1 not set by Kernel9&lt;br /&gt;
| Old versions of Kernel9 never set bit1 of [[CONFIG Registers#CFG_SYSPROT9|CFG_SYSPROT9]]. This leaves the [[OTP Registers|0x10012000]]-region unprotected (this region should be locked early during boot!). Since it&#039;s never locked, you can dump it once you get ARM9 code execution.&lt;br /&gt;
&lt;br /&gt;
From [[3.0.0-5|3.0.0-X]] this was fixed by setting the bit in Kernel9 after poking some registers in that region. On New3DS arm9loader sets this bit instead of Kernel9, which is exploitable through a hardware + software vulnerability (see arm9loaderhax / description).&lt;br /&gt;
&lt;br /&gt;
This flaw resurged when it gained a new practical use: retrieving the OTP data for a New3DS console in order to decrypt the key data used in arm9loader (see enhanced-arm9loaderhax / description). This was performed by downgrading to a vulnerable system version. By accounting for differences in CTR-NAND crypto (0x05 -&amp;gt; 0x04, see partition encryption types [[Flash_Filesystem#NAND_structure|here]]), it is possible to boot a New3DS using Old3DS firmware 1.0-2.X and an Old3DS [[NCSD#NCSD_header|NCSD Header]] to retrieve the required OTP data using this flaw.&lt;br /&gt;
| Dumping of the [[OTP Registers|OTP]] area&lt;br /&gt;
| [[3.0.0-5|3.0.0-X]]&lt;br /&gt;
|&lt;br /&gt;
| February 2015&lt;br /&gt;
| [[User:Plutooo|plutoo]], Normmatt independently&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== ARM11 software ==&lt;br /&gt;
=== Kernel11 ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Summary&lt;br /&gt;
!  Description&lt;br /&gt;
!  Successful exploitation result&lt;br /&gt;
!  Fixed in [[FIRM]] system version&lt;br /&gt;
!  Last [[FIRM]] system version this flaw was checked for&lt;br /&gt;
!  Timeframe this was discovered&lt;br /&gt;
!  Discovered by&lt;br /&gt;
|-&lt;br /&gt;
| [[SVC|svcGetThreadList]] process reference leak&lt;br /&gt;
| When given a valid process handle (including &amp;lt;code&amp;gt;0xFFFF8001&amp;lt;/code&amp;gt;), svcGetThreadList forgets to decrement the reference count of the underlying [[KProcess]] instance, after having finished using it.&lt;br /&gt;
| Before [[11.2.0-35|11.2.0-X]]: reference count overflow and therefore use-after-free, but this UAF was most likely not exploitable&lt;br /&gt;
| &lt;br /&gt;
| [[11.3.0-36|11.3.0-X]]&lt;br /&gt;
| April 3, 2017&lt;br /&gt;
| [[User:TuxSH|TuxSH]]&lt;br /&gt;
|-&lt;br /&gt;
| kernelhax via gspwn&lt;br /&gt;
| Originally the kernel didn&#039;t initialize [[CONFIG11_Registers#CFG11_GPUPROT|CFG11_GPUPROT]]. Since it&#039;s 0 at hard-boot, this allowed the GPU to access the entire FCRAM + AXIWRAM.&lt;br /&gt;
| Entire FCRAM+AXIWRAM R/W.&lt;br /&gt;
| [[3.0.0-5|3.0.0-X]]&lt;br /&gt;
| &lt;br /&gt;
| February 7, 2017&lt;br /&gt;
| [[User:Plutooo|plutoo]], [[User:Yellows8|Yellows8]] partly&lt;br /&gt;
|-&lt;br /&gt;
| fasthax&lt;br /&gt;
| When a KTimer is created in pulse mode, the kernel calls a virtual function to reset the timer each time it pulses. The scheduler is locked for that core to avoid race conditions, but another core can call CloseHandle on the timer and free it, leading to a UAF vtable call.&lt;br /&gt;
| See description.&lt;br /&gt;
| [[11.3.0-36|11.3.0-X]]&lt;br /&gt;
| [[11.3.0-36|11.3.0-X]]&lt;br /&gt;
| May 2016&lt;br /&gt;
| nedwill&lt;br /&gt;
|-&lt;br /&gt;
| ipctakeover&lt;br /&gt;
| When sending cmdreplies, it does not validate that the src_addr and src_size match the equivalent dst_addr and dst_size. With a modified addr/size specified in a cmdreply for an output buffer, the data-copy for the first/last pages could be used to overwrite data outside of the buffer specified by the original process.&lt;br /&gt;
&lt;br /&gt;
Used by ctr-httpwn as of v1.2, for &amp;quot;ipctakeover/bosshaxx&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
This can be used to takeover processes where the process is using your service session. Like HTTPC -&amp;gt; BOSS, for bosshaxx above. NIM takeover can be done too(actual stack buffer overflow can trigger), etc.&lt;br /&gt;
| See description.&lt;br /&gt;
| None&lt;br /&gt;
| [[11.3.0-36|11.3.0-X]]&lt;br /&gt;
| November 26, 2016&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| Using IPC input buffers as output buffers&lt;br /&gt;
| When sending cmdreplies, it does not validate that the cmdreply descriptor type matches the equivalent cmdreq descriptor type. This could be used by an exploited sysmodule to use what was intended as an input-buffer as an output-buffer, and also combine other IPC vuln(s) with this.&lt;br /&gt;
&lt;br /&gt;
Used by ctr-httpwn as of v1.2, for &amp;quot;ipctakeover/bosshaxx&amp;quot;.&lt;br /&gt;
| See description.&lt;br /&gt;
| None&lt;br /&gt;
| [[11.3.0-36|11.3.0-X]]&lt;br /&gt;
| November 2016&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
|  [[SVC]] table too small&lt;br /&gt;
|  The table of function pointers for SVC&#039;s only contains entries up to 0x7D, but the biggest allowed SVC for the table is 0x7F. Thus, executing SVC7E or SVC7F would make the SVC-handler read after the buffer, and interpret some ARM instructions as function pointers.&lt;br /&gt;
&lt;br /&gt;
However, this would require patching the kernel .text or modifying SVC-access-control. Even if you could get these to execute, they would still jump to memory that isn&#039;t mapped as executable.&lt;br /&gt;
| &lt;br /&gt;
|  None&lt;br /&gt;
| [[11.3.0-36|11.3.0-X]]&lt;br /&gt;
| 2012&lt;br /&gt;
| Everyone&lt;br /&gt;
|-&lt;br /&gt;
|  [[SVC|svcBackdoor (0x7B)]]&lt;br /&gt;
|  This backdoor allows executing SVC-mode code at the user-specified code-address. This is used by Process9, using this on the ARM11 (with NATIVE_FIRM) required patching the kernel .text or modifying SVC-access-control.&lt;br /&gt;
| See description&lt;br /&gt;
| [[11.0.0-33|11.0.0-X]] (deleted)&lt;br /&gt;
| &lt;br /&gt;
|&lt;br /&gt;
| Everyone&lt;br /&gt;
|-&lt;br /&gt;
| veryslowpidhax&lt;br /&gt;
| &#039;&#039;&#039;This is completely different from the kernelmode-code-execution vuln described in the below separate entry.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
When updating the kernel global PID counter under [[SVC|svcCreateProcess]] the kernel does not check for wraparound to 0x0(the PID for the very first process). This only matters because [[Services|SM-module]] allows processes with PID value less than &amp;lt;total ARM11 FIRM modules&amp;gt; to access &#039;&#039;all&#039;&#039; services, without checking exheader service-access-control; and because Kernel11 checks for the PID to be 1 (loader) to use the input mem-region value on ControlMemory. This alone does not affect access the [[SVC|SVCs]] access table at all.&lt;br /&gt;
&lt;br /&gt;
Inlined ldrex+strex code is used for updating the above counter. [[11.2.0-35|11.2.0-X]] had changes for similar code, but it was only for dedicated ldrex+strex functions(mainly for kernel objects) and hence this PID code was not affected.&lt;br /&gt;
&lt;br /&gt;
With launching+terminating a sysmodule repeatedly with this via ns:s, it would take weeks to finish(if not at least about a month?).&lt;br /&gt;
| Access to all [[Services_API|services]], ControlMemory on any given mem-region.&lt;br /&gt;
| None&lt;br /&gt;
| [[11.3.0-36|11.3.0-X]]&lt;br /&gt;
| 2012 maybe?&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
|  slowhax/waithax&lt;br /&gt;
|  svcWaitSynchronizationN does not decrement the references to valid handles in an array before returning an error when it encounters an invalid handle. This allows one to (slowly) overflow the reference count for a handle object to zero.&lt;br /&gt;
| ARM11 kernel-mode code execution&lt;br /&gt;
| [[11.2.0-35|11.2.0-X]]&lt;br /&gt;
| [[11.2.0-35|11.2.0-X]]&lt;br /&gt;
| 2016&lt;br /&gt;
| nedwill, [[User:Derrek|derrek]]&lt;br /&gt;
|-&lt;br /&gt;
| [[Memory_layout#ARM11_Detailed_virtual_memory_map|0xEFF00000]] / 0xDFF00000 ARM11 kernel virtual-memory&lt;br /&gt;
| The ARM11 kernel-mode 0xEFF00000/0xDFF00000 virtual-memory(size 0x100000) is mapped to phys-mem 0x1FF00000(entire DSP-mem + entire AXIWRAM), with permissions RW-. This is used during ARM11 kernel startup for loading the FIRM-modules from the FIRM section located in DSP-mem, this never seems to be used after that, however. This is never unmapped either.&lt;br /&gt;
| &lt;br /&gt;
| None&lt;br /&gt;
| [[11.3.0-36|11.3.0-X]]&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| memchunkhax2.1&lt;br /&gt;
| Nintendo&#039;s fix for memchunkhax2 in [[10.4.0-29|10.4.0-X]] did not fix the GPU case: one may cause the requisite ToCToU race using gspwn, bypassing the new validation.&lt;br /&gt;
derrek&#039;s original 32c3 presentation for memchunkhax2 commented that a GPU-based attack was possible, but would be difficult.  However, memchunkhax2.1 showed that it was possible to do fairly reliably.&lt;br /&gt;
| ARM11 kernel code execution&lt;br /&gt;
| [[11.0.0-33|11.0.0-X]], via the new [[Memory_Management#MemoryBlockHeader|memchunkhdr]] MAC which prevents modifying memchunkhdr data with DMA.&lt;br /&gt;
| [[11.0.0-33|11.0.0-X]]&lt;br /&gt;
|&lt;br /&gt;
| [[User:Derrek|derrek]], aliaspider&lt;br /&gt;
|-&lt;br /&gt;
| memchunkhax2&lt;br /&gt;
| When allocating a block of memory, the &amp;quot;next&amp;quot; pointer of the [[Memory_Management#MemoryBlockHeader|memchunkhdr]] is accessed without being checked after being mapped to userland.&lt;br /&gt;
This allows a race condition, where the process can change the next pointer just before it&#039;s accessed. By pointing the next pointer to a crafted memchunckhdr in the kernel SlabHeap, some of the SlabHeap is allocated to the calling process, allowing to change vtables of kernel objects. &lt;br /&gt;
| ARM11 kernel code execution&lt;br /&gt;
| [[10.4.0-29|10.4.0-X]] (partially, see memchunkhax2.1)&lt;br /&gt;
| [[10.4.0-29|10.4.0-X]]&lt;br /&gt;
|&lt;br /&gt;
| [[User:Derrek|derrek]]&lt;br /&gt;
|-&lt;br /&gt;
| heaphax&lt;br /&gt;
| Can change the size of free memchunk structures stored in FCRAM using DMA, which leads to the ability to allocate memory chunks over already-allocated memory. This can be used in the SYSTEM region to allocate RW memory over any part of the NS system module, which is enough to take it over.&lt;br /&gt;
| Code execution with access to all of NS&#039;s privileges. (including downgrading) Code execution within any applet.&lt;br /&gt;
| [[11.0.0-33|11.0.0-X]], via the new [[Memory_Management#MemoryBlockHeader|memchunkhdr]] MAC which prevents modifying memchunkhdr data with DMA.&lt;br /&gt;
| [[11.0.0-33|11.0.0-X]]&lt;br /&gt;
| April 2015 ?&lt;br /&gt;
| smea&lt;br /&gt;
|-&lt;br /&gt;
| snshax&lt;br /&gt;
| Can force creation of Safe NS process into gspwn-able memory, allowing for takeover.&lt;br /&gt;
| Code execution with access to all of NS&#039;s privileges. (including downgrading)&lt;br /&gt;
| [[10.1.0-27|10.1.0-X]]&lt;br /&gt;
| [[10.1.0-27|10.1.0-X]]&lt;br /&gt;
| April 2015 ?&lt;br /&gt;
| smea&lt;br /&gt;
|-&lt;br /&gt;
|  AffinityMask/processorid validation&lt;br /&gt;
|  With [[10.0.0-27|10.0.0-X]] the following functions were updated: svcGetThreadAffinityMask, svcGetProcessAffinityMask, svcSetProcessAffinityMask, and svcCreateThread. The code changes for all but svcCreateThread are identical.&lt;br /&gt;
The original code with the first 3 did the following: &lt;br /&gt;
* if(u32_processorcount &amp;gt; ~0x80000001)return 0xe0e01bfd;&lt;br /&gt;
* if(s32_processorcount &amp;gt; &amp;lt;total_cores&amp;gt;)return 0xd8e007fd;&lt;br /&gt;
The following code replaced the above:&lt;br /&gt;
* if(u32_processorcount &amp;gt;= &amp;lt;total_cores+1&amp;gt;)return 0xd8e007fd;&lt;br /&gt;
In theory the latter should catch everything that the former did, so it&#039;s unknown if this was really a security issue.&lt;br /&gt;
&lt;br /&gt;
The svcCreateThread changes with [[10.0.0-27|10.0.0-X]] definitely did fix a security issue.&lt;br /&gt;
* Original code: &amp;quot;if(s32_processorid &amp;gt; &amp;lt;total_cores&amp;gt;)return 0xd8e007fd;&amp;quot;&lt;br /&gt;
* New code: &amp;quot;if(s32_processorid &amp;gt;= &amp;lt;total_cores&amp;gt; || s32_processorid &amp;lt;= -4)return 0xd8e007fd;&amp;quot;&lt;br /&gt;
This fixed an off-by-one issue: if one would use processorid=total_cores, which isn&#039;t actually a valid value, svcCreateThread would accept that value on &amp;lt;[[10.0.0-27|10.0.0-X]]. This results in data being written out-of-bounds(baseaddr = arrayaddr + entrysize*processorid), which has the following result:&lt;br /&gt;
* Old3DS: Useless kernel-mode crash due to accessing unmapped memory.&lt;br /&gt;
* New3DS: uncontrolled data write into a kernel-mode L1 MMU-table. This isn&#039;t really useful: the data can&#039;t be controlled, and the data which gets overwritten is all-zero anyway(this isn&#039;t anywhere near MMU L1 entries for actually mapped memory).&lt;br /&gt;
The previous version also allowed large negative s32_processorid values(negative processorid values are special values not actual procids), but it appears using values like that won&#039;t actually do anything(meaning no crash) besides the thread not running / thread not running for a while(besides triggering a kernelpanic with certain s32_processorid value(s)).&lt;br /&gt;
| Nothing useful&lt;br /&gt;
|  [[10.0.0-27|10.0.0-X]]&lt;br /&gt;
| [[10.0.0-27|10.0.0-X]]&lt;br /&gt;
| svcCreateThread issue: May 31, 2015. The rest: September 8, 2015, via v9.6-&amp;gt;v10.0 ARM11-kernel code-diff.&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| memchunkhax&lt;br /&gt;
| The kernel originally did not validate the data stored in the FCRAM kernel heap [[Memchunkhdr|memchunk-headers]] for free-memory at all. Exploiting this requires raw R/W access to these memchunk-headers, like physical-memory access with gspwn.&lt;br /&gt;
&lt;br /&gt;
There are &#039;&#039;multiple&#039;&#039; ways to exploit this, but the end-result for most of these is the same: overwrite code in AXIWRAM via the 0xEFF00000/0xDFF00000 kernel virtual-memory mapping.&lt;br /&gt;
&lt;br /&gt;
This was fixed in [[9.3.0-21|9.3.0-X]] by checking that the memchunk(including size, next, and prev ptrs) is located within the currently used heap memory. The kernel may also check that the next/prev ptrs are valid compared to other memchunk-headers basically. When any of these checks fail, kernelpanic() is called.&lt;br /&gt;
| When combined with other flaws: ARM11-kernelmode code execution&lt;br /&gt;
| [[9.3.0-21|9.3.0-21]]&lt;br /&gt;
| &lt;br /&gt;
| February 2014&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| Multiple [[KLinkedListNode|KLinkedListNode]] SlabHeap use after free bugs&lt;br /&gt;
| The ARM11-kernel did access the &#039;key&#039; field of [[KLinkedListNode|KLinkedListNode]] objects, which are located on the SlabHeap, after freeing them. Thus, triggering an allocation of a new [[KLinkedListNode|KLinkedListNode]] object at the right time could result in a type-confusion. Pseudo-code:&lt;br /&gt;
SlabHeap_free(KLinkedListNode);&lt;br /&gt;
KObject *obj = KLinkedListNode-&amp;gt;key;  // the object there might have changed!&lt;br /&gt;
This bug appeared all over the place.&lt;br /&gt;
| ARM11-kernelmode code exec maybe&lt;br /&gt;
| [[8.0.0-18|8.0.0-18]]&lt;br /&gt;
| &lt;br /&gt;
| April 2015&lt;br /&gt;
| [[User:Derrek|derrek]]&lt;br /&gt;
|-&lt;br /&gt;
| PXI [[RPC_Command_Structure|Command]] input/output buffer permissions&lt;br /&gt;
| Originally the ARM11-kernel didn&#039;t check permissions for PXI input/output buffers for commands. Starting with [[6.0.0-11|6.0.0]] PXI input/output buffers must have RW permissions, otherwise kernelpanic is triggered.&lt;br /&gt;
| &lt;br /&gt;
| [[6.0.0-11|6.0.0-11]]&lt;br /&gt;
| &lt;br /&gt;
| 2012&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| [[SVC|svcStartInterProcessDma]]&lt;br /&gt;
| For svcStartInterProcessDma, the kernel code had the following flaws:&lt;br /&gt;
&lt;br /&gt;
* Originally the ARM11-kernel read the input DmaConfig structure directly in kernel-mode(ldr(b/h) instructions), without checking whether the DmaConfig address is readable under userland. This was fixed by copying that structure to the SVC-mode stack, using the ldrbt instruction.&lt;br /&gt;
&lt;br /&gt;
* Integer overflows for srcaddr+size and dstaddr+size are now checked(with [[6.0.0-11]]), which were not checked before.&lt;br /&gt;
&lt;br /&gt;
* The kernel now also checks whether the srcaddr/dstaddr (+size) is within userland memory (0x20000000), the kernel now (with [[6.0.0-11]]) returns an error when the address is beyond userland memory. Using an address &amp;gt;=0x20000000 would result in the kernel reading from the process L1 MMU table, beyond the memory allocated for that MMU table(for vaddr-&amp;gt;physaddr conversion). &lt;br /&gt;
| &lt;br /&gt;
| [[6.0.0-11]]&lt;br /&gt;
| &lt;br /&gt;
| DmaConfig issue: unknown. The rest: 2014&lt;br /&gt;
| [[User:Plutooo|plutoo]], [[User:Yellows8|Yellows8]] independently&lt;br /&gt;
|-&lt;br /&gt;
| [[SVC|svcControlMemory]] Parameter checks&lt;br /&gt;
| For svcControlMemory the parameter check had these two flaws:&lt;br /&gt;
&lt;br /&gt;
* The allowed range for addr0, addr1, size parameters depends on which MemoryOperation is being specified. The limitation for GSP heap was only checked if op=(u32)0x10003. By setting a random bit in op that has no meaning (like bit17?), op would instead be (u32)0x30003, and the range-check would be less strict and not accurate. However, the kernel doesn&#039;t actually use the input address for LINEAR memory-mapping at all besides the range-checks, so this isn&#039;t actually useful. This was fixed in the kernel by just checking for the LINEAR bit, instead of comparing the entire MemoryOperation value with 0x10003.&lt;br /&gt;
&lt;br /&gt;
* Integer overflows on (addr0+size) are now checked that previously weren&#039;t (this also applies to most other address checks elsewhere in the kernel).&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| [[5.0.0-11]]&lt;br /&gt;
| &lt;br /&gt;
|&lt;br /&gt;
| [[User:Plutooo|plutoo]]&lt;br /&gt;
|-&lt;br /&gt;
| [[RPC_Command_Structure|Command]] request/response buffer overflow&lt;br /&gt;
| Originally the kernel did not check the word-values from the command-header. Starting with [[5.0.0-11]], the kernel will trigger a kernelpanic() when the total word-size of the entire command(including the cmd-header) is larger than 0x40-words (0x100-bytes). This allows overwriting threadlocalstorage+0x180 in the destination thread. However, since the data written there would be translate parameters (such as header-words + buffer addresses), exploiting this would likely be very difficult, if possible at all.&lt;br /&gt;
&lt;br /&gt;
If the two words at threadlocalstorage+0x180 could be overwritten with controlled data this way, one could then use a command with a buffer-header of &amp;lt;nowiki&amp;gt;((size&amp;lt;&amp;lt;14) | 2)&amp;lt;/nowiki&amp;gt; to write arbitrary memory to any RW userland memory in the destination process.&lt;br /&gt;
| &lt;br /&gt;
| [[5.0.0-11]]&lt;br /&gt;
| &lt;br /&gt;
| v4.1 FIRM -&amp;gt; v5.0 code diff&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| [[SVC|SVC stack allocation overflows]]&lt;br /&gt;
| &lt;br /&gt;
* Syscalls that allocate a variable-length array on stack, only checked bit31 before multiplying by 4/16 (when calculating how much memory to allocate). If a large integer was passed as input to one of these syscalls, an integer overflow would occur, and too little memory would have been allocated on stack resulting in a buffer overrun. &lt;br /&gt;
* The alignment (size+7)&amp;amp;~7 calculation before allocation was not checked for integer overflow.&lt;br /&gt;
&lt;br /&gt;
This might allow for ARM11 kernel code-execution.&lt;br /&gt;
&lt;br /&gt;
(Applies to svcSetResourceLimitValues, svcGetThreadList, svcGetProcessList, svcReplyAndReceive, svcWaitSynchronizationN.)&lt;br /&gt;
| &lt;br /&gt;
| [[5.0.0-11]]&lt;br /&gt;
| &lt;br /&gt;
| v4.1 FIRM -&amp;gt; v5.0 code diff&lt;br /&gt;
| [[User:Plutooo|plutoo]], [[User:Yellows8|Yellows8]] complementary&lt;br /&gt;
|-&lt;br /&gt;
| [[SVC|svcControlMemory]] MemoryOperation MAP memory-permissions&lt;br /&gt;
| svcControlMemory with MemoryOperation=MAP allows mapping the already-mapped process virtual-mem at addr1, to addr0. The lowest address permitted for addr1 is 0x00100000. Originally the ARM11 kernel didn&#039;t check memory permissions for addr1. Therefore .text as addr1 could be mapped elsewhere as RW- memory, which allowed ARM11 userland code-execution.&lt;br /&gt;
| &lt;br /&gt;
| [[4.1.0-8]]&lt;br /&gt;
| &lt;br /&gt;
| 2012&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| [[RPC_Command_Structure|Command]] input/output buffer permissions&lt;br /&gt;
| Originally the ARM11 kernel didn&#039;t check memory permissions for the input/output buffers for commands. Starting with [[4.0.0-7]] the ARM11 kernel will trigger a kernelpanic() if the input/output buffers don&#039;t have the required memory permissions. For example, this allowed a FSUSER file-read to .text, which therefore allowed ARM11-userland code execution.&lt;br /&gt;
| &lt;br /&gt;
| [[4.0.0-7]]&lt;br /&gt;
| &lt;br /&gt;
| 2012&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| [[SVC|svcReadProcessMemory/svcWriteProcessMemory memory]] permissions&lt;br /&gt;
| Originally the kernel only checked the first page(0x1000-bytes) of the src/dst buffers, for svcReadProcessMemory and svcWriteProcessMemory. There is no known retail processes which have access to these SVCs.&lt;br /&gt;
| &lt;br /&gt;
| [[4.0.0-7]]&lt;br /&gt;
| &lt;br /&gt;
| 2012?&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== [[FIRM]] Sysmodules ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Summary&lt;br /&gt;
!  Description&lt;br /&gt;
!  Successful exploitation result&lt;br /&gt;
!  Fixed in [[FIRM]] system version&lt;br /&gt;
!  Last [[FIRM]] system version this flaw was checked for&lt;br /&gt;
!  Timeframe this was discovered&lt;br /&gt;
!  Discovered by&lt;br /&gt;
|-&lt;br /&gt;
| [[Services|&amp;quot;srv:pm&amp;quot;]] process registration&lt;br /&gt;
| Originally any process had access to the port &amp;quot;srv:pm&amp;quot;. The PID&#039;s used for the (un)registration commands are not checked either. This allowed any process to re-register itself with &amp;quot;srv:pm&amp;quot;, and therefore allowed the process to give itself access to any service, bypassing the exheader service-access-control list.&lt;br /&gt;
&lt;br /&gt;
This was fixed in [[7.0.0-13]]: starting with [[7.0.0-13]] &amp;quot;srv:pm&amp;quot; is now a service instead of a globally accessible port. Only processes with PID&#039;s less than 6 (in other words: fs, ldr, sm, pm, pxi modules) have access to it. With [[7.0.0-13]] there can only be one session for &amp;quot;srv:pm&amp;quot; open at a time(this is used by pm module), svcBreak will be executed if more sessions are opened by the processes which can access this.&lt;br /&gt;
&lt;br /&gt;
This flaw was needed for exploiting the &amp;lt;=v4.x Process9 PXI vulnerabilities from ARM11 userland ROP, since most applications don&#039;t have access to those service(s).&lt;br /&gt;
| Access to arbitrary services&lt;br /&gt;
| [[7.0.0-13]]&lt;br /&gt;
| &lt;br /&gt;
| 2012&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| FSDIR null-deref&lt;br /&gt;
| [[Filesystem_services|FS]]-module may crash in some cases when handling directory reading. The trigger seems to be due to using [[FSDir:Close]] without closing the dir-handle afterwards?(Perhaps this is caused by out-of-memory?) This seems to be useless since it&#039;s just a null-deref.&lt;br /&gt;
| &lt;br /&gt;
| None&lt;br /&gt;
| [[9.6.0-24|9.6.0-X]]&lt;br /&gt;
| May 19(?)-20, 2015&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Standalone Sysmodules ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Summary&lt;br /&gt;
!  Description&lt;br /&gt;
!  Successful exploitation result&lt;br /&gt;
!  Fixed in system-module system-version&lt;br /&gt;
!  Last system-module system-version this flaw was checked for&lt;br /&gt;
!  Timeframe this was discovered&lt;br /&gt;
!  Timeframe this was added to wiki&lt;br /&gt;
!  Discovered by&lt;br /&gt;
|-&lt;br /&gt;
| [[MP:SendDataFrame]] missing input array index validation&lt;br /&gt;
| [[MP:SendDataFrame]] doesn&#039;t validate the input index at cmdreq[1], unless the function for flag=non-zero is executed. This is used to calculate the following, without validating the index at all: someptr = stateptr + (index*0x924) + somestateoffset.&lt;br /&gt;
&lt;br /&gt;
After validating some flags from someptr, when input_flag=0 the input buffer data is copied to someptr+someotheroffset+0x14 with the u16 size loaded from someptr+someotheroffset.&lt;br /&gt;
&lt;br /&gt;
With a large input index someptr could be setup to be at a &amp;lt;target address&amp;gt;, for overwriting memory.&lt;br /&gt;
&lt;br /&gt;
This is probably difficult to exploit.&lt;br /&gt;
| &lt;br /&gt;
| None&lt;br /&gt;
| [[8.0.0-18]](MP-sysmodule v2048)&lt;br /&gt;
| January 22, 2017&lt;br /&gt;
| January 22, 2017&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| [[MP_Services|MP]] cmd1 out-of-bounds handle read&lt;br /&gt;
| MP-sysmodule handles the input parameter for cmd1 as a s32. It checks for &amp;gt;=16, but not &amp;lt;0. With &amp;lt;16 it basically does the following(array of entries 4-bytes each): *outhandle = ((Handle*)(stateptr+offsetinstate))[inputindex].&lt;br /&gt;
&lt;br /&gt;
Hence, this can be used to load any handle in MP-sysmodule memory. MP doesn&#039;t really have any service handles of interest however(can be obtained from elsewhere too).&lt;br /&gt;
| Reading any handle in MP-sysmodule memory.&lt;br /&gt;
| None&lt;br /&gt;
| [[8.0.0-18]](MP-sysmodule v2048)&lt;br /&gt;
| January 21, 2017&lt;br /&gt;
| January 22, 2017&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| AM stack/.bss infoleak via [[AM:ReadTwlBackupInfo]]([[AM:ReadTwlBackupInfoEx|Ex]])&lt;br /&gt;
| After writing the output-info structure to stack, it then copies that structure to the output buffer ptr using the size from the command. The size is not checked. This could be used to read data from the AM-service-thread stack handling the command + .bss.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;This was not tested on hardware.&#039;&#039;&#039;&lt;br /&gt;
| Stack/.bss reading&lt;br /&gt;
| None&lt;br /&gt;
| [[10.0.0-27]](AM v9217)&lt;br /&gt;
| Roughly October 17, 2016&lt;br /&gt;
| October 25, 2016&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| [[MVD_Services|MVD]]: Stack buffer overflow with [[MVDSTD:SetupOutputBuffers]].&lt;br /&gt;
| The input total_entries is not validated when initially processing the input entry-list. This fixed-size input entry-list is copied to stack from the command request. The loop for processing this initializes a global table, the converted linearmem-&amp;gt;physaddrs used there are also copied to stack(0x8-bytes of physaddrs per entry).&lt;br /&gt;
&lt;br /&gt;
If total_entries is too large, MVD-sysmodule will crash due to reading unmapped memory following the stack(0x10000000). Afterwards if the out-of-bounds total_entries is smaller than that, it will crash due accessing address 0x0, hence this useless.&lt;br /&gt;
| MVD-sysmodule crash.&lt;br /&gt;
| None&lt;br /&gt;
| [[9.0.0-20]]&lt;br /&gt;
| April 22, 2016 (Tested on the 25th)&lt;br /&gt;
| April 25, 2016&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| [[NWM_Services|NWM]]: Using CTRSDK heap with UDS sharedmem from the user-process.&lt;br /&gt;
| See the HTTP-sysmodule section below.&lt;br /&gt;
&lt;br /&gt;
CTRSDK heap is used with the sharedmem from [[NWMUDS:InitializeWithVersion]]. Buffers are allocated/freed under this heap using [[NWMUDS:Bind]] and [[NWMUDS:Unbind]].&lt;br /&gt;
&lt;br /&gt;
Hence, overwriting sharedmem with gspwn then using [[NWMUDS:Unbind]] results in the usual controlled CTRSDK memchunk-header write, similar to HTTP-sysmodule.&lt;br /&gt;
&lt;br /&gt;
This could be done by creating an UDS network, without any other nodes on the network.&lt;br /&gt;
&lt;br /&gt;
Besides CTRSDK memchunk-headers, there are no addresses stored under this sharedmem.&lt;br /&gt;
| ROP under NWM-module.&lt;br /&gt;
| [[11.4.0-37|11.4.0-X]]&lt;br /&gt;
| [[9.0.0-20|9.0.0-X]]&lt;br /&gt;
| April 10, 2016&lt;br /&gt;
| April 16, 2016&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| [[DLP_Services|DLP]]: Out-of-bounds memory access during spectator [[Download_Play|data-frame]] checksum calculation&lt;br /&gt;
| DLP doesn&#039;t validate the frame_size when receiving spectator data-frames at all, unlike non-spectator data-frames. The actual spectator data-frame parsing code doesn&#039;t use that field either. However, the data-frame checksum calculation code called during checksum verification does use the frame_size for loading the size of the framebuf.&lt;br /&gt;
&lt;br /&gt;
Hence, using a large frame_size like 0xFFFF will result in the checksum calculation code reading data out-of-bounds. This isn&#039;t really useful, you could trigger a remote local-WLAN DLP-sysmodule crash while a 3DS system is scanning for DLP networks(due to accessing unmapped memory), but that&#039;s about all(trying to infoleak with this likely isn&#039;t useful either).&lt;br /&gt;
| DLP-sysmodule crash, handled by dlplay system-application by a &amp;quot;connection interrupted&amp;quot; error eventually then a fatal-error via ErrDisp.&lt;br /&gt;
| None&lt;br /&gt;
| [[10.0.0-27|10.0.0-X]]&lt;br /&gt;
| April 8, 2016 (Tested on the 10th)&lt;br /&gt;
| April 10, 2016&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| [[DLP_Services|DLP]]: Out-of-bounds output data writing during spectator sysupdate titlelist [[Download_Play|data-frame]] handling&lt;br /&gt;
| The total_entries and out_entryindex fields for the titlelist DLP spectator data-frames are not validated. This is parsed during DLP network scanning. Hence, the specified titlelist data can be written out-of-bounds using the specified out_entryindex and total_entries. A crash will occur while reading the input data-frame titlelist if total_entries is larger than 0x27A, due to accessing unmapped memory.&lt;br /&gt;
&lt;br /&gt;
There&#039;s not much non-zero data to overwrite following the output buffer(located in sharedmem), any ptrs are located in sharedmem. Overwriting certain ptr(s) are only known to cause a crash when attempting to use the DLP-client shutdown service-command.&lt;br /&gt;
&lt;br /&gt;
There&#039;s no known way to exploit the above crash, since the linked-list code involves writes zeros(with a controlled start ptr).&lt;br /&gt;
| &lt;br /&gt;
| None&lt;br /&gt;
| [[10.0.0-27|10.0.0-X]]&lt;br /&gt;
| April 8-9, 2016&lt;br /&gt;
| April 10, 2016&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| [[IR_Services|IR]]: Stack buffer overflow with custom hardware&lt;br /&gt;
| Originally IR sysmodule used the read value from the I2C-IR registers TXLVL and RXLVL without validating them at all. See [[10.6.0-31|here]] for the fix. This is the size used for reading the data-recv FIFO, etc. The output buffer for reading is located on the stack.&lt;br /&gt;
&lt;br /&gt;
This should be exploitable if one could successfully setup the custom hardware for this and if the entire intended sizes actually get read from I2C.&lt;br /&gt;
| ROP under IR sysmodule.&lt;br /&gt;
| [[10.6.0-31|10.6.0-31]]&lt;br /&gt;
| &lt;br /&gt;
| February 23, 2016 (Unknown if it was noticed before then)&lt;br /&gt;
| February 23, 2016&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| [[HTTP_Services|HTTP]]: Using CTRSDK heap with sharedmem from the user-process.&lt;br /&gt;
| The data from httpcAddPostDataAscii and other commands is stored under a CTRSDK heap. That heap is the sharedmem specified by the user-process via the HTTPC Initialize command.&lt;br /&gt;
Normally this sharedmem isn&#039;t accessible to the user-process once the sysmodule maps it, hence using it is supposed to be &amp;quot;safe&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
This isn&#039;t the case due to gspwn however. Since CTRSDK heap code is so insecure in general, one can use gspwn to locate the HTTPC sharedmem + read/write it, then trigger a mem-write under the sysmodule. This can then be used to get ROP going under HTTP-sysmodule.&lt;br /&gt;
&lt;br /&gt;
This is exploited by [https://github.com/yellows8/ctr-httpwn/ctr-httpwn ctr-httpwn].&lt;br /&gt;
| ROP under HTTP sysmdule.&lt;br /&gt;
| None&lt;br /&gt;
| [[9.6.0-24|9.6.0-X]] (Latest sysmodule version as of [[10.7.0-32|10.7.0-32]])&lt;br /&gt;
| Late 2015&lt;br /&gt;
| March 22, 2016&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| [[NIM_Services|NIM]]: Downloading old title-versions from eShop&lt;br /&gt;
| Multiple NIM service commands(such as [[NIMS:StartDownload]]) use a title-version value specified by the user-process, NIM does not validate that this input version matches the latest version available via SOAP. Therefore, when combined with AM(PXI) [[#Process9|title-downgrading]] via deleting the target eShop title with System Settings Data Management(if the title was already installed), this allows downloading+installing any title-version from eShop &#039;&#039;if&#039;&#039; it&#039;s still available from CDN.&lt;br /&gt;
The easiest way to exploit this is to just patch the eShop system-application code using these NIM commands(ideally the code which loads the title-version).&lt;br /&gt;
&lt;br /&gt;
Originally this was tested with a debugging-system via modded-FIRM, eventually smea implemented it in HANS for the 32c3 release.&lt;br /&gt;
| Downloading old title-versions from eShop&lt;br /&gt;
| None&lt;br /&gt;
| [[10.0.0-27|10.0.0-X]]&lt;br /&gt;
| October 24, 2015 (Unknown when exactly the first eShop title downgrade was actually tested, maybe November)&lt;br /&gt;
| January 7, 2016 (Same day Ironfall v1.0 was removed from CDN via the main-CXI files)&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| [[SPI_Services|SPI]] service out-of-bounds write&lt;br /&gt;
| cmd1 has out-of-bounds write allowing overwrite of some static variables in .data.&lt;br /&gt;
| &lt;br /&gt;
| None&lt;br /&gt;
| [[9.5.0-22]]&lt;br /&gt;
| March 2015&lt;br /&gt;
| &lt;br /&gt;
| [[User:Plutooo|plutoo]]&lt;br /&gt;
|-&lt;br /&gt;
| [[NFC_Services|NFC]] module service command buf-overflows&lt;br /&gt;
| NFC module copies data with certain commands, from command input buffers to stack without checking the size. These commands include the following, it&#039;s unknown if there&#039;s more commands with similar issues: &amp;quot;nfc:dev&amp;quot; &amp;lt;0x000C....&amp;gt; and &amp;quot;nfc:s&amp;quot; &amp;lt;0x0037....&amp;gt;.&lt;br /&gt;
Since both of these commands are stubbed in the Old3DS NFC module from the very first version(those just return an error), these issues only affect the New3DS NFC module.&lt;br /&gt;
&lt;br /&gt;
There&#039;s no known retail titles which have access to either of these services.&lt;br /&gt;
| ROP under NFC module.&lt;br /&gt;
| New3DS: None&lt;br /&gt;
| New3DS: [[9.5.0-22]]&lt;br /&gt;
| December 2014?&lt;br /&gt;
| &lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| [[News_Services|NEWSS]] service command notificationID validation failure&lt;br /&gt;
| This module does not validate the input notificationID for &amp;lt;nowiki&amp;gt;&amp;quot;news:s&amp;quot;&amp;lt;/nowiki&amp;gt; service commands. This is an out-of-bounds array index bug. For example, [[NEWSS:SetNotificationHeader]] could be used to exploit news module: this copies the input data(size is properly checked) to: out = newsdb_savedata+0x10 + (someu32array[notificationID]*0x70).&lt;br /&gt;
| ROP under news module.&lt;br /&gt;
| None&lt;br /&gt;
| [[9.7.0-25|9.7.0-X]]&lt;br /&gt;
| December 2014&lt;br /&gt;
| &lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| [[NWMUDS:DecryptBeaconData]] heap buffer overflow&lt;br /&gt;
| input_size = 0x1E * &amp;lt;value the u8 from input_[[NWM_Services|networkstruct]]+0x1D&amp;gt;. Then input_tag0 is copied to a heap buffer. When input_size is larger than 0xFA-bytes, it will then copy input_tag1 to &amp;lt;end_address_of_previous_outbuf&amp;gt;, with size=input_size-0xFA.&lt;br /&gt;
&lt;br /&gt;
This can be triggered by either using this command directly, or by boadcasting a wifi beacon which triggers it while a 3DS system running the target process is in range, when the process is scanning for hosts to connect to. Processes will only pass tag data to this command when the wlancommID and other thing(s) match the values for the process.&lt;br /&gt;
&lt;br /&gt;
There&#039;s no known way to actually exploit this for getting ROP under NWM-module, at the time of originally adding this to the wiki. This is because the data which gets copied out-of-bounds *and* actually causes crash(es), can&#039;t be controlled it seems(with just broadcasting a beacon at least). It&#039;s unknown whether this could be exploited from just using NWMUDS service-cmd(s) directly.&lt;br /&gt;
| Without any actual way to exploit this: NWM-module DoS, resulting in process termination(process crash). This breaks *everything* involving wifi comms, a reboot is required to recover from this.&lt;br /&gt;
| None&lt;br /&gt;
| [[9.0.0-20]]&lt;br /&gt;
| ~September 23, 2014(see the [[NWMUDS:DecryptBeaconData]] page history)&lt;br /&gt;
| August 3, 2015&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| [[HID_Services|HID]] module shared-mem&lt;br /&gt;
| HID module does not validate the index values in [[HID_Shared_Memory|sharedmem]](just changes index to 0 when index == maxval when updating), therefore large values will result in HID module writing HID data to arbitrary addresses.&lt;br /&gt;
| ROP under HID module, but this is *very* unlikely to be exploitable since the data written is HID data.&lt;br /&gt;
| None&lt;br /&gt;
| [[9.3.0-21]]&lt;br /&gt;
| 2014?&lt;br /&gt;
| &lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| gspwn&lt;br /&gt;
| GSP module does not validate addresses given to the GPU. This allows a user-mode application/applet to read/write to a large part of physical FCRAM using GPU DMA. From this, you can overwrite the .text segment of the application you&#039;re running under, and gain real code-execution from a ROP-chain. Normally applets&#039; .text([[Home Menu]], [[Internet Browser]], etc) is located beyond the area accessible by the GPU, except for [[RO_Services|CROs]] used by applets([[Internet Browser]] for example).&lt;br /&gt;
&lt;br /&gt;
FCRAM is gpu-accessible up to physaddr 0x26800000 on Old3DS, and 0x2D800000 on New3DS. This is BASE_memregion_start(aka SYSTEM_memregion_end)-0x400000 (0x800000 with New3DS) with the default memory-layout on Old3DS/New3DS. With [[11.3.0-36|11.3.0-X]] the cutoff now varies due to the new [[SVC]] 0x59. The New3DS &amp;quot;normal&amp;quot;(non-APPLICATION) cutoff was changed to 0x2D000000 due to the new [[SVC]] 0x59.&lt;br /&gt;
| User-mode code execution.&lt;br /&gt;
| None&lt;br /&gt;
| [[9.6.0-24|9.6.0-X]]&lt;br /&gt;
| Early 2014&lt;br /&gt;
| &lt;br /&gt;
| smea, [[User:Yellows8|Yellows8]]/others before then&lt;br /&gt;
|-&lt;br /&gt;
| rohax&lt;br /&gt;
| Using gspwn, it is possible to overwrite a loaded [[CRO0]]/[[CRR0]] after its RSA-signature has been validated. Badly validated [[CRO0]] header leads to arbitrary read/write of memory in the ro-process. This gives code-execution in the ro module, who has access to [[SVC|syscalls]] 0x70-0x72, 0x7D.&lt;br /&gt;
&lt;br /&gt;
This was fixed after [[ninjhax]] release by adding checks on [[CRO0]]-based pointers before writing to them.&lt;br /&gt;
| Memory-mapping syscalls.&lt;br /&gt;
| [[9.3.0-21]]&lt;br /&gt;
| [[9.4.0-21]]&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| smea, [[User:Plutooo|plutoo]] joint effort&lt;br /&gt;
|-&lt;br /&gt;
| Region free&lt;br /&gt;
| Only [[Home Menu]] itself checks gamecards&#039; region when launching them. Therefore, any application launch that is done directly with [[NS]] without signaling Home Menu to launch the app, will result in region checks being bypassed.&lt;br /&gt;
This essentially means launching the gamecard with the [[NS_and_APT_Services|&amp;quot;ns:s&amp;quot;]] service. The main way to exploit this is to trigger a FIRM launch with an application specified, either with a normal FIRM launch or a hardware [[NSS:RebootSystem|reboot]].&lt;br /&gt;
| Launching gamecards from any region + bypassing Home Menu gamecard-sysupdate installation&lt;br /&gt;
| None&lt;br /&gt;
| Last tested with [[10.1.0-27|10.1.0-X]].&lt;br /&gt;
| June(?) 2014&lt;br /&gt;
| &lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| [[NWM_Services|NWM]] service-cmd state null-ptr deref&lt;br /&gt;
| The NWMUDS service command code loads a ptr from .data, adds an offset to that, then passes that as the state address for the actual command-handler function. The value of the ptr loaded from .data is not checked, therefore this will cause crashes due to that being 0x0 when NWMUDS was not properly initialized.&lt;br /&gt;
It&#039;s unknown whether any NWM services besides NWMUDS have this issue.&lt;br /&gt;
| This is rather useless since it&#039;s only a crash caused by a state ptr based at 0x0.&lt;br /&gt;
| None&lt;br /&gt;
| [[9.0.0-20]]&lt;br /&gt;
| 2013?&lt;br /&gt;
| &lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== General/CTRSDK ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Summary&lt;br /&gt;
!  Description&lt;br /&gt;
!  Successful exploitation result&lt;br /&gt;
!  Fixed in version&lt;br /&gt;
!  Last version this flaw was checked for&lt;br /&gt;
!  Timeframe this was discovered&lt;br /&gt;
!  Discovered by&lt;br /&gt;
|-&lt;br /&gt;
| [[NWM_Services|UDS]] beacon additional-data buffer overflow&lt;br /&gt;
| Originally CTRSDK did not validate the UDS additional-data size before using that size to copy the additional-data to a [[NWM_Services|networkstruct]]. This was eventually fixed.&lt;br /&gt;
This was discovered while doing code RE with an old dlp-module version. It&#039;s unknown in what specific CTRSDK version this was fixed, or even what system-version updated titles with a fixed version.&lt;br /&gt;
&lt;br /&gt;
It&#039;s unknown if there&#039;s any titles using a vulnerable CTRSDK version which are also exploitable with this(dlp module can&#039;t be exploited with this).&lt;br /&gt;
&lt;br /&gt;
The maximum number of bytes that can be written beyond the end of the outbuf is 0x37-bytes, with additionaldata_size=0xFF.&lt;br /&gt;
| Perhaps ROP, very difficult if possible with anything at all&lt;br /&gt;
| ?&lt;br /&gt;
| &lt;br /&gt;
| September(?) 2014&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|-&lt;br /&gt;
| CTPK buffer overflow&lt;br /&gt;
| At offset 0x20 in CTPK is an array for each texture, each entry is 0x20-bytes. This contains a wordindex(entry+0x18) for some srcdata relative to CTPK+0, and an u8 wordsize(entry+0x14) for this data. The CTRSDK function handling this doesn&#039;t validate the size, when copying srcdata using this size to the output buffer. Applications usually have the output buffer on the stack, hence stack buffer overflow.&lt;br /&gt;
&lt;br /&gt;
While CTPK(*.ctpk) are normally only loaded from RomFS, some application(s) load from elsewhere too.&lt;br /&gt;
| ROP under the target application.&lt;br /&gt;
| None?&lt;br /&gt;
| &amp;quot;[SDK+NINTENDO:CTR_SDK-11_4_0_200_none]&amp;quot;&lt;br /&gt;
| November 14, 2016&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Yellows8</name></author>
	</entry>
	<entry>
		<id>https://www.3dbrew.org/w/index.php?title=11.4.0-37&amp;diff=19847</id>
		<title>11.4.0-37</title>
		<link rel="alternate" type="text/html" href="https://www.3dbrew.org/w/index.php?title=11.4.0-37&amp;diff=19847"/>
		<updated>2017-04-11T13:32:05Z</updated>

		<summary type="html">&lt;p&gt;Yellows8: /* NWM-sysmodule */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The Old3DS+New3DS 11.4.0-37 system update was released on April 10, 2017. This Old3DS update was released for the following regions: USA, EUR, JPN, CHN, KOR, and TWN. This New3DS update was released for the following regions: USA, EUR, JPN, CHN, KOR, and TWN.&lt;br /&gt;
&lt;br /&gt;
Security flaws fixed: yes.&lt;br /&gt;
&lt;br /&gt;
==Change-log==&lt;br /&gt;
[http://en-americas-support.nintendo.com/app/answers/detail/a_id/667/p/430/c/267 Official] USA change-log:&lt;br /&gt;
* Further improvements to overall system stability and other minor adjustments have been made to enhance the user experience&lt;br /&gt;
&lt;br /&gt;
==System Titles==&lt;br /&gt;
===NATIVE_FIRM===&lt;br /&gt;
====Process9====&lt;br /&gt;
The global boolean preventing [[FIRM|SAFE_FIRM]] from being launched is now set in Process9&#039;s crt0 if [[CONFIG9_Registers#CFG9_BOOTENV|CFG9_BOOTENV]] has bit0 set, that is to say, if it has been launched from a firmlaunch (this register is set to 1 just before a firmlaunch). The following code has also been added in the firmlaunch function itself: &amp;lt;code&amp;gt;if(!(CFG9_BOOTENV &amp;amp; 1) /* not a firmlaunch */ || (CFG9_BOOTENV &amp;amp; 6) /* firmlaunched from LGY_FIRM (if even possible at all) */) goto panic&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
This is to fix [[3DS_System_Flaws#Process9|safehax]].&lt;br /&gt;
&lt;br /&gt;
====New3DS kernel9loader====&lt;br /&gt;
New3DS kernel9loader wasn&#039;t updated.&lt;br /&gt;
&lt;br /&gt;
====ARM11 kernel====&lt;br /&gt;
There are at least, and likely, three changes:&lt;br /&gt;
&lt;br /&gt;
* [[CONFIG11_Registers#CFG11_WIFIUNK|CFG11_WIFIUNK]] is now set to 0x10 in Kernel11&#039;s crt0&lt;br /&gt;
* A new SVC, [[SVC|svc 0x5A]] has been introduced, to enable or disable wifi&lt;br /&gt;
* The code handling [[SVC|svcArbitrateAddress]] with type = SIGNAL, has been changed. It now counts the actual number of threads arbitrating on that address, and if it is non-zero, it executes the following hack: &amp;lt;code&amp;gt;if(coreId == 0 &amp;amp;&amp;amp; currentThread-&amp;gt;dynamicPriority &amp;gt;= 50) waitCycles(0x64E)&amp;lt;/code&amp;gt;. This supposedly works around the lag issue in some games, which has been introduced on [[11.3.0-36]]&lt;br /&gt;
&lt;br /&gt;
===Modules===&lt;br /&gt;
No FIRM ARM11 sysmodule was changed.&lt;br /&gt;
&lt;br /&gt;
===[[NWM_Services|NWM-sysmodule]]===&lt;br /&gt;
The [[CONFIG11_Registers]] are no longer directly mapped under userland for NWM-sysmodule.&lt;br /&gt;
This prevents anything under NWM-module from modifying the GPUPROT register. This was used by both *hax payload(prior to v11.4 release) and [https://github.com/smealum/udsploit udsploit].&lt;br /&gt;
&lt;br /&gt;
The codebin was updated.&lt;br /&gt;
&lt;br /&gt;
The crt0-poke in PDN that NWM previously did:&lt;br /&gt;
  0x1EC4010C |= 0x10&lt;br /&gt;
&lt;br /&gt;
.. has been removed from NWM. This one has been moved into kernel bootup.&lt;br /&gt;
&lt;br /&gt;
All accesses to 0x1EC40180 have been replaced by a new syscall, [[SVC|0x5A]].&lt;br /&gt;
&lt;br /&gt;
This now includes code from old CTRSDK update(s). A new func was added for calling a func, previously that func was directly called via vtable funcptr. The only other changes was new heap code(and the code for using it basically), for fixing the NWMUDS sharedmem [[3DS_System_Flaws|vuln]]. This includes code which actually validates heap memchunkhdrs, with svcBreak being executed on failure.&lt;br /&gt;
&lt;br /&gt;
A new string was added at 0x13E200: &amp;quot;used&amp;quot;(with 3 0xFF bytes afterwards), this is used by the new heap code. The wifi-fw was moved from .data to .rodata.&lt;br /&gt;
&lt;br /&gt;
===[[Internet Browser]]===&lt;br /&gt;
The web-browser was updated, only for New3DS. See [[Internet Browser|here]] for details.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
System update report(s):&lt;br /&gt;
* [https://yls8.mtheall.com/ninupdates/reports.php?date=04-10-17_08-00-38&amp;amp;sys=ctr]&lt;br /&gt;
* [https://yls8.mtheall.com/ninupdates/reports.php?date=04-10-17_08-00-47&amp;amp;sys=ktr]&lt;/div&gt;</summary>
		<author><name>Yellows8</name></author>
	</entry>
	<entry>
		<id>https://www.3dbrew.org/w/index.php?title=11.4.0-37&amp;diff=19846</id>
		<title>11.4.0-37</title>
		<link rel="alternate" type="text/html" href="https://www.3dbrew.org/w/index.php?title=11.4.0-37&amp;diff=19846"/>
		<updated>2017-04-11T13:28:21Z</updated>

		<summary type="html">&lt;p&gt;Yellows8: /* NWM-sysmodule */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The Old3DS+New3DS 11.4.0-37 system update was released on April 10, 2017. This Old3DS update was released for the following regions: USA, EUR, JPN, CHN, KOR, and TWN. This New3DS update was released for the following regions: USA, EUR, JPN, CHN, KOR, and TWN.&lt;br /&gt;
&lt;br /&gt;
Security flaws fixed: yes.&lt;br /&gt;
&lt;br /&gt;
==Change-log==&lt;br /&gt;
[http://en-americas-support.nintendo.com/app/answers/detail/a_id/667/p/430/c/267 Official] USA change-log:&lt;br /&gt;
* Further improvements to overall system stability and other minor adjustments have been made to enhance the user experience&lt;br /&gt;
&lt;br /&gt;
==System Titles==&lt;br /&gt;
===NATIVE_FIRM===&lt;br /&gt;
====Process9====&lt;br /&gt;
The global boolean preventing [[FIRM|SAFE_FIRM]] from being launched is now set in Process9&#039;s crt0 if [[CONFIG9_Registers#CFG9_BOOTENV|CFG9_BOOTENV]] has bit0 set, that is to say, if it has been launched from a firmlaunch (this register is set to 1 just before a firmlaunch). The following code has also been added in the firmlaunch function itself: &amp;lt;code&amp;gt;if(!(CFG9_BOOTENV &amp;amp; 1) /* not a firmlaunch */ || (CFG9_BOOTENV &amp;amp; 6) /* firmlaunched from LGY_FIRM (if even possible at all) */) goto panic&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
This is to fix [[3DS_System_Flaws#Process9|safehax]].&lt;br /&gt;
&lt;br /&gt;
====New3DS kernel9loader====&lt;br /&gt;
New3DS kernel9loader wasn&#039;t updated.&lt;br /&gt;
&lt;br /&gt;
====ARM11 kernel====&lt;br /&gt;
There are at least, and likely, three changes:&lt;br /&gt;
&lt;br /&gt;
* [[CONFIG11_Registers#CFG11_WIFIUNK|CFG11_WIFIUNK]] is now set to 0x10 in Kernel11&#039;s crt0&lt;br /&gt;
* A new SVC, [[SVC|svc 0x5A]] has been introduced, to enable or disable wifi&lt;br /&gt;
* The code handling [[SVC|svcArbitrateAddress]] with type = SIGNAL, has been changed. It now counts the actual number of threads arbitrating on that address, and if it is non-zero, it executes the following hack: &amp;lt;code&amp;gt;if(coreId == 0 &amp;amp;&amp;amp; currentThread-&amp;gt;dynamicPriority &amp;gt;= 50) waitCycles(0x64E)&amp;lt;/code&amp;gt;. This supposedly works around the lag issue in some games, which has been introduced on [[11.3.0-36]]&lt;br /&gt;
&lt;br /&gt;
===Modules===&lt;br /&gt;
No FIRM ARM11 sysmodule was changed.&lt;br /&gt;
&lt;br /&gt;
===[[NWM_Services|NWM-sysmodule]]===&lt;br /&gt;
The [[CONFIG11_Registers]] are no longer directly mapped under userland for NWM-sysmodule.&lt;br /&gt;
This prevents anything under NWM-module from modifying the GPUPROT register. This was used by both *hax payload(prior to v11.4 release) and [https://github.com/smealum/udsploit udsploit].&lt;br /&gt;
&lt;br /&gt;
The codebin was updated.&lt;br /&gt;
&lt;br /&gt;
The crt0-poke in PDN that NWM previously did:&lt;br /&gt;
  0x1EC4010C |= 0x10&lt;br /&gt;
&lt;br /&gt;
.. has been removed from NWM. This one has been moved into kernel bootup.&lt;br /&gt;
&lt;br /&gt;
All accesses to 0x1EC40180 have been replaced by a new syscall, [[SVC|0x5A]].&lt;br /&gt;
&lt;br /&gt;
This now includes code from old CTRSDK update(s). The only other changes was new heap code, for fixing the NWMUDS sharedmem [[3DS_System_Flaws|vuln]]. This includes code which actually validates heap memchunkhdrs, with svcBreak being executed on failure.&lt;br /&gt;
&lt;br /&gt;
A new string was added at 0x13E200: &amp;quot;used&amp;quot;(with 3 0xFF bytes afterwards), this is used by the new heap code. The wifi-fw was moved from .data to .rodata.&lt;br /&gt;
&lt;br /&gt;
===[[Internet Browser]]===&lt;br /&gt;
The web-browser was updated, only for New3DS. See [[Internet Browser|here]] for details.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
System update report(s):&lt;br /&gt;
* [https://yls8.mtheall.com/ninupdates/reports.php?date=04-10-17_08-00-38&amp;amp;sys=ctr]&lt;br /&gt;
* [https://yls8.mtheall.com/ninupdates/reports.php?date=04-10-17_08-00-47&amp;amp;sys=ktr]&lt;/div&gt;</summary>
		<author><name>Yellows8</name></author>
	</entry>
	<entry>
		<id>https://www.3dbrew.org/w/index.php?title=Internet_Browser&amp;diff=19845</id>
		<title>Internet Browser</title>
		<link rel="alternate" type="text/html" href="https://www.3dbrew.org/w/index.php?title=Internet_Browser&amp;diff=19845"/>
		<updated>2017-04-11T11:34:49Z</updated>

		<summary type="html">&lt;p&gt;Yellows8: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The 3DS Internet Browser was added in the June 2011 Update for JPN/EUR/USA.&lt;br /&gt;
&lt;br /&gt;
From the Internet Browser help section:&lt;br /&gt;
In compliance with the LGPL, the source code of the OSS is available via the Nintendo website.&lt;br /&gt;
This source code can be downloaded here:&lt;br /&gt;
[http://mediacontent.nintendo-europe.com/NOE/images/service/OpenSources.zip] [http://www.nintendo.co.jp/support/oss/index.html]&lt;br /&gt;
&lt;br /&gt;
The 3DS Internet Browser is [http://en.wikipedia.org/wiki/Netfront Netfront] Browser NX v1.0 based on [http://en.wikipedia.org/wiki/WebKit WebKit] engine.&lt;br /&gt;
&lt;br /&gt;
On O3DS the exheader name of this title is &amp;quot;SPIDER&amp;quot;; on N3DS, &amp;quot;SKATER&amp;quot;.&lt;br /&gt;
The only difference between the ExeFS .code for each region of the Old3DS/New3DS browser, is byte values for the title uniqueID/region.&lt;br /&gt;
&lt;br /&gt;
A [[#v9.9_dummy_web-browser|&amp;quot;dummy&amp;quot; browser]] (which replaces the actual browser) is being included with cartdrige games shipping with system updates starting with [[9.9.0-26|9.9.0-X]]. &lt;br /&gt;
In addition, versions of the real browser since 9.9.0-26X attempt to [[#Forced_system-update|check-in with a Nintendo server]] to determine if the existing browser version is out of date.&lt;br /&gt;
&lt;br /&gt;
==[[New 3DS]] Internet Browser==&lt;br /&gt;
New3DS has a separate browser title, with the exheader name &amp;quot;SKATER&amp;quot;.&lt;br /&gt;
Unlike the Old3DS browser, the New3DS browser has videos+HTML5 support. &lt;br /&gt;
&lt;br /&gt;
This browser also has a filter enabled by default in the JPN version. &lt;br /&gt;
Disabling it requires paying money with a credit-card, for [[NIM_Services|purchasing]] web-browser [[Title_list/DLC|DLC]].&lt;br /&gt;
During startup the browser does various HTTPS comms. When visting an URL, the browser sends a plaintext HTTP POST here: [http://ars.ifuser.jp:20080/ars2/rating]. The raw POST data begins with &amp;quot;ARS/2.0\r\n\x00&amp;quot;, the rest appears to be encrypted. The server reply content also has this ARS header + encrypted data. This appears to use a fixed xorpad, likely from a fixed encryption CTR/IV. The server content responses for allowed sites, and blocked sites, are fixed. When the server returns that the site is blocked, the browser goes to this page: [http://ars.ifuser.jp/filter/44.html](the Referrer header value is set to the same URL it&#039;s actually requesting).&lt;br /&gt;
&lt;br /&gt;
The WebKit source was updated since the Old3DS browser.&lt;br /&gt;
The New3DS browser uses the following services: [[MVD_Services|mvd:STD]] and [[IR_Services|ir:rst]](DLC-related services are used too but those aren&#039;t New3DS specific).&lt;br /&gt;
Video decoding is done with [[MVD_Services|mvd:STD]]. Audio decoding/playback is done with a browser-specific DSP binary. The Old3DS browser used CSND for audio playback, the New3DS browser doesn&#039;t have access to that at all since it uses DSP instead.&lt;br /&gt;
&lt;br /&gt;
=== Video / libstagefright ===&lt;br /&gt;
The browser manual includes licenses for Android and PacketVideo. The browser uses libstagefright from Android. Just like WebKit, the browser appears to use a very old version of libstagefright with security/other changes back-ported(for example, the v10.7 browser libstagefright codebase seems to be older than [https://android.googlesource.com/platform/frameworks/av/+/ec77122351b4e78c1fe5b60a208f76baf8c67591%5E%21/media/libstagefright/MPEG4Extractor.cpp this]). This codebase is missing certain chunk-parsing code for 3GP.&lt;br /&gt;
&lt;br /&gt;
HTTP for libstagefright is internally handled with [[HTTP_Services|HTTPC]], with a similar(?) set of RootCAs as for browser-version-check.&lt;br /&gt;
&lt;br /&gt;
===User-Agent and Browser Versions===&lt;br /&gt;
Normal user-agent format: &amp;lt;code style=&amp;quot;font-size:larger;&amp;quot;&amp;gt;Mozilla/5.0 (New Nintendo 3DS like iPhone) AppleWebKit/&amp;lt;WebKit version&amp;gt; (KHTML, like Gecko) NX/&amp;lt;Netfront version&amp;gt; Mobile NintendoBrowser/&amp;lt;Mobile NintendoBrowser version&amp;gt;.&amp;lt;region&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;region&amp;gt; can be one of the following: &amp;quot;JP&amp;quot;, &amp;quot;US&amp;quot;, or &amp;quot;EU&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Mobile User-Agent is always &amp;lt;code&amp;gt;Mozilla/5.0 (iPhone; CPU iPhone OS 6_0 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) Version/6.0 Mobile/10A403 Safari/8536.25&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Mobile NintendoBrowser version(displayed in browser settings)&lt;br /&gt;
! Normal UA&lt;br /&gt;
! CDN Title-version&lt;br /&gt;
! Network-only system-update version&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| 1.0.9934&lt;br /&gt;
| Mozilla/5.0 (New Nintendo 3DS like iPhone) AppleWebKit/536.30 (KHTML, like Gecko) NX/3.0.0.5.8 Mobile NintendoBrowser/1.0.9934.&amp;lt;region&amp;gt;&lt;br /&gt;
| v10&lt;br /&gt;
| [[9.0.0-20]]&lt;br /&gt;
| Initial version.&lt;br /&gt;
|-&lt;br /&gt;
| 1.1.9996&lt;br /&gt;
| Mozilla/5.0 (New Nintendo 3DS like iPhone) AppleWebKit/536.30 (KHTML, like Gecko) NX/3.0.0.5.10 Mobile NintendoBrowser/1.1.9996.&amp;lt;region&amp;gt;&lt;br /&gt;
| v1027&lt;br /&gt;
| [[9.3.0-21]]&lt;br /&gt;
| See below regarding OSS changes.&lt;br /&gt;
|-&lt;br /&gt;
| 1.2.10085&lt;br /&gt;
| Mozilla/5.0 (New Nintendo 3DS like iPhone) AppleWebKit/536.30 (KHTML, like Gecko) NX/3.0.0.5.13 Mobile NintendoBrowser/1.2.10085.&amp;lt;region&amp;gt;&lt;br /&gt;
| v2051&lt;br /&gt;
| [[9.6.0-24]]&lt;br /&gt;
| See below.&lt;br /&gt;
|-&lt;br /&gt;
| None&lt;br /&gt;
| None&lt;br /&gt;
| v3075&lt;br /&gt;
| v9.9 CUP&lt;br /&gt;
| v9.9 CUP dummy web-browser, see below.&lt;br /&gt;
|-&lt;br /&gt;
| 1.3.10126&lt;br /&gt;
| Mozilla/5.0 (New Nintendo 3DS like iPhone) AppleWebKit/536.30 (KHTML, like Gecko) NX/3.0.0.5.15 Mobile NintendoBrowser/1.3.10126.&amp;lt;region&amp;gt;&lt;br /&gt;
| v3077&lt;br /&gt;
| [[9.9.0-26]]&lt;br /&gt;
| See below.&lt;br /&gt;
|-&lt;br /&gt;
| 1.4.10138&lt;br /&gt;
| Mozilla/5.0 (New Nintendo 3DS like iPhone) AppleWebKit/536.30 (KHTML, like Gecko) NX/3.0.0.5.17 Mobile NintendoBrowser/1.4.10138.&amp;lt;region&amp;gt;&lt;br /&gt;
| v4096&lt;br /&gt;
| [[10.2.0-28]]&lt;br /&gt;
| See below.&lt;br /&gt;
|-&lt;br /&gt;
| 1.5.10143&lt;br /&gt;
| Mozilla/5.0 (New Nintendo 3DS like iPhone) AppleWebKit/536.30 (KHTML, like Gecko) NX/3.0.0.5.19 Mobile NintendoBrowser/1.5.10143.&amp;lt;region&amp;gt;&lt;br /&gt;
| v5121&lt;br /&gt;
| [[10.4.0-29]]&lt;br /&gt;
| See below.&lt;br /&gt;
|-&lt;br /&gt;
| 1.6.10147&lt;br /&gt;
| Mozilla/5.0 (New Nintendo 3DS like iPhone) AppleWebKit/536.30 (KHTML, like Gecko) NX/3.0.0.5.19 Mobile NintendoBrowser/1.6.10147.&amp;lt;region&amp;gt;&lt;br /&gt;
| v6144&lt;br /&gt;
| [[10.6.0-31]]&lt;br /&gt;
| See below.&lt;br /&gt;
|-&lt;br /&gt;
| None&lt;br /&gt;
| None&lt;br /&gt;
| v7168&lt;br /&gt;
| v10.7 CUP&lt;br /&gt;
| v10.7 CUP dummy web-browser, see below.&lt;br /&gt;
|-&lt;br /&gt;
| 1.7.10150&lt;br /&gt;
| Mozilla/5.0 (New Nintendo 3DS like iPhone) AppleWebKit/536.30 (KHTML, like Gecko) NX/3.0.0.5.19 Mobile NintendoBrowser/1.7.10150.&amp;lt;region&amp;gt;&lt;br /&gt;
| v7184&lt;br /&gt;
| [[10.7.0-32]]&lt;br /&gt;
| See below.&lt;br /&gt;
|-&lt;br /&gt;
| 1.8.10156&lt;br /&gt;
| Mozilla/5.0 (New Nintendo 3DS like iPhone) AppleWebKit/536.30 (KHTML, like Gecko) NX/3.0.0.5.20 Mobile NintendoBrowser/1.8.10156.&amp;lt;region&amp;gt;&lt;br /&gt;
| v8192&lt;br /&gt;
| [[11.1.0-34]]&lt;br /&gt;
| See below.&lt;br /&gt;
|-&lt;br /&gt;
| ?&lt;br /&gt;
| ?&lt;br /&gt;
| v9232&lt;br /&gt;
| [[11.4.0-37]]&lt;br /&gt;
| See below.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Note that the latest Old3DS browser WebKit version at the time the initial New3DS browser was released, was the following: 532.8.&lt;br /&gt;
&lt;br /&gt;
The first version of the KOR New3DS browser was v9.6(which was when the New3DS KOR titles were originally added). Each version of the KOR browser has the same NintendoBrowser version as the other regions. The KOR browser has been only updated when the browser for the other regions were updated, hence the title-versions are the same as well. The KOR browser ExeFS .code is different from the other regions(more than just region-related IDs etc).&lt;br /&gt;
&lt;br /&gt;
==== OSS 9.0 and 9.3 diff ====&lt;br /&gt;
The following is a diff of the OSS archives from [http://www.nintendo.co.jp/support/oss/index.html here], for v9.0 and v9.3.&lt;br /&gt;
&lt;br /&gt;
 Files NewNintendo3DS_OpenSources9.0.0-/WKC/WebCore/platform/network/WKC/ResourceHandleManagerWKC.cpp and NewNintendo3DS_OpenSources9.3.0-/WKC/WebCore/platform/network/WKC/ResourceHandleManagerWKC.cpp differ&lt;br /&gt;
 Files NewNintendo3DS_OpenSources9.0.0-/WKC/WebKit/WKC/webkit/WKCVersion.h and NewNintendo3DS_OpenSources9.3.0-/WKC/WebKit/WKC/webkit/WKCVersion.h differ&lt;br /&gt;
&lt;br /&gt;
WKC_CUSTOMER_RELEASE_VERSION was changed from &amp;quot;0.5.8&amp;quot; to &amp;quot;0.5.10&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
The following code was added to ResourceHandleManager::doRedirect(): curl_easy_setopt(d-&amp;gt;m_handle, CURLOPT_SHARE, 0);&lt;br /&gt;
&lt;br /&gt;
==== v9.6 ====&lt;br /&gt;
WebKit/OSS code was actually updated.&lt;br /&gt;
ExeFS .code was updated. The following files in RomFS were updated:&lt;br /&gt;
* &amp;quot;/banner/CN/Skater.icn&amp;quot; and &amp;quot;/banner/KR/Skater.icn&amp;quot;.&lt;br /&gt;
* &amp;quot;/browser/rootca.pem&amp;quot;&lt;br /&gt;
* &amp;quot;/build/buildinfo.dat&amp;quot;&lt;br /&gt;
* &amp;quot;/cairo.cro.lex&amp;quot; and &amp;quot;/.crr/static.crr&amp;quot;&lt;br /&gt;
* &amp;quot;/lyt/Button/ButtonSelectHSearch.arc&amp;quot;&lt;br /&gt;
* &amp;quot;/lyt/Kbd/Swkbd.arc&amp;quot;&lt;br /&gt;
* &amp;quot;lyt/Kbd.arc&amp;quot;&lt;br /&gt;
* &amp;quot;skater.msbt&amp;quot; under all of the &amp;quot;/message/&amp;lt;region&amp;gt;_&amp;lt;language&amp;gt;/&amp;quot; directories.&lt;br /&gt;
* &amp;quot;/oss.cro.lex&amp;quot;, &amp;quot;/peer.cro.lex&amp;quot;, &amp;quot;/static.crs&amp;quot;, and &amp;quot;/webkit.cro.lex&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
The following was added to RomFS:&lt;br /&gt;
* &amp;quot;/favicon/naver.dat&amp;quot;&lt;br /&gt;
* A &amp;quot;KO&amp;quot; directory under &amp;quot;/iwnn&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
==== v9.9 ====&lt;br /&gt;
ExeFS:/.code was updated.&lt;br /&gt;
&lt;br /&gt;
The only RomFS changes is file-updating, all of the following files were updated:&lt;br /&gt;
 /browser/rootca.pem&lt;br /&gt;
 /build/buildinfo.dat&lt;br /&gt;
 /cairo.cro.lex&lt;br /&gt;
 /.crr/static.crr&lt;br /&gt;
 /message/CN_Simp_Chinese/skater.msbt&lt;br /&gt;
 /message/EU_Dutch/skater.msbt&lt;br /&gt;
 /message/EU_English/skater.msbt&lt;br /&gt;
 /message/EU_French/skater.msbt&lt;br /&gt;
 /message/EU_German/skater.msbt&lt;br /&gt;
 /message/EU_Italian/skater.msbt&lt;br /&gt;
 /message/EU_Portuguese/skater.msbt&lt;br /&gt;
 /message/EU_Russian/skater.msbt&lt;br /&gt;
 /message/EU_Spanish/skater.msbt&lt;br /&gt;
 /message/JP_Japanese/skater.msbt&lt;br /&gt;
 /message/KR_Hangeul/skater.msbt&lt;br /&gt;
 /message/TW_English/skater.msbt&lt;br /&gt;
 /message/TW_Trad_Chinese/skater.msbt&lt;br /&gt;
 /message/US_English/skater.msbt&lt;br /&gt;
 /message/US_French/skater.msbt&lt;br /&gt;
 /message/US_Portuguese/skater.msbt&lt;br /&gt;
 /message/US_Spanish/skater.msbt&lt;br /&gt;
 /oss.cro.lex&lt;br /&gt;
 /peer.cro.lex&lt;br /&gt;
 /static.crs&lt;br /&gt;
 /webkit.cro.lex&lt;br /&gt;
&lt;br /&gt;
See [https://gist.github.com/yellows8/9fb509fde4112339f342 here] for a diff of the OSS(WebKitLibraries/ is not included due to the massive cairo library diff). An exploitable security vuln(which was already known in the context of 3DS webkit) was fixed. [[User:Yellows8|Yellows8]]&#039; private(at the time of writing) exploit for it is based on the PoC from [http://pastebin.com/ufBCQKda here](see the pastebin for the actual pastebin author).&lt;br /&gt;
&lt;br /&gt;
==== v10.2 ====&lt;br /&gt;
The libstagefright build in the main SKATER codebin was updated to a version which fixed libstagefright vuln(s): the vuln used in [[browserhax|browserhax_fright]] at the time of sysupdate release was fixed. The *only* code changed in the main codebin, was code related to libstagefright.&lt;br /&gt;
&lt;br /&gt;
The only RomFS changes is file-updating, all of the following files were updated(see the forced-sysupdate section regarding what changed in the message files):&lt;br /&gt;
 /browser/rootca.pem&lt;br /&gt;
 /build/buildinfo.dat&lt;br /&gt;
 /.crr/static.crr&lt;br /&gt;
 /message/CN_Simp_Chinese/skater.msbt&lt;br /&gt;
 /message/EU_Dutch/skater.msbt&lt;br /&gt;
 /message/EU_English/skater.msbt&lt;br /&gt;
 /message/EU_French/skater.msbt&lt;br /&gt;
 /message/EU_German/skater.msbt&lt;br /&gt;
 /message/EU_Italian/skater.msbt&lt;br /&gt;
 /message/EU_Portuguese/skater.msbt&lt;br /&gt;
 /message/EU_Russian/skater.msbt&lt;br /&gt;
 /message/EU_Spanish/skater.msbt&lt;br /&gt;
 /message/JP_Japanese/skater.msbt&lt;br /&gt;
 /message/KR_Hangeul/skater.msbt&lt;br /&gt;
 /message/TW_English/skater.msbt&lt;br /&gt;
 /message/TW_Trad_Chinese/skater.msbt&lt;br /&gt;
 /message/US_English/skater.msbt&lt;br /&gt;
 /message/US_French/skater.msbt&lt;br /&gt;
 /message/US_Portuguese/skater.msbt&lt;br /&gt;
 /message/US_Spanish/skater.msbt&lt;br /&gt;
 /oss.cro.lex&lt;br /&gt;
 /static.crs&lt;br /&gt;
 /webkit.cro.lex&lt;br /&gt;
&lt;br /&gt;
OSS diff:&lt;br /&gt;
 diff --git a/NewNintendo3DS_OpenSources9.9.0-/WKC/WebKit/WKC/webkit/WKCVersion.h b/NewNintendo3DS_OpenSources10.2.0-/WKC/WebKit/WKC/webkit/WKCVersion.h&lt;br /&gt;
 index 4543297..0860336 100644&lt;br /&gt;
 --- a/NewNintendo3DS_OpenSources9.9.0-/WKC/WebKit/WKC/webkit/WKCVersion.h&lt;br /&gt;
 +++ b/NewNintendo3DS_OpenSources10.2.0-/WKC/WebKit/WKC/webkit/WKCVersion.h&lt;br /&gt;
 @@ -29,7 +29,7 @@&lt;br /&gt;
  #define WKC_VERSION_CHECK(major, minor, micro) \&lt;br /&gt;
      (((major)*10000) + ((minor)*100) + (micro)) &amp;gt;= ((WKC_VERSION_MAJOR*10000) + (WKC_VERSION_MINOR*100) + (WKC_VERSION_MICRO))&lt;br /&gt;
  &lt;br /&gt;
 -#define WKC_CUSTOMER_RELEASE_VERSION &amp;quot;0.5.15&amp;quot;&lt;br /&gt;
 +#define WKC_CUSTOMER_RELEASE_VERSION &amp;quot;0.5.17&amp;quot;&lt;br /&gt;
  &lt;br /&gt;
  #define WKC_WEBKIT_VERSION &amp;quot;536.30&amp;quot;&lt;br /&gt;
  &lt;br /&gt;
 diff --git a/NewNintendo3DS_OpenSources9.9.0-/webkit/WebCore/ChangeLog b/NewNintendo3DS_OpenSources10.2.0-/webkit/WebCore/ChangeLog&lt;br /&gt;
 index a5abb35..cf5a9fa 100644&lt;br /&gt;
 --- a/NewNintendo3DS_OpenSources9.9.0-/webkit/WebCore/ChangeLog&lt;br /&gt;
 +++ b/NewNintendo3DS_OpenSources10.2.0-/webkit/WebCore/ChangeLog&lt;br /&gt;
 @@ -1,3 +1,12 @@&lt;br /&gt;
 +2013-11-05  Ryosuke Niwa  &amp;lt;rniwa@webkit.org&amp;gt;&lt;br /&gt;
 +&lt;br /&gt;
 +        Use-after-free in SliderThumbElement::dragFrom&lt;br /&gt;
 +        https://bugs.webkit.org/show_bug.cgi?id=123873&lt;br /&gt;
 +&lt;br /&gt;
 +        Reviewed by Andreas Kling.&lt;br /&gt;
 +&lt;br /&gt;
 +        Merge https://chromium.googlesource.com/chromium/blink/+/04a23bfca2d04101a1828d36ff36c29f3a24f34b&lt;br /&gt;
 +&lt;br /&gt;
  2015-02-06  Maciej Stachowiak  &amp;lt;mjs@apple.com&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
          REGRESSION(r179706): Caused memory corruption on some tests (Requested by _ap_ on #webkit).&lt;br /&gt;
 @@ -879,7 +888,7 @@&lt;br /&gt;
          * rendering/RenderLineBoxList.cpp:&lt;br /&gt;
          (WebCore::RenderLineBoxList::dirtyLinesFromChangedChild):&lt;br /&gt;
  &lt;br /&gt;
 -2014-01-21  LÃ¡szlÃ³ LangÃ³  &amp;lt;llango.u-szeged@partner.samsung.com&amp;gt;&lt;br /&gt;
 +2014-01-21  Laszlo Lango  &amp;lt;llango.u-szeged@partner.samsung.com&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
          Assertion failure in Range::nodeWillBeRemoved&lt;br /&gt;
          https://bugs.webkit.org/show_bug.cgi?id=121694&lt;br /&gt;
 @@ -1879,7 +1888,7 @@&lt;br /&gt;
  &lt;br /&gt;
  2012-09-14  Simon Fraser  &amp;lt;simon.fraser@apple.com&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
 -        REGRESSION: transition doesnât always override transition-property&lt;br /&gt;
 +        REGRESSION: transition doesnft always override transition-property&lt;br /&gt;
          https://bugs.webkit.org/show_bug.cgi?id=96658&lt;br /&gt;
  &lt;br /&gt;
          Reviewed by Dean Jackson.&lt;br /&gt;
 @@ -3691,8 +3700,8 @@&lt;br /&gt;
              glyph with font data for the primary font, presumably to meet the SVG&lt;br /&gt;
              spec requirement: &amp;quot;If the references to alternate glyphs do not result&lt;br /&gt;
              in successful identification of alternate glyphs to use, then the&lt;br /&gt;
 -            character(s) that are inside of the çª¶åltGlyphçª¶?element are rendered as&lt;br /&gt;
 -            if the çª¶åltGlyphçª¶?element were a çª¶?spançª¶?element instead.&amp;quot;&lt;br /&gt;
 +            character(s) that are inside of the âaltGlyphâ?element are rendered as&lt;br /&gt;
 +            if the âaltGlyphâ?element were a â?spanâ?element instead.&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
              If the alt glyph is not then found we are in the case from the spec&lt;br /&gt;
              and indeed we should use the primary font. However, we end up replacing the GlyphPage&lt;br /&gt;
 diff --git a/NewNintendo3DS_OpenSources9.9.0-/webkit/WebCore/html/RangeInputType.cpp b/NewNintendo3DS_OpenSources10.2.0-/webkit/WebCore/html/RangeInputType.cpp&lt;br /&gt;
 index 484adec..d7e9e8d 100644&lt;br /&gt;
 --- a/NewNintendo3DS_OpenSources9.9.0-/webkit/WebCore/html/RangeInputType.cpp&lt;br /&gt;
 +++ b/NewNintendo3DS_OpenSources10.2.0-/webkit/WebCore/html/RangeInputType.cpp&lt;br /&gt;
 @@ -164,7 +164,7 @@ void RangeInputType::handleMouseDownEvent(MouseEvent* event)&lt;br /&gt;
      ASSERT(element()-&amp;gt;hasShadowRoot());&lt;br /&gt;
      if (targetNode != element() &amp;amp;&amp;amp; !targetNode-&amp;gt;isDescendantOf(element()-&amp;gt;shadowTree()-&amp;gt;oldestShadowRoot()))&lt;br /&gt;
          return;&lt;br /&gt;
 -    SliderThumbElement* thumb = sliderThumbElementOf(element());&lt;br /&gt;
 +    RefPtr&amp;lt;SliderThumbElement&amp;gt; thumb = sliderThumbElementOf(element());&lt;br /&gt;
      if (targetNode == thumb)&lt;br /&gt;
          return;&lt;br /&gt;
      thumb-&amp;gt;dragFrom(event-&amp;gt;absoluteLocation());&lt;br /&gt;
&lt;br /&gt;
==== v10.4 ====&lt;br /&gt;
The ExeFS codebin was updated, the only change was that the following code was updated in the actual NupCheck HTTPS request function:&lt;br /&gt;
* Previous version: sprintf(out, &amp;quot;https://cbvc.cdn.nintendo.net/SNAKE/2/%s&amp;quot;, region);&lt;br /&gt;
* Current  version: sprintf(out, &amp;quot;https://cbvc.cdn.nintendo.net/SNAKE/%d/%s&amp;quot;, 3, region);&lt;br /&gt;
&lt;br /&gt;
libpng was updated from version 1.5.21 to 1.5.24.&lt;br /&gt;
&lt;br /&gt;
The following RomFS files were updated(see the forced-sysupdate section regarding what changed in the message files):&lt;br /&gt;
 /browser/rootca.pem&lt;br /&gt;
 /build/buildinfo.dat&lt;br /&gt;
 /cairo.cro.lex&lt;br /&gt;
 /.crr/static.crr&lt;br /&gt;
 /message/CN_Simp_Chinese/skater.msbt&lt;br /&gt;
 /message/EU_Dutch/skater.msbt&lt;br /&gt;
 /message/EU_English/skater.msbt&lt;br /&gt;
 /message/EU_French/skater.msbt&lt;br /&gt;
 /message/EU_German/skater.msbt&lt;br /&gt;
 /message/EU_Italian/skater.msbt&lt;br /&gt;
 /message/EU_Portuguese/skater.msbt&lt;br /&gt;
 /message/EU_Russian/skater.msbt&lt;br /&gt;
 /message/EU_Spanish/skater.msbt&lt;br /&gt;
 /message/JP_Japanese/skater.msbt&lt;br /&gt;
 /message/KR_Hangeul/skater.msbt&lt;br /&gt;
 /message/TW_English/skater.msbt&lt;br /&gt;
 /message/TW_Trad_Chinese/skater.msbt&lt;br /&gt;
 /message/US_English/skater.msbt&lt;br /&gt;
 /message/US_French/skater.msbt&lt;br /&gt;
 /message/US_Portuguese/skater.msbt&lt;br /&gt;
 /message/US_Spanish/skater.msbt&lt;br /&gt;
 /oss.cro.lex differ&lt;br /&gt;
 /peer.cro.lex differ&lt;br /&gt;
 /static.crs differ&lt;br /&gt;
 /webkit.cro.lex differ&lt;br /&gt;
&lt;br /&gt;
==== v10.6 ====&lt;br /&gt;
The ExeFS codebin was updated.&lt;br /&gt;
&lt;br /&gt;
[[browserhax|browserhax_fright_tx3g]] was fixed. The code handling tx3g now matches the latest libstagefright git.&lt;br /&gt;
&lt;br /&gt;
Hence the below RomFS listing, no OSS was updated at all(besides libstagefright mentioned above).&lt;br /&gt;
&lt;br /&gt;
The following RomFS files were updated:&lt;br /&gt;
 /build/buildinfo.dat&lt;br /&gt;
 /static.crs&lt;br /&gt;
&lt;br /&gt;
==== v10.7 ====&lt;br /&gt;
Basically the same changes as Old3DS v10.7, except with the usual buildinfo.dat update in RomFS. The below date is 6 days after the browser-version-check [[3DS_Userland_Flaws|bypass]] was publicly disclosed.&lt;br /&gt;
&lt;br /&gt;
 cat v7184/00000025_romfs/build/buildinfo.dat&lt;br /&gt;
 10150&lt;br /&gt;
 applet&lt;br /&gt;
 2016-03-02 18:25&lt;br /&gt;
&lt;br /&gt;
==== v11.1 ====&lt;br /&gt;
The ExeFS codebin was updated. The following files in RomFS were updated:&lt;br /&gt;
&lt;br /&gt;
  /build/buildinfo.dat&lt;br /&gt;
  /.crr/static.crr&lt;br /&gt;
  /oss.cro.lex&lt;br /&gt;
  /static.crs&lt;br /&gt;
  /webkit.cro.lex&lt;br /&gt;
&lt;br /&gt;
  cat v8192/00000026_romfs/build/buildinfo.dat&lt;br /&gt;
  10156&lt;br /&gt;
  applet&lt;br /&gt;
  2016-08-26 19:47&lt;br /&gt;
&lt;br /&gt;
Minus the 4 functions that changed due to compiler optimization, only 1 function was actually updated. This is LT_1a4004, previous version at LT_1a4004: libstagefright status_t MPEG4Extractor::parseChunk(off64_t *offset, int depth)&lt;br /&gt;
&lt;br /&gt;
Additional code was added which doesn&#039;t seem to be from upstream git, right [https://android.googlesource.com/platform/frameworks/av/+/32d6e5f0ebe9e00f80401e5f4fd6e285a474590d/media/libstagefright/MPEG4Extractor.cpp#880 before] the cprt code block: &amp;quot;if((*offset + chunk_size) - data_offset &amp;lt; 0)fail&amp;quot;&lt;br /&gt;
&lt;br /&gt;
This fixed skater31hax + any other mp4 haxx which requires using a negative 64bit chunk_size value.&lt;br /&gt;
&lt;br /&gt;
The filepath base used in the assert strings were changed from &amp;quot;d:\Jenkins\workspace\MPSkaterBuild\MVPlayer\Skater\Base\Android\frameworks\base\media\libstagefright\&amp;quot; to &amp;quot;d:\jenkins\workspace\MPSkaterBuild-Git\Base\Android\frameworks\base\media\libstagefright\&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
==== v11.4 ====&lt;br /&gt;
The only changes in RomFS was for &amp;quot;/build/buildinfo.dat&amp;quot; and &amp;quot;/static.crs&amp;quot;, hence no OSS in CRO(s) were updated.&lt;br /&gt;
&lt;br /&gt;
The main codebin was updated.&lt;br /&gt;
&lt;br /&gt;
  cat v9232/00000027_romfs/build/buildinfo.dat&lt;br /&gt;
  10160&lt;br /&gt;
  applet&lt;br /&gt;
  2017-03-08 19:44&lt;br /&gt;
&lt;br /&gt;
=== New3DS Browser Specifications ===&lt;br /&gt;
[http://www.nintendo.co.jp/3ds/new/features/modal_net.html]&lt;br /&gt;
&lt;br /&gt;
English version:&lt;br /&gt;
* &amp;quot;Browser engine: NetFront® Browser NX v3.0&amp;quot;&lt;br /&gt;
* &amp;quot;User agent: Mozilla/5.0 (New Nintendo 3DS like iPhone) AppleWebKit/536.30 (KHTML and like Gecko) NX/3.0.*.*.* Mobile NintendoBrowser/1.0.**** JP&lt;br /&gt;
* ** Version information is stated.&lt;br /&gt;
* *** When using the “Mobile version request” function, it differs from the above-mentioned character string&amp;quot;&lt;br /&gt;
* &amp;quot;Supported protocols: HTTP1.0/HTTP1.1/SSL3.0/TLS1.0/TLS1.1/TLS1.2&amp;quot;&lt;br /&gt;
* &amp;quot;Web standard: HTML4.01 / HTML5 / XHTML1.1 / Fullscreen API / Gamepad API / SVG / WebSocket / Video Subtitle / WOFF / Web Messaging / Server-Sent / Web Storage (partial) / XMLHttpRequest / Canvas element / Video / DOM Levels 1-3 / ECMAScript / CSS1 / CSS2.1 / CSS3 (partial)&amp;quot;&lt;br /&gt;
* &amp;quot;Image format: bmp / ​​gif / ico / jpeg / png / svg (There are, however, possibilities that some images won&#039;t display.)&amp;quot;&lt;br /&gt;
* &amp;quot;Image preview: mpo / jpeg (There are, however, possibilities that some images won&#039;t display.)&amp;quot;&lt;br /&gt;
* &amp;quot;Video format: MP4, M3U8 + TS (HTTPLiveStreaming) (There are, however, some videos that may not be played.)&amp;quot;&lt;br /&gt;
* &amp;quot;Video codec: H.264 - MPEG-4 AVC Video (max 854x480 at level 3.2, 3D compatible) (There are, however, some videos that can not be played.)&amp;quot;&lt;br /&gt;
* &amp;quot;Audio codec: AAC - ISO / IEC 14496-3 MPEG-4AAC, MP3 (There are, however, some videos that can not be played.)&amp;quot;&lt;br /&gt;
* &amp;quot;Format for uploading 3D videos: .mkv (In order to be played, videos must be converted to the appropriate format within the site you are uploading to. In some cases, the video will not play even if converted.)&amp;quot;&lt;br /&gt;
* &amp;quot;Plug-ins: Plug-ins such as Adobe Flash are not supported&amp;quot;&lt;br /&gt;
* &amp;quot;Active Rating System filtering: provided by Digital Arts, Inc.. Access to web content can be limited based on its category information, restricting access to web content that may result inappropriate.&amp;quot;&lt;br /&gt;
* &amp;quot;Websites can be requested to provide the mobile version (However, if the web page does not have a mobile version, it won&#039;t change the way it&#039;s displayed.)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
MJPEG + .avi is also supported.&lt;br /&gt;
&lt;br /&gt;
==== Notes ====&lt;br /&gt;
* The html &amp;quot;color&amp;quot; &amp;lt;input&amp;gt; type is not supported.&lt;br /&gt;
&lt;br /&gt;
== Old3DS browser ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Old3DS Browser Specifications ===&lt;br /&gt;
* &amp;quot;Browser engine: NetFront® Browser&amp;quot;&lt;br /&gt;
* &amp;quot;User agent: Mozilla/5.0 (Nintendo 3DS; region; ; en) Version/1.7498.US&amp;quot;&lt;br /&gt;
* &amp;quot;Supported protocols: HTTP1.0/HTTP1.1/SSLv3/TLS1.0&amp;quot;&lt;br /&gt;
* &amp;quot;Web standard: HTML 4.01/XHTML 1.1/CSS 1/CSS 2.1/CSS 3 (partial functionality)/DOM Levels 1-3/ECMAScript/XMLHttpRequest/Canvas Element (partial functionality)&amp;quot;&lt;br /&gt;
* &amp;quot;Image format: MPO / GIF / JPEG / PNG / BMP / ICO (some images cannot be displayed)&amp;quot;&lt;br /&gt;
* &amp;quot;Plug-ins: Plug-ins such as Adobe Flash are not supported&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Old3DS browser doesn&#039;t support events &amp;quot;focusin&amp;quot; and &amp;quot;focusout&amp;quot;&lt;br /&gt;
&lt;br /&gt;
=== User-Agent and Browser Versions ===&lt;br /&gt;
User-agent format: &amp;lt;code style=&amp;quot;font-size:larger;&amp;quot;&amp;gt;Mozilla/5.0 (Nintendo 3DS; U; ; &amp;lt;lang&amp;gt;) Version/&amp;lt;version&amp;gt;.&amp;lt;region&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;lang&amp;gt; is &amp;quot;en&amp;quot;, &amp;quot;fr&amp;quot;, etc. &amp;lt;region&amp;gt; is &amp;quot;US&amp;quot;, &amp;quot;EU&amp;quot;, etc. See below for &amp;lt;version&amp;gt;.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Browser version&lt;br /&gt;
! CDN Title-version&lt;br /&gt;
! Network-only system-update version&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| 1.7412&lt;br /&gt;
| v6&lt;br /&gt;
| [[2.0.0-2|2.0.0-2]]&lt;br /&gt;
| This was the initial version.&lt;br /&gt;
|-&lt;br /&gt;
| 1.7455&lt;br /&gt;
| v1024&lt;br /&gt;
| [[2.1.0-4]]&lt;br /&gt;
| ExeFS .code was updated, both of the CROs(webkit/OSS) were updated too.&lt;br /&gt;
|-&lt;br /&gt;
| 1.7498&lt;br /&gt;
| v2050&lt;br /&gt;
| [[4.0.0-7]]&lt;br /&gt;
| ExeFS .code was updated, both of the CROs(webkit/OSS) were updated too. The manual CFA was updated as well.&lt;br /&gt;
|-&lt;br /&gt;
| 1.7538&lt;br /&gt;
| v0&lt;br /&gt;
| [[4.2.0-9]]&lt;br /&gt;
| First version of the KOR browser. The CROs are different from the  USA/EUR/JPN [[4.0.0-7]] browser.&lt;br /&gt;
|-&lt;br /&gt;
| 1.7552&lt;br /&gt;
| v3075&lt;br /&gt;
| [[5.0.0-11]]&lt;br /&gt;
| ExeFS .code and icon were updated, both of the CROs(webkit/OSS) were updated too. The manual CFA was updated as well.&lt;br /&gt;
|-&lt;br /&gt;
| 1.7552&lt;br /&gt;
| v3088&lt;br /&gt;
| [[7.0.0-13]]&lt;br /&gt;
| The main NCCH wasn&#039;t updated at all(same TMD contentID/content-hash as the previous version), only the manual CFA for this title was updated.&lt;br /&gt;
|-&lt;br /&gt;
| 1.7567&lt;br /&gt;
| v4096&lt;br /&gt;
| [[7.1.0-16]]&lt;br /&gt;
| The CXI .code was updated, some data in the RomFS was updated(none of the CROs such as webkit.cro were updated). The manual CFA was updated too.&lt;br /&gt;
|-&lt;br /&gt;
| 1.7585&lt;br /&gt;
| v5121&lt;br /&gt;
| [[9.5.0-23]]&lt;br /&gt;
| The CXI .code was updated, and the manual CFA was updated. RomFS changes:&lt;br /&gt;
* &amp;quot;/browser/rootca.pem&amp;quot; updated&lt;br /&gt;
* &amp;quot;/cro/oss.cro&amp;quot; updated&lt;br /&gt;
* &amp;quot;/cro/static.crs&amp;quot; updated&lt;br /&gt;
* &amp;quot;/cro/webkit.cro&amp;quot; updated&lt;br /&gt;
* &amp;quot;/.crr/static.crr&amp;quot; updated&lt;br /&gt;
* &amp;quot;/layout/dialogheader/WirelessSwitchOff.arc&amp;quot; was removed&lt;br /&gt;
* &amp;quot;/layout/favorite/favicondata/KOR.arc&amp;quot; updated&lt;br /&gt;
&lt;br /&gt;
A vuln used in a public(at the time of this sysupdate) webkit exploit for spider was fixed, which also fixed the removewinframe exploit from [https://github.com/yellows8/3ds_webkithax here].&lt;br /&gt;
|-&lt;br /&gt;
| None&lt;br /&gt;
| v6147&lt;br /&gt;
| v9.9 CUP&lt;br /&gt;
| v9.9 CUP dummy web-browser, see below.&lt;br /&gt;
|-&lt;br /&gt;
| 1.7610&lt;br /&gt;
| v6149&lt;br /&gt;
| [[9.9.0-26]]&lt;br /&gt;
| See below.&lt;br /&gt;
|-&lt;br /&gt;
| 1.7616&lt;br /&gt;
| v7168&lt;br /&gt;
| [[10.2.0-28]]&lt;br /&gt;
| See below.&lt;br /&gt;
|-&lt;br /&gt;
| 1.7622&lt;br /&gt;
| v8192&lt;br /&gt;
| [[10.6.0-31]]&lt;br /&gt;
| See below.&lt;br /&gt;
|-&lt;br /&gt;
| None&lt;br /&gt;
| v9216&lt;br /&gt;
| v10.7 CUP&lt;br /&gt;
| v10.7 CUP dummy web-browser, see below.&lt;br /&gt;
|-&lt;br /&gt;
| 1.7625&lt;br /&gt;
| v9232&lt;br /&gt;
| [[10.7.0-32]]&lt;br /&gt;
| See below.&lt;br /&gt;
|-&lt;br /&gt;
| 1.7630&lt;br /&gt;
| v10240&lt;br /&gt;
| [[11.1.0-34]]&lt;br /&gt;
| See below.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Heap ===&lt;br /&gt;
The USA/EUR/JPN + KOR browser allocates the 0x08000000 heap with size 0x01A97000. The size used by the CHN and TWN browser is 0x01997000, exactly 0x100000-bytes smaller.&lt;br /&gt;
&lt;br /&gt;
=== Old3DS v9.9 ===&lt;br /&gt;
ExeFS:/.code was updated.&lt;br /&gt;
&lt;br /&gt;
The only changes in RomFS were file-updating, the following files were updated:&lt;br /&gt;
 /browser/rootca.pem&lt;br /&gt;
 /cro/oss.cro&lt;br /&gt;
 /cro/static.crs&lt;br /&gt;
 /cro/webkit.cro&lt;br /&gt;
 /.crr/static.crr&lt;br /&gt;
 /message/CN_Simp_Chinese/spider.msbt&lt;br /&gt;
 /message/EU_Dutch/spider.msbt&lt;br /&gt;
 /message/EU_English/spider.msbt&lt;br /&gt;
 /message/EU_French/spider.msbt&lt;br /&gt;
 /message/EU_German/spider.msbt&lt;br /&gt;
 /message/EU_Italian/spider.msbt&lt;br /&gt;
 /message/EU_Portuguese/spider.msbt&lt;br /&gt;
 /message/EU_Russian/spider.msbt&lt;br /&gt;
 /message/EU_Spanish/spider.msbt&lt;br /&gt;
 /message/JP_Japanese/spider.msbt&lt;br /&gt;
 /message/KR_Hangeul/spider.msbt&lt;br /&gt;
 /message/TW_English/spider.msbt&lt;br /&gt;
 /message/TW_Trad_Chinese/spider.msbt&lt;br /&gt;
 /message/US_English/spider.msbt&lt;br /&gt;
 /message/US_French/spider.msbt&lt;br /&gt;
 /message/US_Portuguese/spider.msbt&lt;br /&gt;
 /message/US_Spanish/spider.msbt&lt;br /&gt;
&lt;br /&gt;
OSS diff for v9.5 and v9.9, without the .dox changes:&lt;br /&gt;
&lt;br /&gt;
 diff --git a/3DS_InternetBrowser_OpenSources_JP_US_EU_KR_TW_HK_CN_9.5.0(23J_23U_23E_19K_18T_3C)/WKC/WebKit/WKC/webkit/WKCVersion.h b/3DS_InternetBrowser_OpenSources_JP_US_EU_KR_TW_HK_CN_9.9.0/WKC/WebKit/WKC/webkit/WKCVersion.h&lt;br /&gt;
 index be5ff09..55a7274 100644&lt;br /&gt;
 --- a/3DS_InternetBrowser_OpenSources_JP_US_EU_KR_TW_HK_CN_9.5.0(23J_23U_23E_19K_18T_3C)/WKC/WebKit/WKC/webkit/WKCVersion.h&lt;br /&gt;
 +++ b/3DS_InternetBrowser_OpenSources_JP_US_EU_KR_TW_HK_CN_9.9.0/WKC/WebKit/WKC/webkit/WKCVersion.h&lt;br /&gt;
 @@ -29,7 +29,7 @@&lt;br /&gt;
  #define WKC_VERSION_CHECK(major, minor, micro) \&lt;br /&gt;
      (((major)*10000) + ((minor)*100) + (micro)) &amp;gt;= ((WKC_VERSION_MAJOR*10000) + (WKC_VERSION_MINOR*100) + (WKC_VERSION_MICRO))&lt;br /&gt;
  &lt;br /&gt;
 -#define WKC_CUSTOMER_RELEASE_VERSION &amp;quot;1.8.14&amp;quot;&lt;br /&gt;
 +#define WKC_CUSTOMER_RELEASE_VERSION &amp;quot;1.8.16&amp;quot;&lt;br /&gt;
  &lt;br /&gt;
  #define WKC_WEBKIT_VERSION &amp;quot;532.7&amp;quot;&lt;br /&gt;
  &lt;br /&gt;
 diff --git a/3DS_InternetBrowser_OpenSources_JP_US_EU_KR_TW_HK_CN_9.5.0(23J_23U_23E_19K_18T_3C)/webkit/WebCore/rendering/RenderBox.cpp b/3DS_InternetBrowser_OpenSources_JP_US_EU_KR_TW_HK_CN_9.9.0/webkit/WebCore/rendering/RenderBox.cpp&lt;br /&gt;
 index da4127e..d03403e 100644&lt;br /&gt;
 --- a/3DS_InternetBrowser_OpenSources_JP_US_EU_KR_TW_HK_CN_9.5.0(23J_23U_23E_19K_18T_3C)/webkit/WebCore/rendering/RenderBox.cpp&lt;br /&gt;
 +++ b/3DS_InternetBrowser_OpenSources_JP_US_EU_KR_TW_HK_CN_9.9.0/webkit/WebCore/rendering/RenderBox.cpp&lt;br /&gt;
 @@ -305,23 +305,23 @@ int RenderBox::scrollHeight() const&lt;br /&gt;
  &lt;br /&gt;
  int RenderBox::scrollLeft() const&lt;br /&gt;
  {&lt;br /&gt;
 -    return hasOverflowClip() ? layer()-&amp;gt;scrollXOffset() : 0;&lt;br /&gt;
 +    return layer() &amp;amp;&amp;amp; hasOverflowClip() ? layer()-&amp;gt;scrollXOffset() : 0;&lt;br /&gt;
  }&lt;br /&gt;
  &lt;br /&gt;
  int RenderBox::scrollTop() const&lt;br /&gt;
  {&lt;br /&gt;
 -    return hasOverflowClip() ? layer()-&amp;gt;scrollYOffset() : 0;&lt;br /&gt;
 +    return layer() &amp;amp;&amp;amp; hasOverflowClip() ? layer()-&amp;gt;scrollYOffset() : 0;&lt;br /&gt;
  }&lt;br /&gt;
 &lt;br /&gt;
  void RenderBox::setScrollLeft(int newLeft)&lt;br /&gt;
  {&lt;br /&gt;
 -    if (hasOverflowClip())&lt;br /&gt;
 +    if (hasOverflowClip() &amp;amp;&amp;amp; layer())&lt;br /&gt;
          layer()-&amp;gt;scrollToXOffset(newLeft);&lt;br /&gt;
  }&lt;br /&gt;
  &lt;br /&gt;
  void RenderBox::setScrollTop(int newTop)&lt;br /&gt;
  {&lt;br /&gt;
 -    if (hasOverflowClip())&lt;br /&gt;
 +    if (hasOverflowClip() &amp;amp;&amp;amp; layer())&lt;br /&gt;
          layer()-&amp;gt;scrollToYOffset(newTop);&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
=== Old3DS v10.2 ===&lt;br /&gt;
The slider vuln from [https://github.com/yellows8/3ds_webkithax here] was fixed in the Old3DS browser.&lt;br /&gt;
&lt;br /&gt;
The main codebin .text only increased by 0x10-bytes.&lt;br /&gt;
&lt;br /&gt;
The only changes in RomFS was that the following files were updated:&lt;br /&gt;
 /cro/oss.cro&lt;br /&gt;
 /cro/static.crs&lt;br /&gt;
 /cro/webkit.cro&lt;br /&gt;
 /.crr/static.crr&lt;br /&gt;
&lt;br /&gt;
OSS diff:&lt;br /&gt;
 diff --git a/3DS_InternetBrowser_OpenSources_JP_US_EU_KR_TW_HK_CN_9.9.0/WKC/WebKit/WKC/webkit/WKCVersion.h b/3DS_InternetBrowser_OpenSources_JP_US_EU_KR_TW_HK_CN_10.2.0/WKC/WebKit/WKC/webkit/WKCVersion.h&lt;br /&gt;
 index 55a7274..fc153c4 100644&lt;br /&gt;
 --- a/3DS_InternetBrowser_OpenSources_JP_US_EU_KR_TW_HK_CN_9.9.0/WKC/WebKit/WKC/webkit/WKCVersion.h&lt;br /&gt;
 +++ b/3DS_InternetBrowser_OpenSources_JP_US_EU_KR_TW_HK_CN_10.2.0/WKC/WebKit/WKC/webkit/WKCVersion.h&lt;br /&gt;
 @@ -29,7 +29,7 @@&lt;br /&gt;
  #define WKC_VERSION_CHECK(major, minor, micro) \&lt;br /&gt;
      (((major)*10000) + ((minor)*100) + (micro)) &amp;gt;= ((WKC_VERSION_MAJOR*10000) + (WKC_VERSION_MINOR*100) + (WKC_VERSION_MICRO))&lt;br /&gt;
  &lt;br /&gt;
 -#define WKC_CUSTOMER_RELEASE_VERSION &amp;quot;1.8.16&amp;quot;&lt;br /&gt;
 +#define WKC_CUSTOMER_RELEASE_VERSION &amp;quot;1.8.17&amp;quot;&lt;br /&gt;
  &lt;br /&gt;
  #define WKC_WEBKIT_VERSION &amp;quot;532.7&amp;quot;&lt;br /&gt;
  &lt;br /&gt;
 diff --git a/3DS_InternetBrowser_OpenSources_JP_US_EU_KR_TW_HK_CN_9.9.0/webkit/WebCore/rendering/RenderSlider.cpp b/3DS_InternetBrowser_OpenSources_JP_US_EU_KR_TW_HK_CN_10.2.0/webkit/WebCore/rendering/RenderSlider.cpp&lt;br /&gt;
 index b2f5cef..1dd3dbd 100644&lt;br /&gt;
 --- a/3DS_InternetBrowser_OpenSources_JP_US_EU_KR_TW_HK_CN_9.9.0/webkit/WebCore/rendering/RenderSlider.cpp&lt;br /&gt;
 +++ b/3DS_InternetBrowser_OpenSources_JP_US_EU_KR_TW_HK_CN_10.2.0/webkit/WebCore/rendering/RenderSlider.cpp&lt;br /&gt;
 @@ -221,6 +221,7 @@ RenderSlider::~RenderSlider()&lt;br /&gt;
  {&lt;br /&gt;
      if (m_thumb)&lt;br /&gt;
          m_thumb-&amp;gt;detach();&lt;br /&gt;
 +    m_thumb = 0;&lt;br /&gt;
  }&lt;br /&gt;
  &lt;br /&gt;
  int RenderSlider::baselinePosition(bool, bool) const&lt;br /&gt;
 @@ -493,7 +494,8 @@ void RenderSlider::forwardEvent(Event* event)&lt;br /&gt;
          }&lt;br /&gt;
      }&lt;br /&gt;
  &lt;br /&gt;
 -    m_thumb-&amp;gt;defaultEventHandler(event);&lt;br /&gt;
 +    if (m_thumb)&lt;br /&gt;
 +        m_thumb-&amp;gt;defaultEventHandler(event);&lt;br /&gt;
  }&lt;br /&gt;
  &lt;br /&gt;
  bool RenderSlider::inDragMode() const&lt;br /&gt;
&lt;br /&gt;
=== Old3DS v10.6 ===&lt;br /&gt;
[[browserhax|spider28hax]] was fixed. The &amp;quot;2^32 characters long string&amp;quot; vuln described [[3DS_Userland_Flaws|here]] was &#039;&#039;finally&#039;&#039; fixed.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;A lot&#039;&#039; of WebKit issues/vulns were fixed, see [https://gist.github.com/yellows8/b1e10caa1d8bb8a46316 here] for the changes.&lt;br /&gt;
&lt;br /&gt;
libpng was updated from version 1.4.12 to 1.4.19. zlib was updated from 1.2.7 to 1.2.8.&lt;br /&gt;
&lt;br /&gt;
The .text size increased by 0x478-bytes.&lt;br /&gt;
&lt;br /&gt;
The only changes in RomFS was that the following files were updated:&lt;br /&gt;
 /cro/oss.cro&lt;br /&gt;
 /cro/static.crs&lt;br /&gt;
 /cro/webkit.cro&lt;br /&gt;
 /.crr/static.crr&lt;br /&gt;
 /manual/Manual.bcma&lt;br /&gt;
&lt;br /&gt;
=== Old3DS v10.7 ===&lt;br /&gt;
&#039;&#039;Nothing&#039;&#039; changed except some words for version-values in .text being updated(RomFS wasn&#039;t changed), code for browser-version-check was [[#v10.7_2|updated]].&lt;br /&gt;
&lt;br /&gt;
=== Old3DS v11.1 ===&lt;br /&gt;
Nothing changed in the ExeFS codebin besides the usual version values. The following files in RomFS were updated:&lt;br /&gt;
  /cro/oss.cro&lt;br /&gt;
  /cro/webkit.cro&lt;br /&gt;
  /.crr/static.crr&lt;br /&gt;
&lt;br /&gt;
== Forced system-update ==&lt;br /&gt;
The Old3DS/New3DS Internet Browser updated with [[9.9.0-26]] added the following message strings:&lt;br /&gt;
 In order to use the Internet &lt;br /&gt;
 browser, a system update &lt;br /&gt;
 is required.&lt;br /&gt;
 To perform a system update, &lt;br /&gt;
 select System Update from Other&lt;br /&gt;
 Settings in System Settings.&lt;br /&gt;
&lt;br /&gt;
 The Internet browser cannot be&lt;br /&gt;
 used at this time.&lt;br /&gt;
 Please check your network&lt;br /&gt;
 environment or try again later.&lt;br /&gt;
&lt;br /&gt;
For whatever reason, the above &#039;&#039;message strings&#039;&#039; were removed with New3DS-browser v10.2, then re-added with v10.4. This does not apply to the Old3DS browser. Whenever v10.2 New3DS browser tries to use these message-strings for displaying a browser-update-related message, it will crash due to an assert failing since the message-strings are missing. Hence, if/when the v10.2 update-check page is ever updated where the browser tries to display a message for it, or when accessing that page fails, the browser will automatically crash.&lt;br /&gt;
&lt;br /&gt;
This wasn&#039;t enforced(web-browser displaying the above message when the installed browser isn&#039;t the latest version) until October 26, 2015.&lt;br /&gt;
&lt;br /&gt;
This message only triggers when attempting to load a web-page. This is only handled the first time the browser accesses a web-page, during this browser session.&lt;br /&gt;
&lt;br /&gt;
The browser codebins starting with v9.9 now contain the following URL strings:&lt;br /&gt;
* Old3DS: &amp;lt;nowiki&amp;gt;&amp;quot;https://cbvc.cdn.nintendo.net/CTR/1/&amp;lt;region&amp;gt;&amp;quot;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
* New3DS: &amp;lt;nowiki&amp;gt;&amp;quot;https://cbvc.cdn.nintendo.net/SNAKE/1/&amp;lt;region&amp;gt;&amp;quot;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;region&amp;gt; string is one of the following:&lt;br /&gt;
* &amp;quot;JPN&amp;quot;&lt;br /&gt;
* &amp;quot;USA&amp;quot;&lt;br /&gt;
* &amp;quot;EUR&amp;quot;&lt;br /&gt;
* &amp;quot;KOR&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Starting with the browser from [[10.2.0-28]], the &amp;quot;1&amp;quot; in the above URLs were changed to &amp;quot;2&amp;quot;. With the New3DS browser from [[10.4.0-29]], it&#039;s now &amp;quot;3&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
As of October 26, 2015, the &amp;quot;1&amp;quot; URLs return the browser-version for v9.9(decimal number as a string without any &amp;quot;.&amp;quot;), while the &amp;quot;2&amp;quot; URLs returns 0.&lt;br /&gt;
&lt;br /&gt;
 if(internal_browserver &amp;gt; server_browserver)&lt;br /&gt;
 {&lt;br /&gt;
     &amp;lt;safe&amp;gt;&lt;br /&gt;
 }&lt;br /&gt;
 else&lt;br /&gt;
 {&lt;br /&gt;
     &amp;lt;update message&amp;gt;&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
Hence, internal_browserver == server_browserver will trigger the sysupdate message, which appears to be the normal way to indicate that the current browser is outdated(see above).&lt;br /&gt;
&lt;br /&gt;
There is a cache for this in savedata. The request is only done when at least 24-hours have passed since the last time the request was done(see the below savedata section).&lt;br /&gt;
&lt;br /&gt;
It is still possible to guard against this update by blocking the previous URLs using a proxy. &lt;br /&gt;
It is not possible to remove the update message by entering the [[Recovery Mode]].&lt;br /&gt;
&lt;br /&gt;
=== Page request ===&lt;br /&gt;
For this request, all root-CAs bundled with the browser are trusted, in addition to two of the SSL module builtin Nintendo root-CAs.&lt;br /&gt;
&lt;br /&gt;
The browser(with New3DS at least) does the following with [[HTTP_Services|HTTPC]] for requesting the above page:&lt;br /&gt;
* Initializes the HTTP context and uses [[HTTPC:InitializeConnectionSession]] + [[HTTPC:SetProxyDefault]].&lt;br /&gt;
* Uses [[HTTP_Services|HTTPC]] command 0x250080 twice with cmd[1]=contexthandle: first time cmd[2]=0x3, second time cmd[2]=0x6.&lt;br /&gt;
* Then [[HTTPC:AddTrustedRootCA]] is used 48 times to setup 48 trusted root CAs. This appears to be every cert in the browser &amp;quot;romfs:/browser/rootca.pem&amp;quot; file converted to DER, in the same order from there(in other words, every single root CA the browser trusts by default for normal web-browsing).&lt;br /&gt;
* Then [[HTTPC:BeginRequest]] is used.&lt;br /&gt;
* Then [[HTTPC:ReceiveDataTimeout]] is used, the recv-size seems to be fixed to 0x20.&lt;br /&gt;
* Then [[HTTPC:GetResponseStatusCodeTimeout]] is used.&lt;br /&gt;
* Then [[HTTPC:GetDownloadSizeState]] is used.&lt;br /&gt;
* Then the HTTP context is closed.&lt;br /&gt;
&lt;br /&gt;
Raw request data(New3DS USA v10.2 browser):&lt;br /&gt;
 000000: 47 45 54 20 2f 53 4e 41 4b 45 2f 32 2f 55 53 41  GET /SNAKE/2/USA&lt;br /&gt;
 000010: 20 48 54 54 50 2f 31 2e 31 0d 0a 48 6f 73 74 3a   HTTP/1.1..Host:&lt;br /&gt;
 000020: 20 63 62 76 63 2e 63 64 6e 2e 6e 69 6e 74 65 6e   cbvc.cdn.ninten&lt;br /&gt;
 000030: 64 6f 2e 6e 65 74 0d 0a 0d 0a                    do.net....&lt;br /&gt;
&lt;br /&gt;
=== v10.7 ===&lt;br /&gt;
The only actual code change with Old3DS/New3DS browser v10.7 was that the code which calculates the diff_timestamp was moved to immediately after the block which initializes &amp;lt;state_timestamp&amp;gt; when &amp;lt;state_timestamp&amp;gt; is all-zero. This fixed the browser-version-check [[3DS_Userland_Flaws|bypass]].&lt;br /&gt;
&lt;br /&gt;
== v9.9+/v10.7+ dummy web-browser ==&lt;br /&gt;
Gamecards v9.9 and above include, with their sysupdate, a dummy Old3DS/New3DS web-browser. The *only* thing this title does is display the same message listed in the above forced-update section. The message files in RomFS *only* contain that message string above. There are no &amp;quot;http&amp;quot; strings in the main codebin, and [[RO_Services|RO]] isn&#039;t used either(no CRO data in RomFS at all). Both browsers are internally called &amp;quot;dummySpider&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Hence, if you update your system below v9.8 with any v9.9 or above gamecard, the system web-browser will be rendered *completely* useless until you install a system-update from CDN(no network requests involved here).&lt;br /&gt;
&lt;br /&gt;
Gamecards v10.7 and above include an updated dummy web-browser, where the only difference is the title version.&lt;br /&gt;
&lt;br /&gt;
== Savedata ==&lt;br /&gt;
=== New3DS ===&lt;br /&gt;
On newer SKATER versions, it appears *all* NAND savedata is stored under the [[System_SaveData|0x000200BB]] savedata.&lt;br /&gt;
&lt;br /&gt;
==== 0x000200BB savedata ====&lt;br /&gt;
This only contains &amp;quot;t.bin&amp;quot; with filesize 0xadf80, the format is below.&lt;br /&gt;
&lt;br /&gt;
The timestamp format used here is the number of milliseconds since January 1, 2000(local-time).&lt;br /&gt;
&lt;br /&gt;
When using the &amp;quot;Initialize savedata&amp;quot; option in the browser, that deletes this savedata file/image then exits the browser. This file is then re-created when the browser gets started again.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Offset&lt;br /&gt;
! Size&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| 0x68&lt;br /&gt;
| 0x4?&lt;br /&gt;
| This counter is incremented each time the savedata is written.&lt;br /&gt;
|-&lt;br /&gt;
| 0x70&lt;br /&gt;
| 0x8&lt;br /&gt;
| Timestamp for when the savedata was last written.&lt;br /&gt;
|-&lt;br /&gt;
| 0x94&lt;br /&gt;
| 0x15?&lt;br /&gt;
| This is all-zeros on non-JPN systems. On JPN systems where the browser filter is disabled, this is a string in the following format: &amp;quot;4110-%016llX&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
| 0xD8&lt;br /&gt;
| 0x8&lt;br /&gt;
| s64 timestamp, can be either a normal positive timestamp or a relative negative one. Used with the forced-update described above. When an update is detected this timestamp is negative, otherwise this is a normal positive timestamp(it&#039;s unknown how exactly this timestamp is checked). When positive, this seems to be the last time the forced-update HTTPS request was done where no update was needed.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==APT Parameters==&lt;br /&gt;
The URL to load can optionally be loaded from char[] string [[APT:SendParameter|paramblk+0]]. This is used when scanning URL QR-codes in Home Menu / etc.&lt;br /&gt;
&lt;br /&gt;
==Errors==&lt;br /&gt;
&amp;quot;Failed to load part of this page&amp;quot;: This can be caused by failing to load &amp;quot;/favicon.ico&amp;quot;. For example, this can be caused by loading a plain HTTP page, with plain-http favicon redirecting to HTTPS. If cert-verify then fails with favicon in this case, this error would then trigger.&lt;br /&gt;
&lt;br /&gt;
==Other details==&lt;br /&gt;
&lt;br /&gt;
*It scored 90/100 on [http://acid3.acidtests.org/ Acid3] test&lt;br /&gt;
*Images from the Internet can be saved to the [[SD Filesystem|SD Card]] and viewed using the [[Nintendo 3DS Camera]] application.&lt;br /&gt;
*Images saved to an [[SD Filesystem|SD Card]] or to the Nintendo 3DS system memory can be uploaded to blogs or other sites that allow the uploading of photos using :&lt;br /&gt;
 &amp;lt;input type=&amp;quot;file&amp;quot; /&amp;gt;&lt;br /&gt;
* HTML5Test.com say that Drag and drop is supported but it&#039;s not (code on WebKit is ready, but it&#039;s not implemented on interface of browser)&lt;br /&gt;
&lt;br /&gt;
==Tips==&lt;br /&gt;
&lt;br /&gt;
=== Detect User Agent ===&lt;br /&gt;
&lt;br /&gt;
To detect if the user agent is Nintendo 3DS Browser :&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;script type=&amp;quot;text/javascript&amp;quot;&amp;gt;&lt;br /&gt;
     if (navigator.userAgent.indexOf(&#039;Nintendo 3DS&#039;) == -1) { //If the UserAgent is not &amp;quot;Nintendo 3DS&amp;quot;&lt;br /&gt;
         location.replace(&#039;http://www.3dbrew.org&#039;); //Redirect to an other page&lt;br /&gt;
     }&lt;br /&gt;
 &amp;lt;/script&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* You can check &amp;lt;em&amp;gt;navigator.platform==&amp;quot;Nintendo 3DS&amp;quot;&amp;lt;/em&amp;gt; as well.&lt;br /&gt;
&lt;br /&gt;
=== Scrolling ===&lt;br /&gt;
&lt;br /&gt;
Scrolling can be altered by modifying &amp;lt;em&amp;gt;document.body.scrollTop&amp;lt;/em&amp;gt; and &amp;lt;em&amp;gt;document.body.scrollLeft&amp;lt;/em&amp;gt;.  However, there are drawbacks related to working with these properties:&lt;br /&gt;
&lt;br /&gt;
* Both properties return 0 when accessed&lt;br /&gt;
* Setting one property resets the other property&#039;s scroll position&lt;br /&gt;
&lt;br /&gt;
In order to set both at the same time (without either resetting to 0), use &amp;lt;em&amp;gt;window.scrollTo&amp;lt;/em&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Events ===&lt;br /&gt;
==== Key Events ====&lt;br /&gt;
The following buttons trigger the &amp;lt;em&amp;gt;onkeydown&amp;lt;/em&amp;gt;, &amp;lt;em&amp;gt;onkeypress&amp;lt;/em&amp;gt; and &amp;lt;em&amp;gt;onkeyup&amp;lt;/em&amp;gt; events:&lt;br /&gt;
&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot; width=&amp;quot;20%&amp;quot;&lt;br /&gt;
! Code !! Button &lt;br /&gt;
|-&lt;br /&gt;
| 13 || A&lt;br /&gt;
|-&lt;br /&gt;
| 37 || Left&lt;br /&gt;
|-&lt;br /&gt;
| 38 || Up&lt;br /&gt;
|-&lt;br /&gt;
| 39 || Right&lt;br /&gt;
|-&lt;br /&gt;
| 40 || Down&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The events cannot have their default action cancelled.  Other buttons do not trigger key events.&lt;br /&gt;
&lt;br /&gt;
==== Touch/Mouse Events ====&lt;br /&gt;
&amp;lt;em&amp;gt;onmousedown&amp;lt;/em&amp;gt;, &amp;lt;em&amp;gt;onmouseup&amp;lt;/em&amp;gt; &amp;amp; &amp;lt;em&amp;gt;onclick&amp;lt;/em&amp;gt; are all triggered by the browser.  However, the &amp;lt;em&amp;gt;onmousedown&amp;lt;/em&amp;gt; event doesn&#039;t trigger until you lift the stylus or you&#039;ve held it on the screen for ~2 seconds—which is when text selection mode is activated—making it pretty much the same as &amp;lt;em&amp;gt;onmouseup&amp;lt;/em&amp;gt;.  The events cannot have their default action cancelled.&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;em&amp;gt;onmousemove&amp;lt;/em&amp;gt; and common touch/gesture events are not supported.&lt;br /&gt;
&lt;br /&gt;
== Screen Resolution ==&lt;br /&gt;
&lt;br /&gt;
The up screen resolution is 400×240. However, the viewable area in the browser is only &amp;lt;b&amp;gt;400×220&amp;lt;/b&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The touch screen resolution is 320×240. However, the viewable area in the browser is only &amp;lt;b&amp;gt;320×212&amp;lt;/b&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
You can have a page span both screens. However, the browser will behave as if the bottom screen is the only active screen and the top screen is scrolled off. This is important when computing CSS coordinates. Items positioned from &amp;quot;bottom&amp;quot; will be positioned based on 220px and not the full 432px of both screens.&lt;br /&gt;
&lt;br /&gt;
== Using Both Screens ==&lt;br /&gt;
&lt;br /&gt;
Generally the easiest way to accomplish the correct layout is to create HTML elements that &amp;quot;contain&amp;quot; the top and bottom screens. Here&#039;s an example:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;!DOCTYPE html&amp;gt;&lt;br /&gt;
 &amp;lt;html&amp;gt;&lt;br /&gt;
   &amp;lt;head&amp;gt;&lt;br /&gt;
     &amp;lt;meta name=&amp;quot;viewport&amp;quot; content=&amp;quot;width=400&amp;quot;&amp;gt;&lt;br /&gt;
     &amp;lt;style&amp;gt;&lt;br /&gt;
       body{margin:0px;}&lt;br /&gt;
       #topscreen{width:400px;height:220px;overflow:hidden;}&lt;br /&gt;
       #bottomscreen{width:320px;height:212px;overflow:hidden;margin:0 auto;}&lt;br /&gt;
     &amp;lt;/style&amp;gt;&lt;br /&gt;
   &amp;lt;/head&amp;gt;&lt;br /&gt;
   &amp;lt;body&amp;gt;&lt;br /&gt;
     &amp;amp;lt;div id=&amp;quot;topscreen&amp;quot;&amp;gt;Top Screen&amp;amp;lt;/div&amp;gt;&lt;br /&gt;
     &amp;amp;lt;div id=&amp;quot;bottomscreen&amp;quot;&amp;gt;Bottom Screen&amp;amp;lt;/div&amp;gt;&lt;br /&gt;
   &amp;lt;/body&amp;gt;&lt;br /&gt;
 &amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This scheme allows the page to be easily manipulated through JavaScript.  In order to have the window snap to the correct position, use the following JavaScript code:&lt;br /&gt;
&lt;br /&gt;
 window.setInterval(function () {&lt;br /&gt;
     window.scrollTo(40, 220);  &lt;br /&gt;
 }, 50);&lt;br /&gt;
&lt;br /&gt;
This automatically resets the position if the user accidentally scrolls the page.&lt;br /&gt;
&lt;br /&gt;
==Example Sites==&lt;br /&gt;
&amp;lt;!-- If you have a website that demonstrates these techniques, place it here! --&amp;gt;&lt;br /&gt;
* [http://www.nintendo.com/3ds/internetbrowser/bookmarks Nintendo 3DS Bookmarks] - This is the first bookmark pre-installed in the browser.&lt;br /&gt;
* [http://3ds.andysmith.co.uk/jFox.html jFox] (Short URL: http://bit.ly/iB7FqW)&lt;br /&gt;
* [http://ditto3d.com/3ds Ditto3D] (Short URL: http://bit.ly/oVreWA)&lt;/div&gt;</summary>
		<author><name>Yellows8</name></author>
	</entry>
	<entry>
		<id>https://www.3dbrew.org/w/index.php?title=11.4.0-37&amp;diff=19844</id>
		<title>11.4.0-37</title>
		<link rel="alternate" type="text/html" href="https://www.3dbrew.org/w/index.php?title=11.4.0-37&amp;diff=19844"/>
		<updated>2017-04-11T11:30:45Z</updated>

		<summary type="html">&lt;p&gt;Yellows8: /* System Titles */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The Old3DS+New3DS 11.4.0-37 system update was released on April 10, 2017. This Old3DS update was released for the following regions: USA, EUR, JPN, CHN, KOR, and TWN. This New3DS update was released for the following regions: USA, EUR, JPN, CHN, KOR, and TWN.&lt;br /&gt;
&lt;br /&gt;
Security flaws fixed: yes.&lt;br /&gt;
&lt;br /&gt;
==Change-log==&lt;br /&gt;
[http://en-americas-support.nintendo.com/app/answers/detail/a_id/667/p/430/c/267 Official] USA change-log:&lt;br /&gt;
* Further improvements to overall system stability and other minor adjustments have been made to enhance the user experience&lt;br /&gt;
&lt;br /&gt;
==System Titles==&lt;br /&gt;
===NATIVE_FIRM===&lt;br /&gt;
====Process9====&lt;br /&gt;
The global boolean preventing [[FIRM|SAFE_FIRM]] from being launched is now set in Process9&#039;s crt0 if [[CONFIG9_Registers#CFG9_BOOTENV|CFG9_BOOTENV]] has bit0 set, that is to say, if it has been launched from a firmlaunch (this register is set to 1 just before a firmlaunch). The following code has also been added in the firmlaunch function itself: &amp;lt;code&amp;gt;if(!(CFG9_BOOTENV &amp;amp; 1) /* not a firmlaunch */ || (CFG9_BOOTENV &amp;amp; 6) /* firmlaunched from LGY_FIRM (if even possible at all) */) goto panic&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
This is to fix [[3DS_System_Flaws#Process9|safehax]].&lt;br /&gt;
&lt;br /&gt;
====New3DS kernel9loader====&lt;br /&gt;
New3DS kernel9loader wasn&#039;t updated.&lt;br /&gt;
&lt;br /&gt;
====ARM11 kernel====&lt;br /&gt;
There are at least, and likely, three changes:&lt;br /&gt;
&lt;br /&gt;
* [[CONFIG11_Registers#CFG11_WIFIUNK|CFG11_WIFIUNK]] is now set to 0x10 in Kernel11&#039;s crt0&lt;br /&gt;
* A new SVC, [[SVC|svc 0x5A]] has been introduced, to enable or disable wifi&lt;br /&gt;
* The code handling [[SVC|svcArbitrateAddress]] with type = SIGNAL, has been changed. It now counts the actual number of threads arbitrating on that address, and if it is non-zero, it executes the following hack: &amp;lt;code&amp;gt;if(coreId == 0 &amp;amp;&amp;amp; currentThread-&amp;gt;dynamicPriority &amp;gt;= 50) waitCycles(0x64E)&amp;lt;/code&amp;gt;. This supposedly works around the lag issue in some games, which has been introduced on [[11.3.0-36]]&lt;br /&gt;
&lt;br /&gt;
===Modules===&lt;br /&gt;
No FIRM ARM11 sysmodule was changed.&lt;br /&gt;
&lt;br /&gt;
===[[NWM_Services|NWM-sysmodule]]===&lt;br /&gt;
The [[CONFIG11_Registers]] are no longer directly mapped under userland for NWM-sysmodule.&lt;br /&gt;
This prevents anything under NWM-module from modifying the GPUPROT register.&lt;br /&gt;
&lt;br /&gt;
The codebin was updated.&lt;br /&gt;
&lt;br /&gt;
The crt0-poke in PDN that NWM previously did:&lt;br /&gt;
  0x1EC4010C |= 0x10&lt;br /&gt;
&lt;br /&gt;
.. has been removed from NWM. This one has been moved into kernel bootup.&lt;br /&gt;
&lt;br /&gt;
Accesses to 0x1EC40180 have been replaced by a new syscall, [[SVC|0x5A]].&lt;br /&gt;
&lt;br /&gt;
A new string was added at 0x13E200: &amp;quot;used&amp;quot;(with 3 0xFF bytes afterwards). The wifi-fw was moved from .data to .rodata.&lt;br /&gt;
&lt;br /&gt;
===[[Internet Browser]]===&lt;br /&gt;
The web-browser was updated, only for New3DS. See [[Internet Browser|here]] for details.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
System update report(s):&lt;br /&gt;
* [https://yls8.mtheall.com/ninupdates/reports.php?date=04-10-17_08-00-38&amp;amp;sys=ctr]&lt;br /&gt;
* [https://yls8.mtheall.com/ninupdates/reports.php?date=04-10-17_08-00-47&amp;amp;sys=ktr]&lt;/div&gt;</summary>
		<author><name>Yellows8</name></author>
	</entry>
	<entry>
		<id>https://www.3dbrew.org/w/index.php?title=Homebrew_Exploits&amp;diff=19843</id>
		<title>Homebrew Exploits</title>
		<link rel="alternate" type="text/html" href="https://www.3dbrew.org/w/index.php?title=Homebrew_Exploits&amp;diff=19843"/>
		<updated>2017-04-11T11:14:36Z</updated>

		<summary type="html">&lt;p&gt;Yellows8: /* Standalone Homebrew Launcher Exploits */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Payload==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Works on latest fw&lt;br /&gt;
!  Name&lt;br /&gt;
!  Description&lt;br /&gt;
!  Supported firmwares&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: lightgreen&amp;quot; | Yes&lt;br /&gt;
| [https://smealum.github.io/3ds/ *hax payload]&lt;br /&gt;
| Booted by all of the below non-sysmodule exploits.&lt;br /&gt;
| From &#039;&#039;&#039;9.0.0-7&#039;&#039;&#039; up to and including &#039;&#039;&#039;11.3.0-36&#039;&#039;&#039;.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
For the rest of this page, &amp;quot;Supported firmwares&amp;quot; refers to the exploit &#039;&#039;itself&#039;&#039;, not whether *hax payload supports it.&lt;br /&gt;
&lt;br /&gt;
==Standalone Homebrew Launcher Exploits==&lt;br /&gt;
The following homebrew exploits can be executed on a previously un-exploited system. &#039;&#039;Please&#039;&#039; see the above Payload section regarding what &amp;quot;Supported firmwares&amp;quot; indicates &#039;&#039;exactly&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Works on latest fw&lt;br /&gt;
!  Name&lt;br /&gt;
!  Supported firmwares&lt;br /&gt;
!  Requirements&lt;br /&gt;
!  Author&lt;br /&gt;
!  Install&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: salmon&amp;quot; | No&lt;br /&gt;
| [[ninjhax|Ninjhax 1.1b]]&lt;br /&gt;
| From &#039;&#039;&#039;4.0.0-7&#039;&#039;&#039; up to and including &#039;&#039;&#039;9.2.0-20&#039;&#039;&#039;.&lt;br /&gt;
| A cartridge or eShop version (JPN-only) of &amp;quot;Cubic Ninja&amp;quot;.&lt;br /&gt;
| smea&lt;br /&gt;
| [http://smealum.net/ninjhax/ Install]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: lightgreen&amp;quot; | Yes&lt;br /&gt;
| [[ninjhax|Ninjhax 2.x]]&lt;br /&gt;
| From &#039;&#039;&#039;9.0.0-7&#039;&#039;&#039; up to and including &#039;&#039;&#039;11.3.0-36&#039;&#039;&#039;.&lt;br /&gt;
|  A cartridge or eShop version (JPN-only, not available anymore for purchase) of &amp;quot;Cubic Ninja&amp;quot;.&lt;br /&gt;
| smea&lt;br /&gt;
| [https://smealum.github.io/ninjhax2/ Install]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: lightgreen&amp;quot; | Yes&lt;br /&gt;
| [http://plutooo.github.io/freakyhax/ freakyhax]&lt;br /&gt;
| From &#039;&#039;&#039;9.0.0-7&#039;&#039;&#039; up to and including &#039;&#039;&#039;11.3.0-36&#039;&#039;&#039;.&lt;br /&gt;
|  A cartridge or eShop version (USA/EUR/JAP, not available anymore for purchase) of &amp;quot;Freakyform Deluxe&amp;quot;.&lt;br /&gt;
| plutoo&lt;br /&gt;
| [http://plutooo.github.io/freakyhax/ Install]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: salmon&amp;quot; | No&lt;br /&gt;
| [http://plutooo.github.io/smilehax/ smilehax]&lt;br /&gt;
| From &#039;&#039;&#039;9.0.0-7&#039;&#039;&#039; up to and including &#039;&#039;&#039;11.0.0-33&#039;&#039;&#039;&lt;br /&gt;
| SmileBASIC (JPN all versions up to 3.32 excluded, USA 3.31 only)&lt;br /&gt;
| plutoo&lt;br /&gt;
| [http://plutooo.github.io/smilehax/ Install]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: salmon&amp;quot; | No&lt;br /&gt;
| [http://mrnbayoh.github.io/basicsploit/ BASICSploit]&lt;br /&gt;
| From &#039;&#039;&#039;9.0.0-7&#039;&#039;&#039; up to and including &#039;&#039;&#039;11.0.0-33&#039;&#039;&#039;&lt;br /&gt;
| SmileBASIC (USA all versions)&lt;br /&gt;
| MrNbaYoh&lt;br /&gt;
| [http://mrnbayoh.github.io/basicsploit/ Install]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: lightgreen&amp;quot; | Yes&lt;br /&gt;
| [[smashbroshax|smashbroshax]] (beaconhax)&lt;br /&gt;
| (New 3DS only) From &#039;&#039;&#039;9.0.0-X&#039;&#039;&#039; up to and including &#039;&#039;&#039;11.3.0-36&#039;&#039;&#039;.&lt;br /&gt;
| Super Smash Bros 3DS (full-game) and a way to broadcast raw wifi beacons. The demo (prior to the updated November 2015 [https://github.com/yellows8/3ds_smashbroshax version]) isn&#039;t usable with the *hax payloads. Game-version v1.1.3 fixed the vuln used with this, see the repo for a workaround for that.&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
| [https://github.com/yellows8/3ds_smashbroshax Install]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: salmon&amp;quot; | No&lt;br /&gt;
| [[browserhax]]&lt;br /&gt;
| From &#039;&#039;&#039;9.0.0-2&#039;&#039;&#039; to &#039;&#039;&#039;11.0.0-33&#039;&#039;&#039;&lt;br /&gt;
Note that the browser-version-check bypass is only usable prior to [[10.7.0-32]].&lt;br /&gt;
| A USA, EUR, JPN, or KOR system.&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
| [http://yls8.mtheall.com/3dsbrowserhax.php Install]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: salmon&amp;quot; | No&lt;br /&gt;
| [https://github.com/svanheulen/genhax genhax]&lt;br /&gt;
| (New 3DS only) From &#039;&#039;&#039;9.9.0-X&#039;&#039;&#039; up to and including &#039;&#039;&#039;11.2.0-X&#039;&#039;&#039;.&lt;br /&gt;
| A gamecard or eShop-install of Monster Hunter X (JPN only), and the DLC encryption key (see installer instructions). &#039;&#039;&#039;Note: the secondary exploit still works, see bellow&#039;&#039;&#039;&lt;br /&gt;
| svanheulen&lt;br /&gt;
| [https://github.com/svanheulen/genhax_installer Install]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: salmon&amp;quot; | No&lt;br /&gt;
| [https://github.com/nedwill/soundhax soundhax]&lt;br /&gt;
| From &#039;&#039;&#039;9.0.0-13&#039;&#039;&#039; up to and including &#039;&#039;&#039;11.3.0-36&#039;&#039;&#039;.&lt;br /&gt;
| A USA, EUR, JPN or KOR system.&lt;br /&gt;
| nedwill&lt;br /&gt;
| [http://soundhax.com Install]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: lightgreen&amp;quot; | Yes&lt;br /&gt;
| [https://github.com/MrNbaYoh/doodlebomb doodlebomb]&lt;br /&gt;
| From &#039;&#039;&#039;9.0.0-X&#039;&#039;&#039;(?) up to and including &#039;&#039;&#039;11.4.0-X&#039;&#039;&#039;.&lt;br /&gt;
| An eShop-install of Swapdoodle. A friend from the system friends-list to receive the exploit from online, see &amp;quot;Without the Homebrew Launcher&amp;quot; instructions.&lt;br /&gt;
| MrNbaYoh&lt;br /&gt;
| [https://mrnbayoh.github.io/doodlebomb/ Install]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Note that ninjhax 1.x is still not obsolete. Even though ninjhax 2.x can be run on 9.3+, this was made possible (amongst other things) by sacrificing the memory remapping exploit used in ninjhax 1.x (rohax). Therefore, things like JIT engines for emulators can only be supported on ninjhax 1.x. Furthermore, ninjhax 2.x does not run on system versions below 9.0.0-X, while ninjhax 1.x does.&lt;br /&gt;
&lt;br /&gt;
==Secondary Exploits==&lt;br /&gt;
Installation of these exploits requires a previously exploited system to install. After installation, they can be used on their own. &#039;&#039;Please&#039;&#039; see the above Payload section regarding what &amp;quot;Supported firmwares&amp;quot; indicates &#039;&#039;exactly&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
!  Works on latest fw&lt;br /&gt;
!  Name&lt;br /&gt;
!  Supported firmwares&lt;br /&gt;
!  Requirements&lt;br /&gt;
!  Author&lt;br /&gt;
!  Install&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: salmon&amp;quot; | No&lt;br /&gt;
| [[ironhax]]&lt;br /&gt;
| From &#039;&#039;&#039;9.5.0-X&#039;&#039;&#039; up to and including &#039;&#039;&#039;10.3.0-X&#039;&#039;&#039;, for &#039;&#039;&#039;X&#039;&#039;&#039; up to and including 28.&lt;br /&gt;
| A copy of &amp;quot;Ironfall: Invasion&amp;quot; downloaded from eShop before August 11th, 2015. Note the updated version that was released on October 13th, 2015 is not supported.&lt;br /&gt;
| smea&lt;br /&gt;
| [http://smealum.github.io/3ds/ Install]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: lightgreen&amp;quot; | Yes&lt;br /&gt;
| [http://vegaroxas.github.io/ steelhax]&lt;br /&gt;
| From &#039;&#039;&#039;9.0.0-X&#039;&#039;&#039; up to and including &#039;&#039;&#039;11.3.0-X&#039;&#039;&#039;, for &#039;&#039;&#039;X&#039;&#039;&#039; up to and including 36.&lt;br /&gt;
| A copy of Steel Diver: Sub Wars&lt;br /&gt;
| Vegaroxas&lt;br /&gt;
| [https://github.com/VegaRoXas/vegaroxas.github.io/raw/master/files/steelhax-installer.zip Install]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: lightgreen&amp;quot; | Yes&lt;br /&gt;
| [https://github.com/yellows8/oot3dhax oot3dhax]&lt;br /&gt;
| From &#039;&#039;&#039;9.0.0-X&#039;&#039;&#039; up to and including &#039;&#039;&#039;11.3.0-X&#039;&#039;&#039;, for &#039;&#039;&#039;X&#039;&#039;&#039; up to and including 36.&lt;br /&gt;
| A gamecard or eShop-install of Legend of Zelda: Ocarina of Time 3D. Besides using the installer app, writing raw saveimages with a save dongle for example is another option. Before compression was introduced in the 2016-7-18 release, the size of the *hax payload meant the exploit can&#039;t coexist with regular saves on a physical version of the game.&lt;br /&gt;
| Yellows8 / smea et al.&lt;br /&gt;
| See [https://smealum.github.io/3ds/ here].&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: salmon&amp;quot; | No&lt;br /&gt;
| [[menuhax]]&lt;br /&gt;
| JPN/USA/EUR: From &#039;&#039;&#039;9.0.0-X&#039;&#039;&#039; up to and including &#039;&#039;&#039;11.2.0-X&#039;&#039;&#039;.&lt;br /&gt;
KOR: From &#039;&#039;&#039;9.6.0-X&#039;&#039;&#039; up to and including &#039;&#039;&#039;11.2.0-X&#039;&#039;&#039;.&lt;br /&gt;
| JPN/USA/EUR: Having created [[Home_Menu#Home_Menu_Theme_SD_ExtData|theme extdata]] through opening the official theme selector at least once.&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
| [https://github.com/yellows8/3ds_homemenuhax/releases Download]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: lightgreen&amp;quot; | Yes&lt;br /&gt;
| [https://github.com/shinyquagsire23/supermysterychunkhax supermysterychunkhax]&lt;br /&gt;
| From &#039;&#039;&#039;9.9.0-X&#039;&#039;&#039; (USA/JPN) / &#039;&#039;&#039;10.2.0-X&#039;&#039;&#039; (EUR) up to and including &#039;&#039;&#039;11.1.0-X&#039;&#039;&#039;, for &#039;&#039;&#039;X&#039;&#039;&#039; up to and including 34.&lt;br /&gt;
| A gamecard or eShop-install of Pokémon Super Mystery Dungeon.&lt;br /&gt;
| Shiny Quagsire / SALT team&lt;br /&gt;
| [https://smd.salthax.org/ Install].&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: salmon&amp;quot; | No&lt;br /&gt;
| [https://github.com/shinyquagsire23/v_hax (v*)hax]&lt;br /&gt;
| From &#039;&#039;&#039;9.0.0-X&#039;&#039;&#039; up to and including &#039;&#039;&#039;11.0.0-X&#039;&#039;&#039;, for &#039;&#039;&#039;X&#039;&#039;&#039; up to and including 33.&lt;br /&gt;
Note that &#039;&#039;&#039;9.0.0-X&#039;&#039;&#039; is only required for the Homebrew Launcher - the game itself only requires &#039;&#039;&#039;2.1.0-X&#039;&#039;&#039; for primitive userland code execution.&lt;br /&gt;
| A copy of VVVVVV downloaded after March 2012 (v1). v1.1 patches out the overflow vulnerability used by (v*)hax.&lt;br /&gt;
| Shiny Quagsire / SALT team&lt;br /&gt;
| [https://vvvvvv.salthax.org/ Install].&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: lightgreen&amp;quot; | Yes&lt;br /&gt;
| [https://github.com/Dazzozo/humblehax humblehax]&lt;br /&gt;
| From &#039;&#039;&#039;9.0.0-X&#039;&#039;&#039; (USA/EUR) up to and including &#039;&#039;&#039;11.2.0-X&#039;&#039;&#039;, for &#039;&#039;&#039;X&#039;&#039;&#039; up to and including 35.&lt;br /&gt;
| An eShop-install of Citizens of Earth (either v1 or v2), featured in the Humble &amp;quot;Friends of Nintendo&amp;quot; Bundle.&lt;br /&gt;
| Dazzozo / SALT team&lt;br /&gt;
| [https://citizens.salthax.org/ Install].&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: salmon&amp;quot; | No&lt;br /&gt;
| [http://mrnbayoh.github.io/basehaxx/ basehaxx]&lt;br /&gt;
| From &#039;&#039;&#039;9.0.0-X&#039;&#039;&#039; up to and including &#039;&#039;&#039;11.1.0-X&#039;&#039;&#039;, for &#039;&#039;&#039;X&#039;&#039;&#039; up to and including 34.&lt;br /&gt;
| A gamecard or eShop-install of Pokémon Omega Ruby / Alpha Sapphire.&lt;br /&gt;
| MrNbaYoh&lt;br /&gt;
| [http://mrnbayoh.github.io/basehaxx/ install]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: lightgreen&amp;quot; | Yes&lt;br /&gt;
| [https://github.com/yellows8/stickerhax stickerhax]&lt;br /&gt;
| From &#039;&#039;&#039;9.0.0-X&#039;&#039;&#039; up to and including &#039;&#039;&#039;11.3.0-X&#039;&#039;&#039;.&lt;br /&gt;
| A gamecard or eShop-install of Paper Mario: Sticker Star.&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
| [https://github.com/yellows8/stickerhax Here]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: lightgreen&amp;quot; | Yes&lt;br /&gt;
| [https://github.com/svanheulen/genhax genhax]&lt;br /&gt;
| (New 3DS only) From &#039;&#039;&#039;9.9.0-X&#039;&#039;&#039;(JPN) or &#039;&#039;&#039;10.3.0-X&#039;&#039;&#039;(EUR/USA) up to and including &#039;&#039;&#039;11.3.0-X&#039;&#039;&#039;.&lt;br /&gt;
| A gamecard or eShop-install of Monster Hunter Generations or Monster Hunter X (without the game updates installed), and an internet connection during installation.&lt;br /&gt;
| svanheulen&lt;br /&gt;
| [https://github.com/svanheulen/genhax_installer Install]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: lightgreen&amp;quot; | Yes&lt;br /&gt;
| [https://github.com/MrNbaYoh/painthax painthax]&lt;br /&gt;
| From &#039;&#039;&#039;9.0.0-X&#039;&#039;&#039; up to and including &#039;&#039;&#039;11.3.0-X&#039;&#039;&#039;.&lt;br /&gt;
| An eShop-install of PixelPaint.&lt;br /&gt;
| MrNbaYoh&lt;br /&gt;
| [https://github.com/MrNbaYoh/painthax/releases/latest install]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: lightgreen&amp;quot; | Yes&lt;br /&gt;
| [https://github.com/yellows8/ctpkpwn ctpkpwn_tfh]&lt;br /&gt;
| From &#039;&#039;&#039;9.9.0-X&#039;&#039;&#039; up to and including &#039;&#039;&#039;11.2.0-X&#039;&#039;&#039;.&lt;br /&gt;
| A gamecard or eShop-install of &amp;quot;The Legend of Zelda: Tri Force Heroes&amp;quot;, and an Internet connection during installation. Unless you have &amp;quot;CFW&amp;quot;, ctr-httpwn &amp;gt;=v1.2 with the included bosshaxx on a compatible system-version is also required.&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
| [https://github.com/yellows8/ctpkpwn/releases Install]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: lightgreen&amp;quot; | Yes&lt;br /&gt;
| [https://github.com/MrNbaYoh/doodlebomb doodlebomb]&lt;br /&gt;
| From &#039;&#039;&#039;9.0.0-X&#039;&#039;&#039;(?) up to and including &#039;&#039;&#039;11.4.0-X&#039;&#039;&#039;.&lt;br /&gt;
| An eShop-install of Swapdoodle.&lt;br /&gt;
| MrNbaYoh&lt;br /&gt;
| [https://mrnbayoh.github.io/doodlebomb/ Install]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Exploits without Homebrew Launcher (Not recommended)==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;&#039;&#039;&#039;Warning:&#039;&#039;&#039;&amp;lt;/u&amp;gt; The following exploits can run code, but are missing a 3DSX launcher. They cannot launch any homebrew in the 3DSX format.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Works on latest fw&lt;br /&gt;
!  Name&lt;br /&gt;
!  Supported firmwares&lt;br /&gt;
!  Requirements&lt;br /&gt;
!  Author&lt;br /&gt;
!  Install&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: salmon&amp;quot; | No&lt;br /&gt;
| [[browserhax]] (Without the loader in the 3ds_browserhax_common repo)&lt;br /&gt;
| (Old3DS) From &#039;&#039;&#039;5.0.0-2&#039;&#039;&#039; to &#039;&#039;&#039;11.0.0-33&#039;&#039;&#039; (Pre-v5.0 is supported for some versions if you manually modify the source)&lt;br /&gt;
&lt;br /&gt;
(New3DS) From &#039;&#039;&#039;9.0.0-20&#039;&#039;&#039; to &#039;&#039;&#039;11.0.0-33&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Note that the browser-version-check bypass is only usable prior to [[10.7.0-32]].&lt;br /&gt;
| An USA, EUR, or JPN system.&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
| [[browserhax|Install]]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: salmon&amp;quot; | No&lt;br /&gt;
| Ninjhax (with specialized payloads)&lt;br /&gt;
| Up to &#039;&#039;&#039;9.2.0-20&#039;&#039;&#039;?&lt;br /&gt;
| &lt;br /&gt;
| smea + independent developers&lt;br /&gt;
| N/A&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Previous Exploits==&lt;br /&gt;
&amp;lt;u&amp;gt;&#039;&#039;&#039;Warning:&#039;&#039;&#039;&amp;lt;/u&amp;gt; These exploits &#039;&#039;&#039;do not work&#039;&#039;&#039;. They are exploits which no longer function at all, regardless of software or firmware revision.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
!  Works on latest fw&lt;br /&gt;
! Name&lt;br /&gt;
! Supported firmwares&lt;br /&gt;
! Requirements&lt;br /&gt;
! Author&lt;br /&gt;
! Install&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: salmon&amp;quot; | No&lt;br /&gt;
| [[tubehax|Tubehax]]&lt;br /&gt;
| None. &#039;&#039;&#039;Was&#039;&#039;&#039;: From &#039;&#039;&#039;9.0.0-X&#039;&#039;&#039; up to and including &#039;&#039;&#039;10.1.0-X&#039;&#039;&#039;, for &#039;&#039;&#039;X&#039;&#039;&#039; up to and including 27.&lt;br /&gt;
| The YouTube application and an Internet connection. As of October 15, 2015, this is no longer usable due to an update being released which fixes the vuln used by tubehax + app update being forced (see [[YouTube|here]]).&lt;br /&gt;
| smea&lt;br /&gt;
| [http://smealum.github.io/3ds/ Install]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Other Homebrew Loaders==&lt;br /&gt;
The [https://github.com/yellows8/hblauncher_loader hblauncher_loader] title can be used when running under modded-FIRM which allows running unsigned titles, to boot the *hax payloads.&lt;br /&gt;
&lt;br /&gt;
==Sysmodule Exploits==&lt;br /&gt;
This section is for system-module exploits, which can be run from the *hax payloads.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Works on latest fw&lt;br /&gt;
! Name&lt;br /&gt;
! Supported firmwares&lt;br /&gt;
! Requirements&lt;br /&gt;
! Author&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: lightgreen&amp;quot; | Yes, that&#039;s not the intended default use however.&lt;br /&gt;
| [https://github.com/yellows8/ctr-httpwn/releases ctr-httpwn]&lt;br /&gt;
| From &#039;&#039;&#039;9.6.0-X&#039;&#039;&#039; up to and including &#039;&#039;&#039;11.3.0-X&#039;&#039;&#039;. This includes bosshaxx.&lt;br /&gt;
| None&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==WebKit vuln testing==&lt;br /&gt;
See [https://github.com/yellows8/3ds_browserhax_common/issues/28 here].&lt;/div&gt;</summary>
		<author><name>Yellows8</name></author>
	</entry>
	<entry>
		<id>https://www.3dbrew.org/w/index.php?title=Homebrew_Exploits&amp;diff=19841</id>
		<title>Homebrew Exploits</title>
		<link rel="alternate" type="text/html" href="https://www.3dbrew.org/w/index.php?title=Homebrew_Exploits&amp;diff=19841"/>
		<updated>2017-04-11T10:49:29Z</updated>

		<summary type="html">&lt;p&gt;Yellows8: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Payload==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Works on latest fw&lt;br /&gt;
!  Name&lt;br /&gt;
!  Description&lt;br /&gt;
!  Supported firmwares&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: lightgreen&amp;quot; | Yes&lt;br /&gt;
| [https://smealum.github.io/3ds/ *hax payload]&lt;br /&gt;
| Booted by all of the below non-sysmodule exploits.&lt;br /&gt;
| From &#039;&#039;&#039;9.0.0-7&#039;&#039;&#039; up to and including &#039;&#039;&#039;11.3.0-36&#039;&#039;&#039;.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
For the rest of this page, &amp;quot;Supported firmwares&amp;quot; refers to the exploit &#039;&#039;itself&#039;&#039;, not whether *hax payload supports it.&lt;br /&gt;
&lt;br /&gt;
==Standalone Homebrew Launcher Exploits==&lt;br /&gt;
The following homebrew exploits can be executed on a previously un-exploited system. &#039;&#039;Please&#039;&#039; see the above Payload section regarding what &amp;quot;Supported firmwares&amp;quot; indicates &#039;&#039;exactly&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Works on latest fw&lt;br /&gt;
!  Name&lt;br /&gt;
!  Supported firmwares&lt;br /&gt;
!  Requirements&lt;br /&gt;
!  Author&lt;br /&gt;
!  Install&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: salmon&amp;quot; | No&lt;br /&gt;
| [[ninjhax|Ninjhax 1.1b]]&lt;br /&gt;
| From &#039;&#039;&#039;4.0.0-7&#039;&#039;&#039; up to and including &#039;&#039;&#039;9.2.0-20&#039;&#039;&#039;.&lt;br /&gt;
| A cartridge or eShop version (JPN-only) of &amp;quot;Cubic Ninja&amp;quot;.&lt;br /&gt;
| smea&lt;br /&gt;
| [http://smealum.net/ninjhax/ Install]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: lightgreen&amp;quot; | Yes&lt;br /&gt;
| [[ninjhax|Ninjhax 2.x]]&lt;br /&gt;
| From &#039;&#039;&#039;9.0.0-7&#039;&#039;&#039; up to and including &#039;&#039;&#039;11.3.0-36&#039;&#039;&#039;.&lt;br /&gt;
|  A cartridge or eShop version (JPN-only, not available anymore for purchase) of &amp;quot;Cubic Ninja&amp;quot;.&lt;br /&gt;
| smea&lt;br /&gt;
| [https://smealum.github.io/ninjhax2/ Install]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: lightgreen&amp;quot; | Yes&lt;br /&gt;
| [http://plutooo.github.io/freakyhax/ freakyhax]&lt;br /&gt;
| From &#039;&#039;&#039;9.0.0-7&#039;&#039;&#039; up to and including &#039;&#039;&#039;11.3.0-36&#039;&#039;&#039;.&lt;br /&gt;
|  A cartridge or eShop version (USA/EUR/JAP, not available anymore for purchase) of &amp;quot;Freakyform Deluxe&amp;quot;.&lt;br /&gt;
| plutoo&lt;br /&gt;
| [http://plutooo.github.io/freakyhax/ Install]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: salmon&amp;quot; | No&lt;br /&gt;
| [http://plutooo.github.io/smilehax/ smilehax]&lt;br /&gt;
| From &#039;&#039;&#039;9.0.0-7&#039;&#039;&#039; up to and including &#039;&#039;&#039;11.0.0-33&#039;&#039;&#039;&lt;br /&gt;
| SmileBASIC (JPN all versions up to 3.32 excluded, USA 3.31 only)&lt;br /&gt;
| plutoo&lt;br /&gt;
| [http://plutooo.github.io/smilehax/ Install]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: salmon&amp;quot; | No&lt;br /&gt;
| [http://mrnbayoh.github.io/basicsploit/ BASICSploit]&lt;br /&gt;
| From &#039;&#039;&#039;9.0.0-7&#039;&#039;&#039; up to and including &#039;&#039;&#039;11.0.0-33&#039;&#039;&#039;&lt;br /&gt;
| SmileBASIC (USA all versions)&lt;br /&gt;
| MrNbaYoh&lt;br /&gt;
| [http://mrnbayoh.github.io/basicsploit/ Install]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: lightgreen&amp;quot; | Yes&lt;br /&gt;
| [[smashbroshax|smashbroshax]] (beaconhax)&lt;br /&gt;
| (New 3DS only) From &#039;&#039;&#039;9.0.0-X&#039;&#039;&#039; up to and including &#039;&#039;&#039;11.3.0-36&#039;&#039;&#039;.&lt;br /&gt;
| Super Smash Bros 3DS (full-game) and a way to broadcast raw wifi beacons. The demo (prior to the updated November 2015 [https://github.com/yellows8/3ds_smashbroshax version]) isn&#039;t usable with the *hax payloads. Game-version v1.1.3 fixed the vuln used with this, see the repo for a workaround for that.&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
| [https://github.com/yellows8/3ds_smashbroshax Install]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: salmon&amp;quot; | No&lt;br /&gt;
| [[browserhax]]&lt;br /&gt;
| From &#039;&#039;&#039;9.0.0-2&#039;&#039;&#039; to &#039;&#039;&#039;11.0.0-33&#039;&#039;&#039;&lt;br /&gt;
Note that the browser-version-check bypass is only usable prior to [[10.7.0-32]].&lt;br /&gt;
| A USA, EUR, JPN, or KOR system.&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
| [http://yls8.mtheall.com/3dsbrowserhax.php Install]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: salmon&amp;quot; | No&lt;br /&gt;
| [https://github.com/svanheulen/genhax genhax]&lt;br /&gt;
| (New 3DS only) From &#039;&#039;&#039;9.9.0-X&#039;&#039;&#039; up to and including &#039;&#039;&#039;11.2.0-X&#039;&#039;&#039;.&lt;br /&gt;
| A gamecard or eShop-install of Monster Hunter X (JPN only), and the DLC encryption key (see installer instructions). &#039;&#039;&#039;Note: the secondary exploit still works, see bellow&#039;&#039;&#039;&lt;br /&gt;
| svanheulen&lt;br /&gt;
| [https://github.com/svanheulen/genhax_installer Install]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: lightgreen&amp;quot; | Yes&lt;br /&gt;
| [https://github.com/nedwill/soundhax soundhax]&lt;br /&gt;
| From &#039;&#039;&#039;9.0.0-13&#039;&#039;&#039; up to and including &#039;&#039;&#039;11.3.0-36&#039;&#039;&#039;.&lt;br /&gt;
| A USA, EUR, JPN or KOR system.&lt;br /&gt;
| nedwill&lt;br /&gt;
| [http://soundhax.com Install]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: lightgreen&amp;quot; | Yes&lt;br /&gt;
| [https://github.com/MrNbaYoh/doodlebomb doodlebomb]&lt;br /&gt;
| From &#039;&#039;&#039;9.0.0-X&#039;&#039;&#039;(?) up to and including &#039;&#039;&#039;11.4.0-X&#039;&#039;&#039;.&lt;br /&gt;
| An eShop-install of Swapdoodle. See &amp;quot;Without the Homebrew Launcher&amp;quot; instructions.&lt;br /&gt;
| MrNbaYoh&lt;br /&gt;
| [https://mrnbayoh.github.io/doodlebomb/ Install]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Note that ninjhax 1.x is still not obsolete. Even though ninjhax 2.x can be run on 9.3+, this was made possible (amongst other things) by sacrificing the memory remapping exploit used in ninjhax 1.x (rohax). Therefore, things like JIT engines for emulators can only be supported on ninjhax 1.x. Furthermore, ninjhax 2.x does not run on system versions below 9.0.0-X, while ninjhax 1.x does.&lt;br /&gt;
&lt;br /&gt;
==Secondary Exploits==&lt;br /&gt;
Installation of these exploits requires a previously exploited system to install. After installation, they can be used on their own. &#039;&#039;Please&#039;&#039; see the above Payload section regarding what &amp;quot;Supported firmwares&amp;quot; indicates &#039;&#039;exactly&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
!  Works on latest fw&lt;br /&gt;
!  Name&lt;br /&gt;
!  Supported firmwares&lt;br /&gt;
!  Requirements&lt;br /&gt;
!  Author&lt;br /&gt;
!  Install&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: salmon&amp;quot; | No&lt;br /&gt;
| [[ironhax]]&lt;br /&gt;
| From &#039;&#039;&#039;9.5.0-X&#039;&#039;&#039; up to and including &#039;&#039;&#039;10.3.0-X&#039;&#039;&#039;, for &#039;&#039;&#039;X&#039;&#039;&#039; up to and including 28.&lt;br /&gt;
| A copy of &amp;quot;Ironfall: Invasion&amp;quot; downloaded from eShop before August 11th, 2015. Note the updated version that was released on October 13th, 2015 is not supported.&lt;br /&gt;
| smea&lt;br /&gt;
| [http://smealum.github.io/3ds/ Install]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: lightgreen&amp;quot; | Yes&lt;br /&gt;
| [http://vegaroxas.github.io/ steelhax]&lt;br /&gt;
| From &#039;&#039;&#039;9.0.0-X&#039;&#039;&#039; up to and including &#039;&#039;&#039;11.3.0-X&#039;&#039;&#039;, for &#039;&#039;&#039;X&#039;&#039;&#039; up to and including 36.&lt;br /&gt;
| A copy of Steel Diver: Sub Wars&lt;br /&gt;
| Vegaroxas&lt;br /&gt;
| [https://github.com/VegaRoXas/vegaroxas.github.io/raw/master/files/steelhax-installer.zip Install]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: lightgreen&amp;quot; | Yes&lt;br /&gt;
| [https://github.com/yellows8/oot3dhax oot3dhax]&lt;br /&gt;
| From &#039;&#039;&#039;9.0.0-X&#039;&#039;&#039; up to and including &#039;&#039;&#039;11.3.0-X&#039;&#039;&#039;, for &#039;&#039;&#039;X&#039;&#039;&#039; up to and including 36.&lt;br /&gt;
| A gamecard or eShop-install of Legend of Zelda: Ocarina of Time 3D. Besides using the installer app, writing raw saveimages with a save dongle for example is another option. Before compression was introduced in the 2016-7-18 release, the size of the *hax payload meant the exploit can&#039;t coexist with regular saves on a physical version of the game.&lt;br /&gt;
| Yellows8 / smea et al.&lt;br /&gt;
| See [https://smealum.github.io/3ds/ here].&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: salmon&amp;quot; | No&lt;br /&gt;
| [[menuhax]]&lt;br /&gt;
| JPN/USA/EUR: From &#039;&#039;&#039;9.0.0-X&#039;&#039;&#039; up to and including &#039;&#039;&#039;11.2.0-X&#039;&#039;&#039;.&lt;br /&gt;
KOR: From &#039;&#039;&#039;9.6.0-X&#039;&#039;&#039; up to and including &#039;&#039;&#039;11.2.0-X&#039;&#039;&#039;.&lt;br /&gt;
| JPN/USA/EUR: Having created [[Home_Menu#Home_Menu_Theme_SD_ExtData|theme extdata]] through opening the official theme selector at least once.&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
| [https://github.com/yellows8/3ds_homemenuhax/releases Download]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: lightgreen&amp;quot; | Yes&lt;br /&gt;
| [https://github.com/shinyquagsire23/supermysterychunkhax supermysterychunkhax]&lt;br /&gt;
| From &#039;&#039;&#039;9.9.0-X&#039;&#039;&#039; (USA/JPN) / &#039;&#039;&#039;10.2.0-X&#039;&#039;&#039; (EUR) up to and including &#039;&#039;&#039;11.1.0-X&#039;&#039;&#039;, for &#039;&#039;&#039;X&#039;&#039;&#039; up to and including 34.&lt;br /&gt;
| A gamecard or eShop-install of Pokémon Super Mystery Dungeon.&lt;br /&gt;
| Shiny Quagsire / SALT team&lt;br /&gt;
| [https://smd.salthax.org/ Install].&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: salmon&amp;quot; | No&lt;br /&gt;
| [https://github.com/shinyquagsire23/v_hax (v*)hax]&lt;br /&gt;
| From &#039;&#039;&#039;9.0.0-X&#039;&#039;&#039; up to and including &#039;&#039;&#039;11.0.0-X&#039;&#039;&#039;, for &#039;&#039;&#039;X&#039;&#039;&#039; up to and including 33.&lt;br /&gt;
Note that &#039;&#039;&#039;9.0.0-X&#039;&#039;&#039; is only required for the Homebrew Launcher - the game itself only requires &#039;&#039;&#039;2.1.0-X&#039;&#039;&#039; for primitive userland code execution.&lt;br /&gt;
| A copy of VVVVVV downloaded after March 2012 (v1). v1.1 patches out the overflow vulnerability used by (v*)hax.&lt;br /&gt;
| Shiny Quagsire / SALT team&lt;br /&gt;
| [https://vvvvvv.salthax.org/ Install].&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: lightgreen&amp;quot; | Yes&lt;br /&gt;
| [https://github.com/Dazzozo/humblehax humblehax]&lt;br /&gt;
| From &#039;&#039;&#039;9.0.0-X&#039;&#039;&#039; (USA/EUR) up to and including &#039;&#039;&#039;11.2.0-X&#039;&#039;&#039;, for &#039;&#039;&#039;X&#039;&#039;&#039; up to and including 35.&lt;br /&gt;
| An eShop-install of Citizens of Earth (either v1 or v2), featured in the Humble &amp;quot;Friends of Nintendo&amp;quot; Bundle.&lt;br /&gt;
| Dazzozo / SALT team&lt;br /&gt;
| [https://citizens.salthax.org/ Install].&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: salmon&amp;quot; | No&lt;br /&gt;
| [http://mrnbayoh.github.io/basehaxx/ basehaxx]&lt;br /&gt;
| From &#039;&#039;&#039;9.0.0-X&#039;&#039;&#039; up to and including &#039;&#039;&#039;11.1.0-X&#039;&#039;&#039;, for &#039;&#039;&#039;X&#039;&#039;&#039; up to and including 34.&lt;br /&gt;
| A gamecard or eShop-install of Pokémon Omega Ruby / Alpha Sapphire.&lt;br /&gt;
| MrNbaYoh&lt;br /&gt;
| [http://mrnbayoh.github.io/basehaxx/ install]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: lightgreen&amp;quot; | Yes&lt;br /&gt;
| [https://github.com/yellows8/stickerhax stickerhax]&lt;br /&gt;
| From &#039;&#039;&#039;9.0.0-X&#039;&#039;&#039; up to and including &#039;&#039;&#039;11.3.0-X&#039;&#039;&#039;.&lt;br /&gt;
| A gamecard or eShop-install of Paper Mario: Sticker Star.&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
| [https://github.com/yellows8/stickerhax Here]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: lightgreen&amp;quot; | Yes&lt;br /&gt;
| [https://github.com/svanheulen/genhax genhax]&lt;br /&gt;
| (New 3DS only) From &#039;&#039;&#039;9.9.0-X&#039;&#039;&#039;(JPN) or &#039;&#039;&#039;10.3.0-X&#039;&#039;&#039;(EUR/USA) up to and including &#039;&#039;&#039;11.3.0-X&#039;&#039;&#039;.&lt;br /&gt;
| A gamecard or eShop-install of Monster Hunter Generations or Monster Hunter X (without the game updates installed), and an internet connection during installation.&lt;br /&gt;
| svanheulen&lt;br /&gt;
| [https://github.com/svanheulen/genhax_installer Install]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: lightgreen&amp;quot; | Yes&lt;br /&gt;
| [https://github.com/MrNbaYoh/painthax painthax]&lt;br /&gt;
| From &#039;&#039;&#039;9.0.0-X&#039;&#039;&#039; up to and including &#039;&#039;&#039;11.3.0-X&#039;&#039;&#039;.&lt;br /&gt;
| An eShop-install of PixelPaint.&lt;br /&gt;
| MrNbaYoh&lt;br /&gt;
| [https://github.com/MrNbaYoh/painthax/releases/latest install]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: lightgreen&amp;quot; | Yes&lt;br /&gt;
| [https://github.com/yellows8/ctpkpwn ctpkpwn_tfh]&lt;br /&gt;
| From &#039;&#039;&#039;9.9.0-X&#039;&#039;&#039; up to and including &#039;&#039;&#039;11.2.0-X&#039;&#039;&#039;.&lt;br /&gt;
| A gamecard or eShop-install of &amp;quot;The Legend of Zelda: Tri Force Heroes&amp;quot;, and an Internet connection during installation. Unless you have &amp;quot;CFW&amp;quot;, ctr-httpwn &amp;gt;=v1.2 with the included bosshaxx on a compatible system-version is also required.&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
| [https://github.com/yellows8/ctpkpwn/releases Install]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: lightgreen&amp;quot; | Yes&lt;br /&gt;
| [https://github.com/MrNbaYoh/doodlebomb doodlebomb]&lt;br /&gt;
| From &#039;&#039;&#039;9.0.0-X&#039;&#039;&#039;(?) up to and including &#039;&#039;&#039;11.4.0-X&#039;&#039;&#039;.&lt;br /&gt;
| An eShop-install of Swapdoodle.&lt;br /&gt;
| MrNbaYoh&lt;br /&gt;
| [https://mrnbayoh.github.io/doodlebomb/ Install]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Exploits without Homebrew Launcher (Not recommended)==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;&#039;&#039;&#039;Warning:&#039;&#039;&#039;&amp;lt;/u&amp;gt; The following exploits can run code, but are missing a 3DSX launcher. They cannot launch any homebrew in the 3DSX format.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Works on latest fw&lt;br /&gt;
!  Name&lt;br /&gt;
!  Supported firmwares&lt;br /&gt;
!  Requirements&lt;br /&gt;
!  Author&lt;br /&gt;
!  Install&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: salmon&amp;quot; | No&lt;br /&gt;
| [[browserhax]] (Without the loader in the 3ds_browserhax_common repo)&lt;br /&gt;
| (Old3DS) From &#039;&#039;&#039;5.0.0-2&#039;&#039;&#039; to &#039;&#039;&#039;11.0.0-33&#039;&#039;&#039; (Pre-v5.0 is supported for some versions if you manually modify the source)&lt;br /&gt;
&lt;br /&gt;
(New3DS) From &#039;&#039;&#039;9.0.0-20&#039;&#039;&#039; to &#039;&#039;&#039;11.0.0-33&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Note that the browser-version-check bypass is only usable prior to [[10.7.0-32]].&lt;br /&gt;
| An USA, EUR, or JPN system.&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
| [[browserhax|Install]]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: salmon&amp;quot; | No&lt;br /&gt;
| Ninjhax (with specialized payloads)&lt;br /&gt;
| Up to &#039;&#039;&#039;9.2.0-20&#039;&#039;&#039;?&lt;br /&gt;
| &lt;br /&gt;
| smea + independent developers&lt;br /&gt;
| N/A&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Previous Exploits==&lt;br /&gt;
&amp;lt;u&amp;gt;&#039;&#039;&#039;Warning:&#039;&#039;&#039;&amp;lt;/u&amp;gt; These exploits &#039;&#039;&#039;do not work&#039;&#039;&#039;. They are exploits which no longer function at all, regardless of software or firmware revision.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
!  Works on latest fw&lt;br /&gt;
! Name&lt;br /&gt;
! Supported firmwares&lt;br /&gt;
! Requirements&lt;br /&gt;
! Author&lt;br /&gt;
! Install&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: salmon&amp;quot; | No&lt;br /&gt;
| [[tubehax|Tubehax]]&lt;br /&gt;
| None. &#039;&#039;&#039;Was&#039;&#039;&#039;: From &#039;&#039;&#039;9.0.0-X&#039;&#039;&#039; up to and including &#039;&#039;&#039;10.1.0-X&#039;&#039;&#039;, for &#039;&#039;&#039;X&#039;&#039;&#039; up to and including 27.&lt;br /&gt;
| The YouTube application and an Internet connection. As of October 15, 2015, this is no longer usable due to an update being released which fixes the vuln used by tubehax + app update being forced (see [[YouTube|here]]).&lt;br /&gt;
| smea&lt;br /&gt;
| [http://smealum.github.io/3ds/ Install]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Other Homebrew Loaders==&lt;br /&gt;
The [https://github.com/yellows8/hblauncher_loader hblauncher_loader] title can be used when running under modded-FIRM which allows running unsigned titles, to boot the *hax payloads.&lt;br /&gt;
&lt;br /&gt;
==Sysmodule Exploits==&lt;br /&gt;
This section is for system-module exploits, which can be run from the *hax payloads.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Works on latest fw&lt;br /&gt;
! Name&lt;br /&gt;
! Supported firmwares&lt;br /&gt;
! Requirements&lt;br /&gt;
! Author&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: lightgreen&amp;quot; | Yes, that&#039;s not the intended default use however.&lt;br /&gt;
| [https://github.com/yellows8/ctr-httpwn/releases ctr-httpwn]&lt;br /&gt;
| From &#039;&#039;&#039;9.6.0-X&#039;&#039;&#039; up to and including &#039;&#039;&#039;11.3.0-X&#039;&#039;&#039;. This includes bosshaxx.&lt;br /&gt;
| None&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==WebKit vuln testing==&lt;br /&gt;
See [https://github.com/yellows8/3ds_browserhax_common/issues/28 here].&lt;/div&gt;</summary>
		<author><name>Yellows8</name></author>
	</entry>
	<entry>
		<id>https://www.3dbrew.org/w/index.php?title=Homebrew_Exploits&amp;diff=19840</id>
		<title>Homebrew Exploits</title>
		<link rel="alternate" type="text/html" href="https://www.3dbrew.org/w/index.php?title=Homebrew_Exploits&amp;diff=19840"/>
		<updated>2017-04-11T10:44:34Z</updated>

		<summary type="html">&lt;p&gt;Yellows8: /* Secondary Exploits */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Payload==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Works on latest fw&lt;br /&gt;
!  Name&lt;br /&gt;
!  Description&lt;br /&gt;
!  Supported firmwares&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: lightgreen&amp;quot; | Yes&lt;br /&gt;
| [https://smealum.github.io/3ds/ *hax payload]&lt;br /&gt;
| Booted by all of the below non-sysmodule exploits.&lt;br /&gt;
| From &#039;&#039;&#039;9.0.0-7&#039;&#039;&#039; up to and including &#039;&#039;&#039;11.3.0-36&#039;&#039;&#039;.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
For the rest of this page, &amp;quot;Supported firmwares&amp;quot; refers to the exploit &#039;&#039;itself&#039;&#039;, not whether *hax payload supports it.&lt;br /&gt;
&lt;br /&gt;
==Standalone Homebrew Launcher Exploits==&lt;br /&gt;
The following homebrew exploits can be executed on a previously un-exploited system. &#039;&#039;Please&#039;&#039; see the above Payload section regarding what &amp;quot;Supported firmwares&amp;quot; indicates &#039;&#039;exactly&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Works on latest fw&lt;br /&gt;
!  Name&lt;br /&gt;
!  Supported firmwares&lt;br /&gt;
!  Requirements&lt;br /&gt;
!  Author&lt;br /&gt;
!  Install&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: salmon&amp;quot; | No&lt;br /&gt;
| [[ninjhax|Ninjhax 1.1b]]&lt;br /&gt;
| From &#039;&#039;&#039;4.0.0-7&#039;&#039;&#039; up to and including &#039;&#039;&#039;9.2.0-20&#039;&#039;&#039;.&lt;br /&gt;
| A cartridge or eShop version (JPN-only) of &amp;quot;Cubic Ninja&amp;quot;.&lt;br /&gt;
| smea&lt;br /&gt;
| [http://smealum.net/ninjhax/ Install]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: lightgreen&amp;quot; | Yes&lt;br /&gt;
| [[ninjhax|Ninjhax 2.x]]&lt;br /&gt;
| From &#039;&#039;&#039;9.0.0-7&#039;&#039;&#039; up to and including &#039;&#039;&#039;11.3.0-36&#039;&#039;&#039;.&lt;br /&gt;
|  A cartridge or eShop version (JPN-only, not available anymore for purchase) of &amp;quot;Cubic Ninja&amp;quot;.&lt;br /&gt;
| smea&lt;br /&gt;
| [https://smealum.github.io/ninjhax2/ Install]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: lightgreen&amp;quot; | Yes&lt;br /&gt;
| [http://plutooo.github.io/freakyhax/ freakyhax]&lt;br /&gt;
| From &#039;&#039;&#039;9.0.0-7&#039;&#039;&#039; up to and including &#039;&#039;&#039;11.3.0-36&#039;&#039;&#039;.&lt;br /&gt;
|  A cartridge or eShop version (USA/EUR/JAP, not available anymore for purchase) of &amp;quot;Freakyform Deluxe&amp;quot;.&lt;br /&gt;
| plutoo&lt;br /&gt;
| [http://plutooo.github.io/freakyhax/ Install]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: salmon&amp;quot; | No&lt;br /&gt;
| [http://plutooo.github.io/smilehax/ smilehax]&lt;br /&gt;
| From &#039;&#039;&#039;9.0.0-7&#039;&#039;&#039; up to and including &#039;&#039;&#039;11.0.0-33&#039;&#039;&#039;&lt;br /&gt;
| SmileBASIC (JPN all versions up to 3.32 excluded, USA 3.31 only)&lt;br /&gt;
| plutoo&lt;br /&gt;
| [http://plutooo.github.io/smilehax/ Install]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: salmon&amp;quot; | No&lt;br /&gt;
| [http://mrnbayoh.github.io/basicsploit/ BASICSploit]&lt;br /&gt;
| From &#039;&#039;&#039;9.0.0-7&#039;&#039;&#039; up to and including &#039;&#039;&#039;11.0.0-33&#039;&#039;&#039;&lt;br /&gt;
| SmileBASIC (USA all versions)&lt;br /&gt;
| MrNbaYoh&lt;br /&gt;
| [http://mrnbayoh.github.io/basicsploit/ Install]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: lightgreen&amp;quot; | Yes&lt;br /&gt;
| [[smashbroshax|smashbroshax]] (beaconhax)&lt;br /&gt;
| (New 3DS only) From &#039;&#039;&#039;9.0.0-X&#039;&#039;&#039; up to and including &#039;&#039;&#039;11.3.0-36&#039;&#039;&#039;.&lt;br /&gt;
| Super Smash Bros 3DS (full-game) and a way to broadcast raw wifi beacons. The demo (prior to the updated November 2015 [https://github.com/yellows8/3ds_smashbroshax version]) isn&#039;t usable with the *hax payloads. Game-version v1.1.3 fixed the vuln used with this, see the repo for a workaround for that.&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
| [https://github.com/yellows8/3ds_smashbroshax Install]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: salmon&amp;quot; | No&lt;br /&gt;
| [[browserhax]]&lt;br /&gt;
| From &#039;&#039;&#039;9.0.0-2&#039;&#039;&#039; to &#039;&#039;&#039;11.0.0-33&#039;&#039;&#039;&lt;br /&gt;
Note that the browser-version-check bypass is only usable prior to [[10.7.0-32]].&lt;br /&gt;
| A USA, EUR, JPN, or KOR system.&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
| [http://yls8.mtheall.com/3dsbrowserhax.php Install]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: salmon&amp;quot; | No&lt;br /&gt;
| [https://github.com/svanheulen/genhax genhax]&lt;br /&gt;
| (New 3DS only) From &#039;&#039;&#039;9.9.0-X&#039;&#039;&#039; up to and including &#039;&#039;&#039;11.2.0-X&#039;&#039;&#039;.&lt;br /&gt;
| A gamecard or eShop-install of Monster Hunter X (JPN only), and the DLC encryption key (see installer instructions). &#039;&#039;&#039;Note: the secondary exploit still works, see bellow&#039;&#039;&#039;&lt;br /&gt;
| svanheulen&lt;br /&gt;
| [https://github.com/svanheulen/genhax_installer Install]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: lightgreen&amp;quot; | Yes&lt;br /&gt;
| [https://github.com/nedwill/soundhax soundhax]&lt;br /&gt;
| From &#039;&#039;&#039;9.0.0-13&#039;&#039;&#039; up to and including &#039;&#039;&#039;11.3.0-36&#039;&#039;&#039;.&lt;br /&gt;
| A USA, EUR, JPN or KOR system.&lt;br /&gt;
| nedwill&lt;br /&gt;
| [http://soundhax.com Install]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Note that ninjhax 1.x is still not obsolete. Even though ninjhax 2.x can be run on 9.3+, this was made possible (amongst other things) by sacrificing the memory remapping exploit used in ninjhax 1.x (rohax). Therefore, things like JIT engines for emulators can only be supported on ninjhax 1.x. Furthermore, ninjhax 2.x does not run on system versions below 9.0.0-X, while ninjhax 1.x does.&lt;br /&gt;
&lt;br /&gt;
==Secondary Exploits==&lt;br /&gt;
Installation of these exploits requires a previously exploited system to install. After installation, they can be used on their own. &#039;&#039;Please&#039;&#039; see the above Payload section regarding what &amp;quot;Supported firmwares&amp;quot; indicates &#039;&#039;exactly&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
!  Works on latest fw&lt;br /&gt;
!  Name&lt;br /&gt;
!  Supported firmwares&lt;br /&gt;
!  Requirements&lt;br /&gt;
!  Author&lt;br /&gt;
!  Install&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: salmon&amp;quot; | No&lt;br /&gt;
| [[ironhax]]&lt;br /&gt;
| From &#039;&#039;&#039;9.5.0-X&#039;&#039;&#039; up to and including &#039;&#039;&#039;10.3.0-X&#039;&#039;&#039;, for &#039;&#039;&#039;X&#039;&#039;&#039; up to and including 28.&lt;br /&gt;
| A copy of &amp;quot;Ironfall: Invasion&amp;quot; downloaded from eShop before August 11th, 2015. Note the updated version that was released on October 13th, 2015 is not supported.&lt;br /&gt;
| smea&lt;br /&gt;
| [http://smealum.github.io/3ds/ Install]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: lightgreen&amp;quot; | Yes&lt;br /&gt;
| [http://vegaroxas.github.io/ steelhax]&lt;br /&gt;
| From &#039;&#039;&#039;9.0.0-X&#039;&#039;&#039; up to and including &#039;&#039;&#039;11.3.0-X&#039;&#039;&#039;, for &#039;&#039;&#039;X&#039;&#039;&#039; up to and including 36.&lt;br /&gt;
| A copy of Steel Diver: Sub Wars&lt;br /&gt;
| Vegaroxas&lt;br /&gt;
| [https://github.com/VegaRoXas/vegaroxas.github.io/raw/master/files/steelhax-installer.zip Install]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: lightgreen&amp;quot; | Yes&lt;br /&gt;
| [https://github.com/yellows8/oot3dhax oot3dhax]&lt;br /&gt;
| From &#039;&#039;&#039;9.0.0-X&#039;&#039;&#039; up to and including &#039;&#039;&#039;11.3.0-X&#039;&#039;&#039;, for &#039;&#039;&#039;X&#039;&#039;&#039; up to and including 36.&lt;br /&gt;
| A gamecard or eShop-install of Legend of Zelda: Ocarina of Time 3D. Besides using the installer app, writing raw saveimages with a save dongle for example is another option. Before compression was introduced in the 2016-7-18 release, the size of the *hax payload meant the exploit can&#039;t coexist with regular saves on a physical version of the game.&lt;br /&gt;
| Yellows8 / smea et al.&lt;br /&gt;
| See [https://smealum.github.io/3ds/ here].&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: salmon&amp;quot; | No&lt;br /&gt;
| [[menuhax]]&lt;br /&gt;
| JPN/USA/EUR: From &#039;&#039;&#039;9.0.0-X&#039;&#039;&#039; up to and including &#039;&#039;&#039;11.2.0-X&#039;&#039;&#039;.&lt;br /&gt;
KOR: From &#039;&#039;&#039;9.6.0-X&#039;&#039;&#039; up to and including &#039;&#039;&#039;11.2.0-X&#039;&#039;&#039;.&lt;br /&gt;
| JPN/USA/EUR: Having created [[Home_Menu#Home_Menu_Theme_SD_ExtData|theme extdata]] through opening the official theme selector at least once.&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
| [https://github.com/yellows8/3ds_homemenuhax/releases Download]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: lightgreen&amp;quot; | Yes&lt;br /&gt;
| [https://github.com/shinyquagsire23/supermysterychunkhax supermysterychunkhax]&lt;br /&gt;
| From &#039;&#039;&#039;9.9.0-X&#039;&#039;&#039; (USA/JPN) / &#039;&#039;&#039;10.2.0-X&#039;&#039;&#039; (EUR) up to and including &#039;&#039;&#039;11.1.0-X&#039;&#039;&#039;, for &#039;&#039;&#039;X&#039;&#039;&#039; up to and including 34.&lt;br /&gt;
| A gamecard or eShop-install of Pokémon Super Mystery Dungeon.&lt;br /&gt;
| Shiny Quagsire / SALT team&lt;br /&gt;
| [https://smd.salthax.org/ Install].&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: salmon&amp;quot; | No&lt;br /&gt;
| [https://github.com/shinyquagsire23/v_hax (v*)hax]&lt;br /&gt;
| From &#039;&#039;&#039;9.0.0-X&#039;&#039;&#039; up to and including &#039;&#039;&#039;11.0.0-X&#039;&#039;&#039;, for &#039;&#039;&#039;X&#039;&#039;&#039; up to and including 33.&lt;br /&gt;
Note that &#039;&#039;&#039;9.0.0-X&#039;&#039;&#039; is only required for the Homebrew Launcher - the game itself only requires &#039;&#039;&#039;2.1.0-X&#039;&#039;&#039; for primitive userland code execution.&lt;br /&gt;
| A copy of VVVVVV downloaded after March 2012 (v1). v1.1 patches out the overflow vulnerability used by (v*)hax.&lt;br /&gt;
| Shiny Quagsire / SALT team&lt;br /&gt;
| [https://vvvvvv.salthax.org/ Install].&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: lightgreen&amp;quot; | Yes&lt;br /&gt;
| [https://github.com/Dazzozo/humblehax humblehax]&lt;br /&gt;
| From &#039;&#039;&#039;9.0.0-X&#039;&#039;&#039; (USA/EUR) up to and including &#039;&#039;&#039;11.2.0-X&#039;&#039;&#039;, for &#039;&#039;&#039;X&#039;&#039;&#039; up to and including 35.&lt;br /&gt;
| An eShop-install of Citizens of Earth (either v1 or v2), featured in the Humble &amp;quot;Friends of Nintendo&amp;quot; Bundle.&lt;br /&gt;
| Dazzozo / SALT team&lt;br /&gt;
| [https://citizens.salthax.org/ Install].&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: salmon&amp;quot; | No&lt;br /&gt;
| [http://mrnbayoh.github.io/basehaxx/ basehaxx]&lt;br /&gt;
| From &#039;&#039;&#039;9.0.0-X&#039;&#039;&#039; up to and including &#039;&#039;&#039;11.1.0-X&#039;&#039;&#039;, for &#039;&#039;&#039;X&#039;&#039;&#039; up to and including 34.&lt;br /&gt;
| A gamecard or eShop-install of Pokémon Omega Ruby / Alpha Sapphire.&lt;br /&gt;
| MrNbaYoh&lt;br /&gt;
| [http://mrnbayoh.github.io/basehaxx/ install]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: lightgreen&amp;quot; | Yes&lt;br /&gt;
| [https://github.com/yellows8/stickerhax stickerhax]&lt;br /&gt;
| From &#039;&#039;&#039;9.0.0-X&#039;&#039;&#039; up to and including &#039;&#039;&#039;11.3.0-X&#039;&#039;&#039;.&lt;br /&gt;
| A gamecard or eShop-install of Paper Mario: Sticker Star.&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
| [https://github.com/yellows8/stickerhax Here]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: lightgreen&amp;quot; | Yes&lt;br /&gt;
| [https://github.com/svanheulen/genhax genhax]&lt;br /&gt;
| (New 3DS only) From &#039;&#039;&#039;9.9.0-X&#039;&#039;&#039;(JPN) or &#039;&#039;&#039;10.3.0-X&#039;&#039;&#039;(EUR/USA) up to and including &#039;&#039;&#039;11.3.0-X&#039;&#039;&#039;.&lt;br /&gt;
| A gamecard or eShop-install of Monster Hunter Generations or Monster Hunter X (without the game updates installed), and an internet connection during installation.&lt;br /&gt;
| svanheulen&lt;br /&gt;
| [https://github.com/svanheulen/genhax_installer Install]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: lightgreen&amp;quot; | Yes&lt;br /&gt;
| [https://github.com/MrNbaYoh/painthax painthax]&lt;br /&gt;
| From &#039;&#039;&#039;9.0.0-X&#039;&#039;&#039; up to and including &#039;&#039;&#039;11.3.0-X&#039;&#039;&#039;.&lt;br /&gt;
| An eShop-install of PixelPaint.&lt;br /&gt;
| MrNbaYoh&lt;br /&gt;
| [https://github.com/MrNbaYoh/painthax/releases/latest install]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: lightgreen&amp;quot; | Yes&lt;br /&gt;
| [https://github.com/yellows8/ctpkpwn ctpkpwn_tfh]&lt;br /&gt;
| From &#039;&#039;&#039;9.9.0-X&#039;&#039;&#039; up to and including &#039;&#039;&#039;11.2.0-X&#039;&#039;&#039;.&lt;br /&gt;
| A gamecard or eShop-install of &amp;quot;The Legend of Zelda: Tri Force Heroes&amp;quot;, and an Internet connection during installation. Unless you have &amp;quot;CFW&amp;quot;, ctr-httpwn &amp;gt;=v1.2 with the included bosshaxx on a compatible system-version is also required.&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
| [https://github.com/yellows8/ctpkpwn/releases Install]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: lightgreen&amp;quot; | Yes&lt;br /&gt;
| [https://github.com/MrNbaYoh/doodlebomb doodlebomb]&lt;br /&gt;
| From &#039;&#039;&#039;9.0.0-X&#039;&#039;&#039;(?) up to and including &#039;&#039;&#039;11.4.0-X&#039;&#039;&#039;.&lt;br /&gt;
| An eShop-install of Swapdoodle.&lt;br /&gt;
| MrNbaYoh&lt;br /&gt;
| [https://mrnbayoh.github.io/doodlebomb/ Install]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Exploits without Homebrew Launcher (Not recommended)==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;&#039;&#039;&#039;Warning:&#039;&#039;&#039;&amp;lt;/u&amp;gt; The following exploits can run code, but are missing a 3DSX launcher. They cannot launch any homebrew in the 3DSX format.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Works on latest fw&lt;br /&gt;
!  Name&lt;br /&gt;
!  Supported firmwares&lt;br /&gt;
!  Requirements&lt;br /&gt;
!  Author&lt;br /&gt;
!  Install&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: salmon&amp;quot; | No&lt;br /&gt;
| [[browserhax]] (Without the loader in the 3ds_browserhax_common repo)&lt;br /&gt;
| (Old3DS) From &#039;&#039;&#039;5.0.0-2&#039;&#039;&#039; to &#039;&#039;&#039;11.0.0-33&#039;&#039;&#039; (Pre-v5.0 is supported for some versions if you manually modify the source)&lt;br /&gt;
&lt;br /&gt;
(New3DS) From &#039;&#039;&#039;9.0.0-20&#039;&#039;&#039; to &#039;&#039;&#039;11.0.0-33&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Note that the browser-version-check bypass is only usable prior to [[10.7.0-32]].&lt;br /&gt;
| An USA, EUR, or JPN system.&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
| [[browserhax|Install]]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: salmon&amp;quot; | No&lt;br /&gt;
| Ninjhax (with specialized payloads)&lt;br /&gt;
| Up to &#039;&#039;&#039;9.2.0-20&#039;&#039;&#039;?&lt;br /&gt;
| &lt;br /&gt;
| smea + independent developers&lt;br /&gt;
| N/A&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Previous Exploits==&lt;br /&gt;
&amp;lt;u&amp;gt;&#039;&#039;&#039;Warning:&#039;&#039;&#039;&amp;lt;/u&amp;gt; These exploits &#039;&#039;&#039;do not work&#039;&#039;&#039;. They are exploits which no longer function at all, regardless of software or firmware revision.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
!  Works on latest fw&lt;br /&gt;
! Name&lt;br /&gt;
! Supported firmwares&lt;br /&gt;
! Requirements&lt;br /&gt;
! Author&lt;br /&gt;
! Install&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: salmon&amp;quot; | No&lt;br /&gt;
| [[tubehax|Tubehax]]&lt;br /&gt;
| None. &#039;&#039;&#039;Was&#039;&#039;&#039;: From &#039;&#039;&#039;9.0.0-X&#039;&#039;&#039; up to and including &#039;&#039;&#039;10.1.0-X&#039;&#039;&#039;, for &#039;&#039;&#039;X&#039;&#039;&#039; up to and including 27.&lt;br /&gt;
| The YouTube application and an Internet connection. As of October 15, 2015, this is no longer usable due to an update being released which fixes the vuln used by tubehax + app update being forced (see [[YouTube|here]]).&lt;br /&gt;
| smea&lt;br /&gt;
| [http://smealum.github.io/3ds/ Install]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Other Homebrew Loaders==&lt;br /&gt;
The [https://github.com/yellows8/hblauncher_loader hblauncher_loader] title can be used when running under modded-FIRM which allows running unsigned titles, to boot the *hax payloads.&lt;br /&gt;
&lt;br /&gt;
==Sysmodule Exploits==&lt;br /&gt;
This section is for system-module exploits, which can be run from the *hax payloads.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Works on latest fw&lt;br /&gt;
! Name&lt;br /&gt;
! Supported firmwares&lt;br /&gt;
! Requirements&lt;br /&gt;
! Author&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: lightgreen&amp;quot; | Yes, that&#039;s not the intended default use however.&lt;br /&gt;
| [https://github.com/yellows8/ctr-httpwn/releases ctr-httpwn]&lt;br /&gt;
| From &#039;&#039;&#039;9.6.0-X&#039;&#039;&#039; up to and including &#039;&#039;&#039;11.3.0-X&#039;&#039;&#039;. This includes bosshaxx.&lt;br /&gt;
| None&lt;br /&gt;
| [[User:Yellows8|Yellows8]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==WebKit vuln testing==&lt;br /&gt;
See [https://github.com/yellows8/3ds_browserhax_common/issues/28 here].&lt;/div&gt;</summary>
		<author><name>Yellows8</name></author>
	</entry>
	<entry>
		<id>https://www.3dbrew.org/w/index.php?title=11.4.0-37&amp;diff=19831</id>
		<title>11.4.0-37</title>
		<link rel="alternate" type="text/html" href="https://www.3dbrew.org/w/index.php?title=11.4.0-37&amp;diff=19831"/>
		<updated>2017-04-11T02:05:52Z</updated>

		<summary type="html">&lt;p&gt;Yellows8: /* NWM-sysmodule */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The Old3DS+New3DS 11.4.0-37 system update was released on April 10, 2017. This Old3DS update was released for the following regions: USA, EUR, JPN, CHN, KOR, and TWN. This New3DS update was released for the following regions: USA, EUR, JPN, CHN, KOR, and TWN.&lt;br /&gt;
&lt;br /&gt;
Security flaws fixed: yes.&lt;br /&gt;
&lt;br /&gt;
==Change-log==&lt;br /&gt;
[http://en-americas-support.nintendo.com/app/answers/detail/a_id/667/p/430/c/267 Official] USA change-log:&lt;br /&gt;
* Further improvements to overall system stability and other minor adjustments have been made to enhance the user experience&lt;br /&gt;
&lt;br /&gt;
==System Titles==&lt;br /&gt;
&amp;lt;fill this in (manually) later&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===[[NWM_Services|NWM-sysmodule]]===&lt;br /&gt;
The [[CONFIG11_Registers]] are no longer directly mapped under userland for NWM-sysmodule.&lt;br /&gt;
This prevents anything under NWM-module from modifying the GPUPROT register.&lt;br /&gt;
&lt;br /&gt;
The codebin was updated.&lt;br /&gt;
&lt;br /&gt;
The crt0-poke in PDN that NWM previously did:&lt;br /&gt;
  0x1EC4010C |= 0x10&lt;br /&gt;
&lt;br /&gt;
.. has been removed from NWM. This one has presumably moved into kernel bootup.&lt;br /&gt;
&lt;br /&gt;
Reads from 0x1EC40180 have been replaced by a new syscall, [[SVC|0x5A]].&lt;br /&gt;
&lt;br /&gt;
A new string was added at 0x13E200: &amp;quot;used&amp;quot;(with 3 0xFF bytes afterwards). The wifi-fw was moved from .data to .rodata.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
System update report(s):&lt;br /&gt;
* [https://yls8.mtheall.com/ninupdates/reports.php?date=04-10-17_08-00-38&amp;amp;sys=ctr]&lt;br /&gt;
* [https://yls8.mtheall.com/ninupdates/reports.php?date=04-10-17_08-00-47&amp;amp;sys=ktr]&lt;/div&gt;</summary>
		<author><name>Yellows8</name></author>
	</entry>
	<entry>
		<id>https://www.3dbrew.org/w/index.php?title=11.4.0-37&amp;diff=19824</id>
		<title>11.4.0-37</title>
		<link rel="alternate" type="text/html" href="https://www.3dbrew.org/w/index.php?title=11.4.0-37&amp;diff=19824"/>
		<updated>2017-04-10T22:39:22Z</updated>

		<summary type="html">&lt;p&gt;Yellows8: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The Old3DS+New3DS 11.4.0-37 system update was released on April 10, 2017. This Old3DS update was released for the following regions: USA, EUR, JPN, CHN, KOR, and TWN. This New3DS update was released for the following regions: USA, EUR, JPN, CHN, KOR, and TWN.&lt;br /&gt;
&lt;br /&gt;
Security flaws fixed: yes.&lt;br /&gt;
&lt;br /&gt;
==Change-log==&lt;br /&gt;
[http://en-americas-support.nintendo.com/app/answers/detail/a_id/667/p/430/c/267 Official] USA change-log:&lt;br /&gt;
* Further improvements to overall system stability and other minor adjustments have been made to enhance the user experience&lt;br /&gt;
&lt;br /&gt;
==System Titles==&lt;br /&gt;
&amp;lt;fill this in (manually) later&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===[[NWM_Services|NWM-sysmodule]]===&lt;br /&gt;
The [[CONFIG11_Registers]] are no longer directly mapped under userland for NWM-sysmodule. This prevents anything under NWM-module from modifying the GPUPROT register.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
System update report(s):&lt;br /&gt;
* [https://yls8.mtheall.com/ninupdates/reports.php?date=04-10-17_08-00-38&amp;amp;sys=ctr]&lt;br /&gt;
* [https://yls8.mtheall.com/ninupdates/reports.php?date=04-10-17_08-00-47&amp;amp;sys=ktr]&lt;/div&gt;</summary>
		<author><name>Yellows8</name></author>
	</entry>
	<entry>
		<id>https://www.3dbrew.org/w/index.php?title=Services_API&amp;diff=19671</id>
		<title>Services API</title>
		<link rel="alternate" type="text/html" href="https://www.3dbrew.org/w/index.php?title=Services_API&amp;diff=19671"/>
		<updated>2017-02-19T04:35:44Z</updated>

		<summary type="html">&lt;p&gt;Yellows8: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Nintendo provides application developers with an API, which communicate with certain services. Services, in this sense, are [[Title_list#00040130_-_System_Modules|system processes running in the background]] which wait for incoming requests. When a process wants to communicate with a service, it first needs to get a handle to the named service, and then it can communicate with the service via interprocess communication. Each service has a name up to 8 characters, for example &amp;quot;nim:u&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Handles for services are retrieved from the [[Services|service manager port]], &amp;quot;srv:&amp;quot;. Services are an abstraction of ports, they operate the same way except regular ports can have their handles retrieved directly from a SVC.&lt;br /&gt;
&lt;br /&gt;
For a description of how commands and arguments are passed to services, see [[IPC Command Structure]].&lt;br /&gt;
&lt;br /&gt;
List of services (grouped by the process which provides them):&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Old3ds&lt;br /&gt;
!  Services&lt;br /&gt;
!  Service names&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;200&amp;quot; |  Notes&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: green&amp;quot; | Yes&lt;br /&gt;
| [[Filesystem services‎]]&lt;br /&gt;
| fs:USER, fs:LDR, fs:REG&lt;br /&gt;
| USER: normal applications and system modules, LDR: loader, REG: register&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: green&amp;quot; | Yes&lt;br /&gt;
| [[Process Services‎]]&lt;br /&gt;
| ps:ps&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: green&amp;quot; | Yes&lt;br /&gt;
| [[PXI Services‎]]&lt;br /&gt;
| PxiFS0, PxiFS1, PxiFSB, PxiFSR, PxiPM, pxi:am9, pxi:dev, pxi:mc, pxi:ps9&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: green&amp;quot; | Yes&lt;br /&gt;
| [[Application Manager Services]]&lt;br /&gt;
| am:app, am:net, am:u, am:sys, am:pipe&lt;br /&gt;
| app: am for applications, net: network installation ([[NIM_Services|nim]]), u: local installation, sys: am for system titles, pipe: not an actual port (internally used to represent the [[Application_Manager_Services#File_service|FSFile-like interface]])&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: green&amp;quot; | Yes&lt;br /&gt;
| [[Process Manager Services]]&lt;br /&gt;
| pm:app, pm:dbg&lt;br /&gt;
| app: launching titles, dbg: launching titles with debugging enabled&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: green&amp;quot; | Yes&lt;br /&gt;
| [[NIM Services]]&lt;br /&gt;
| nim:aoc, nim:ndm, nim:s, nim:u&lt;br /&gt;
| aoc: DLC, ndm: for [[NDM Services|ndm]], s: for eShop, u: for updater&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: green&amp;quot; | Yes&lt;br /&gt;
| [[Config Services]]&lt;br /&gt;
| cfg:u, cfg:s, cfg:i, cfg:nor&lt;br /&gt;
| u: for user, s: for system, i: for initialization/formatting, nor: accesses wifi SPI flash&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: green&amp;quot; | Yes&lt;br /&gt;
| [[NS|NS and APT Services]]&lt;br /&gt;
| ns:s, ns:p, ns:c, APT:A, APT:S, APT:U&lt;br /&gt;
| ns:s: for system, ns:p: power (shutdown/reboot), ns:c: ?, APT:A: application, APT:S: system, APT:U: user&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: green&amp;quot; | Yes&lt;br /&gt;
| [[RO Services]]&lt;br /&gt;
| ldr:ro&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: green&amp;quot; | Yes&lt;br /&gt;
| [[NDM Services]]&lt;br /&gt;
| ndm:u&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: green&amp;quot; | Yes&lt;br /&gt;
| [[CSND Services]]&lt;br /&gt;
| csnd:SND&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: green&amp;quot; | Yes&lt;br /&gt;
| [[Camera Services]]&lt;br /&gt;
| cam:u, y2r:u, cam:s, cam:c, cam:q (New3DS only)&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: green&amp;quot; | Yes&lt;br /&gt;
| [[Codec Services]]&lt;br /&gt;
| cdc:HID, cdc:MIC, cdc:CSN, cdc:DSP, cdc:LGY, cdc:CHK&lt;br /&gt;
| HID: human interface device, MIC: microphone, CSN: for [[CSND_Services|csnd]]?, DSP: for [[DSP_Services|dsp]]?, LGY: legacy (some kind of backwards compat?), CHK: ?&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: green&amp;quot; | Yes&lt;br /&gt;
| [[DLP Services]]&lt;br /&gt;
| dlp:CLNT, dlp:FKCL, dlp:SRVR&lt;br /&gt;
| CLNT: client, FKCL: fake client, SRVR: server&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: green&amp;quot; | Yes&lt;br /&gt;
| [[DSP Services]]&lt;br /&gt;
| dsp::DSP&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: green&amp;quot; | Yes&lt;br /&gt;
| [[GSP Services]]&lt;br /&gt;
| gsp::Lcd, gsp::Gpu&lt;br /&gt;
| Lcd: LCD control, Gpu: GPU control&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: green&amp;quot; | Yes&lt;br /&gt;
| [[BOSS Services]]&lt;br /&gt;
| boss:U, boss:P, boss:M&lt;br /&gt;
| U: user, P: privileged, M: for [[NDM Services|ndm]]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: green&amp;quot; | Yes&lt;br /&gt;
| [[CECD Services]]&lt;br /&gt;
| cecd:u, cecd:s, cecd:ndm&lt;br /&gt;
| u: user, s: system, ndm: for [[NDM Services|ndm]]&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: green&amp;quot; | Yes&lt;br /&gt;
| [[IR Services]]&lt;br /&gt;
| ir:u, ir:USER, ir:rst&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: green&amp;quot; | Yes&lt;br /&gt;
| [[I2C Services]]&lt;br /&gt;
| i2c::MCU, i2c::CAM, i2c::LCD, i2c::DEB, i2c::HID, i2c::IR, i2c::EEP, i2c::NFC, i2c::QTM&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: green&amp;quot; | Yes&lt;br /&gt;
| [[GPIO Services]]&lt;br /&gt;
| gpio:CDC, gpio:MCU, gpio:HID, gpio:NWM, gpio:IR, gpio:NFC, gpio:QTM&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: green&amp;quot; | Yes&lt;br /&gt;
| [[HID Services]]&lt;br /&gt;
| hid:NFC, hid:QTM, hid:SPVR, hid:USER &lt;br /&gt;
| NFC: near-field communication (amiibo), QTM: head tracking device (related to [[QTM_Services|QTM Services]])?, SPVR: system privileged?&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: green&amp;quot; | Yes&lt;br /&gt;
| [[PTM Services]]&lt;br /&gt;
| ptm:gets, ptm:play, ptm:s, ptm:sets, ptm:sysm, ptm:u&lt;br /&gt;
| gets: get system time, play: play history, s: system, sets: set system time, sysm: system menu (homemenu/testmenu), u: user&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: green&amp;quot; | Yes&lt;br /&gt;
| [[NWM Services]]&lt;br /&gt;
| nwm::CEC, nwm::EXT, nwm::INF, nwm::SAP, nwm::SOC, nwm::TST, nwm::UDS&lt;br /&gt;
| CEC: streetpass, EXT: ?, INF: infrastructure, SAP: ?, SOC: socket, UDS: local WLAN, TST: ?&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: green&amp;quot; | Yes&lt;br /&gt;
| [[HTTP Services]]&lt;br /&gt;
| http:C&lt;br /&gt;
| C: connection&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: green&amp;quot; | Yes&lt;br /&gt;
| [[SSL Services]]&lt;br /&gt;
| ssl:C&lt;br /&gt;
| C: connection&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: green&amp;quot; | Yes&lt;br /&gt;
| [[Socket Services]]&lt;br /&gt;
| soc:P, soc:U&lt;br /&gt;
| P: privileged, U: user&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: green&amp;quot; | Yes&lt;br /&gt;
| [[AC Services]]&lt;br /&gt;
| ac:i, ac:u&lt;br /&gt;
| i: internal, u: user&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: green&amp;quot; | Yes&lt;br /&gt;
| [[Friend Services]]&lt;br /&gt;
| frd:a, frd:n, frd:u&lt;br /&gt;
| a: admin, n: for [[NDM Services|ndm]], u: user&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: green&amp;quot; | Yes&lt;br /&gt;
| [[News Services]]&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;news:s, news:u&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
| s: system, u:user&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: green&amp;quot; | Yes&lt;br /&gt;
| [[PDN Services]]&lt;br /&gt;
| pdn:s, pdn:d, pdn:i, pdn:g, pdn:c&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: green&amp;quot; | Yes&lt;br /&gt;
| [[SPI Services]]&lt;br /&gt;
| SPI::NOR, SPI::CD2, SPI::CS2, SPI::CS3, SPI::DEF&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: green&amp;quot; | Yes&lt;br /&gt;
| [[Loader Services]]&lt;br /&gt;
| Loader&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: green&amp;quot; | Yes&lt;br /&gt;
| [[MCU Services]]&lt;br /&gt;
| mcu::CAM, mcu::GPU, mcu::HID, mcu::RTC, mcu::SND, mcu::NWM, mcu::HWC, mcu::PLS, mcu::CDC&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: green&amp;quot; | Yes&lt;br /&gt;
| [[MIC Services]]&lt;br /&gt;
| mic:u&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: green&amp;quot; | Yes&lt;br /&gt;
| [[ACT Services]]&lt;br /&gt;
| act:a, act:u&lt;br /&gt;
| a: admin, u: user&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: green&amp;quot; | Yes&lt;br /&gt;
| [[MP Services]]&lt;br /&gt;
| mp:u&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: green&amp;quot; | Yes&lt;br /&gt;
| [[NFC Services]]&lt;br /&gt;
| nfc:dev, nfc:m, nfc:p, nfc:r, nfc:s, nfc:u&lt;br /&gt;
| dev: developer, m: ? p: passthrough?, r: raw?, s: system, u: user&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: red&amp;quot; | No&lt;br /&gt;
| [[MVD Services]]&lt;br /&gt;
| &lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background: red&amp;quot; | No&lt;br /&gt;
| [[QTM Services]]&lt;br /&gt;
| &lt;br /&gt;
|&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
List of PXI services:&lt;br /&gt;
* [[Filesystem services PXI]]&lt;br /&gt;
* [[Process Services PXI]]&lt;br /&gt;
* [[Application Manager Services PXI]]&lt;br /&gt;
* [[Process Manager Services PXI]]&lt;br /&gt;
* [[Development Services PXI]]&lt;br /&gt;
* [[Gamecard Services PXI]]&lt;br /&gt;
* [[Legacy FIRM PXI]] (TWL_FIRM/AGB_FIRM)&lt;br /&gt;
&lt;br /&gt;
List of ports:&lt;br /&gt;
* [[ErrDisp]]&lt;br /&gt;
* [[Services]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
See [[Error codes]].&lt;/div&gt;</summary>
		<author><name>Yellows8</name></author>
	</entry>
	<entry>
		<id>https://www.3dbrew.org/w/index.php?title=NFC_Services&amp;diff=19665</id>
		<title>NFC Services</title>
		<link rel="alternate" type="text/html" href="https://www.3dbrew.org/w/index.php?title=NFC_Services&amp;diff=19665"/>
		<updated>2017-02-17T18:14:07Z</updated>

		<summary type="html">&lt;p&gt;Yellows8: /* NFC service &amp;quot;nfc:p&amp;quot; */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The New3DS NFC module was added with [[8.1.0-0_New3DS]]. The Old3DS NFC module was added with [[9.3.0-21|9.3.0-X]].&lt;br /&gt;
&lt;br /&gt;
On New3DS NFC module uses the [[I2C_Registers|NFC]] hardware via the [[I2C_Services|i2c::NFC]] and [[GPIO_Services|gpio:NFC]] services. On Old3DS NFC module communicates with a NFC peripheral via IR with the IRUSER service.&lt;br /&gt;
&lt;br /&gt;
Only 1 session can be open for all of these services combined. Commands for each service are handled by the main-thread.&lt;br /&gt;
&lt;br /&gt;
=NFC services=&lt;br /&gt;
==NFC user service &amp;quot;nfc:u&amp;quot;==&lt;br /&gt;
This is the NFC service used by regular applications, for the NFP API.&lt;br /&gt;
&lt;br /&gt;
This was first seen in the Super Smash Bros eShop demo (only in the exheader, the demo doesn&#039;t actually use it), but at that time no system-module was available for NFC on CDN. The first regular application to use this service was Super Smash Bros, with the v1.0.5 game-update, which used the new 9.3.0-X command set.&lt;br /&gt;
&lt;br /&gt;
==NFC management service &amp;quot;nfc:m&amp;quot;==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Command Header&lt;br /&gt;
!  Available since system-version&lt;br /&gt;
!  Name&lt;br /&gt;
!  Input&lt;br /&gt;
!  Output&lt;br /&gt;
!  Notes&lt;br /&gt;
|-&lt;br /&gt;
| 0x040100C2&lt;br /&gt;
| Unknown, &amp;lt;[[9.3.0-21|9.3.0-X]]&lt;br /&gt;
| ???&lt;br /&gt;
| u32 unknownA, u32 unknownB, u32 unknownC, u32 (sizeof(*buffer) &amp;lt;&amp;lt; 14 &amp;lt;nowiki&amp;gt;|&amp;lt;/nowiki&amp;gt; 0x402), void * buffer&lt;br /&gt;
| s32 result&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| 0x04020000&lt;br /&gt;
| [[9.3.0-21|9.3.0-X]]&lt;br /&gt;
| ???&lt;br /&gt;
| void&lt;br /&gt;
| s32 result, u32 unknownA[16]&lt;br /&gt;
| Output seems to be a struct&lt;br /&gt;
|-&lt;br /&gt;
| 0x04030000&lt;br /&gt;
| [[9.3.0-21|9.3.0-X]]&lt;br /&gt;
| ???&lt;br /&gt;
| void&lt;br /&gt;
| s32 result, u32 unknownA[41]&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| 0x04040A40&lt;br /&gt;
| [[9.3.0-21|9.3.0-X]]&lt;br /&gt;
| [[NFCM:SetAmiiboSettings|SetAmiiboSettings]]&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| 0x04060000&lt;br /&gt;
| [[9.3.0-21|9.3.0-X]]&lt;br /&gt;
| ???&lt;br /&gt;
| void&lt;br /&gt;
| s32 result&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| 0x04070000&lt;br /&gt;
| [[9.3.0-21|9.3.0-X]]&lt;br /&gt;
| ???&lt;br /&gt;
| void&lt;br /&gt;
| s32 result, u32 unknownA&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| 0x04080000&lt;br /&gt;
| [[9.3.0-21|9.3.0-X]]&lt;br /&gt;
| ???&lt;br /&gt;
| void&lt;br /&gt;
| s32 result, u32 unknownA&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| 0x040C0000&lt;br /&gt;
| [[9.3.0-21|9.3.0-X]]&lt;br /&gt;
| ?&lt;br /&gt;
| None&lt;br /&gt;
| s32 result&lt;br /&gt;
| Among other things, this will eventually call the savedata writing code referenced in the below savedata section.&lt;br /&gt;
|-&lt;br /&gt;
| 0x040D0000&lt;br /&gt;
| [[9.3.0-21|9.3.0-X]]&lt;br /&gt;
| ???&lt;br /&gt;
| void&lt;br /&gt;
| s32 result&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| 0x040E0000&lt;br /&gt;
| [[9.3.0-21|9.3.0-X]]&lt;br /&gt;
| ???&lt;br /&gt;
| void&lt;br /&gt;
| s32 result, u32 unknownA, u32 unknownB&lt;br /&gt;
| Again, amiibo applet ignores value unknownA.&lt;br /&gt;
|-&lt;br /&gt;
| 0x040F0000&lt;br /&gt;
| [[9.3.0-21|9.3.0-X]]&lt;br /&gt;
| ???&lt;br /&gt;
| void&lt;br /&gt;
| s32 result, u32 unknownA, u32 unknownB&lt;br /&gt;
|&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
This is used by the [[amiibo Settings]] applet. This service has the above commands, in addition to the command-set listed below.&lt;br /&gt;
&lt;br /&gt;
==NFC development service &amp;quot;nfc:dev&amp;quot;==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Command header&lt;br /&gt;
!  Available since system-version&lt;br /&gt;
!  Description&lt;br /&gt;
|-&lt;br /&gt;
| 0x00110100&lt;br /&gt;
| &lt;br /&gt;
| [[NFCDEV:ReadRawPages|ReadRawPages]]&lt;br /&gt;
|-&lt;br /&gt;
| 0x001200C0&lt;br /&gt;
| &lt;br /&gt;
| [[NFCDEV:WriteRawPage|WriteRawPage]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Some of these commands seems to be intended for use only on dev-units.&lt;br /&gt;
&lt;br /&gt;
Unlike the New3DS NFC-module, at least some of these commands are stubbed in the Old3DS NFC-module(only returns an error).&lt;br /&gt;
&lt;br /&gt;
==NFC service &amp;quot;nfc:p&amp;quot;==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Command header&lt;br /&gt;
!  Available since system-version&lt;br /&gt;
!  Description&lt;br /&gt;
|-&lt;br /&gt;
| 0x00010000&lt;br /&gt;
| &lt;br /&gt;
| Initialize&lt;br /&gt;
|-&lt;br /&gt;
| 0x00020000&lt;br /&gt;
| &lt;br /&gt;
| Shutdown&lt;br /&gt;
|-&lt;br /&gt;
| 0x00030080&lt;br /&gt;
| &lt;br /&gt;
| (unk0, unk1) ?&lt;br /&gt;
|-&lt;br /&gt;
| 0x00040000&lt;br /&gt;
| &lt;br /&gt;
| ?&lt;br /&gt;
|-&lt;br /&gt;
| 0x000500C2&lt;br /&gt;
| &lt;br /&gt;
| [[NFCP:SendTagCommand|SendTagCommand]]&lt;br /&gt;
|-&lt;br /&gt;
| 0x00060000&lt;br /&gt;
| &lt;br /&gt;
| GetTagInfo&lt;br /&gt;
|-&lt;br /&gt;
| 0x00070000&lt;br /&gt;
| &lt;br /&gt;
| GetTagState maybe? Writes an output value to cmdreply[2].&lt;br /&gt;
|-&lt;br /&gt;
| 0x00080000&lt;br /&gt;
| &lt;br /&gt;
| Writes a handle to cmdreply[3].&lt;br /&gt;
|-&lt;br /&gt;
| 0x00090000&lt;br /&gt;
| &lt;br /&gt;
| Writes a handle to cmdreply[3].&lt;br /&gt;
|-&lt;br /&gt;
| 0x000A0000&lt;br /&gt;
| &lt;br /&gt;
| Unknown. Writes an output value to cmdreply[2].&lt;br /&gt;
|-&lt;br /&gt;
| 0x000B0000&lt;br /&gt;
| &lt;br /&gt;
| Unknown. Writes 0x60-bytes of output starting at cmdreply[2]. u16 +0 is the size of the data at +4, +2 is not initialized, u8 +3 is loaded from state, u32 +0x2C is loaded from state, and the data at +4 with the previously mentioned size is copied from state.&lt;br /&gt;
|-&lt;br /&gt;
| 0x000C0040&lt;br /&gt;
| &lt;br /&gt;
| (u32 outputsize) Writes output to static_buf_id=0, outputsize 1 is used when it&#039;s &amp;gt;=1.&lt;br /&gt;
|-&lt;br /&gt;
| 0x000D0040&lt;br /&gt;
| &lt;br /&gt;
| (u32 outputsize) Writes output to static_buf_id=0, outputsize 1 is used when it&#039;s &amp;gt;=1.&lt;br /&gt;
|-&lt;br /&gt;
| 0x000E0080&lt;br /&gt;
| &lt;br /&gt;
| (u8 unk, u32 outputsize) Writes output to static_buf_id=0, outputsize 2 is used when it&#039;s &amp;gt;=2.&lt;br /&gt;
|-&lt;br /&gt;
| 0x000F0040&lt;br /&gt;
| &lt;br /&gt;
| (u32 outputsize) Writes output to static_buf_id=0, outputsize 2 is used when it&#039;s &amp;gt;=2.&lt;br /&gt;
|-&lt;br /&gt;
| 0x00100000&lt;br /&gt;
| &lt;br /&gt;
| Unknown.&lt;br /&gt;
|-&lt;br /&gt;
| 0x00110000&lt;br /&gt;
| &lt;br /&gt;
| Unknown.&lt;br /&gt;
|-&lt;br /&gt;
| 0x00120000&lt;br /&gt;
| &lt;br /&gt;
| Unknown. Writes an output u32 to cmdreply[2].&lt;br /&gt;
|-&lt;br /&gt;
| 0x00130000&lt;br /&gt;
| &lt;br /&gt;
| Unknown. Writes an output u32 to cmdreply[2].&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
This service is used by the mint library-applet, starting with [[9.3.0-21]]. This service was added to the mint service-access-control list with [[9.0.0-20]].&lt;br /&gt;
The mint process is the only known eShop-related process using this service([[eShop]]-application and NIM-module don&#039;t use it). Used for NFC card payments in JPN [[eShop]](the v16384 mint title is &#039;&#039;identical&#039;&#039; for USA/JPN besides programIDs in the NCCH header/exheader).&lt;br /&gt;
&lt;br /&gt;
JPN eShop game &amp;quot;Megami Meguri&amp;quot; uses these same JPN NFC cards. The only accessible NFC service is nfcu.&lt;br /&gt;
&lt;br /&gt;
==NFC service &amp;quot;nfc:r&amp;quot;==&lt;br /&gt;
This service has no known use.&lt;br /&gt;
&lt;br /&gt;
==NFC service &amp;quot;nfc:s&amp;quot;==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Command header&lt;br /&gt;
!  Available since system-version&lt;br /&gt;
!  Description&lt;br /&gt;
|-&lt;br /&gt;
| 0x00130102&lt;br /&gt;
| &lt;br /&gt;
| [[NFCS:SendTagCommand|SendTagCommand]]&lt;br /&gt;
|-&lt;br /&gt;
| 0x00230000&lt;br /&gt;
| &lt;br /&gt;
| This writes the following command request data to [[I2C_Registers|I2C]], without reading any response: 10 20 00 01 01.&lt;br /&gt;
|-&lt;br /&gt;
| 0x00240000&lt;br /&gt;
| &lt;br /&gt;
| This writes the following command request data to [[I2C_Registers|I2C]], without reading any response: 10 40 00 03 00 0F 01.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
This service has no known use.&lt;br /&gt;
&lt;br /&gt;
Unlike the New3DS NFC-module, at least some of these commands are stubbed in the Old3DS NFC-module(only returns an error).&lt;br /&gt;
&lt;br /&gt;
=&amp;quot;nfc:u&amp;quot; and &amp;quot;nfc:m&amp;quot; command set=&lt;br /&gt;
There are at least two different revisions of the NFC module. First version was introduced on New3DS only with firmware [[8.1.0-0_New3DS]]. Second version made its appearance with [[9.3.0-21|9.3.0-X]], on both Old3DS and New3DS.&lt;br /&gt;
&lt;br /&gt;
These two versions are not interchangeable and not compatible, since the newer version uses a different command set and has no implemented commands from the older version. This does not introduce compatibility problems since no retail software used the NFC module, before the system titles added with [[9.3.0-21]] which use NFC.&lt;br /&gt;
&lt;br /&gt;
==9.3.0-X==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Command Header&lt;br /&gt;
!  Available since system-version&lt;br /&gt;
!  Name&lt;br /&gt;
!  Input&lt;br /&gt;
!  Output&lt;br /&gt;
!  Notes&lt;br /&gt;
|-&lt;br /&gt;
| 0x00010040&lt;br /&gt;
| &lt;br /&gt;
| [[NFC:Initialize|Initialize]]&lt;br /&gt;
| u8 inputval&lt;br /&gt;
| s32 result&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| 0x00020040&lt;br /&gt;
| &lt;br /&gt;
| [[NFC:Shutdown|Shutdown]]&lt;br /&gt;
| u8 inputval&lt;br /&gt;
| s32 result&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| 0x00030000&lt;br /&gt;
| &lt;br /&gt;
| [[NFC:StartCommunication|StartCommunication]]&lt;br /&gt;
| void&lt;br /&gt;
| s32 result&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| 0x00040000&lt;br /&gt;
| &lt;br /&gt;
| [[NFC:StopCommunication|StopCommunication]]&lt;br /&gt;
| void&lt;br /&gt;
| s32 result&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| 0x00050040&lt;br /&gt;
| &lt;br /&gt;
| [[NFC:StartTagScanning|StartTagScanning]]&lt;br /&gt;
| u16 inval&lt;br /&gt;
| s32 result&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| 0x00060000&lt;br /&gt;
| &lt;br /&gt;
| [[NFC:StopTagScanning|StopTagScanning]]&lt;br /&gt;
| void&lt;br /&gt;
| s32 result&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| 0x00070000&lt;br /&gt;
| &lt;br /&gt;
| [[NFC:LoadAmiiboData|LoadAmiiboData]]&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| 0x00080000&lt;br /&gt;
| &lt;br /&gt;
| [[NFC:ResetTagScanState|ResetTagScanState]]&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| 0x00090002&lt;br /&gt;
| &lt;br /&gt;
| [[NFC:UpdateStoredAmiiboData|UpdateStoredAmiiboData]]&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| 0x000A0000&lt;br /&gt;
| &lt;br /&gt;
| ???&lt;br /&gt;
| void&lt;br /&gt;
| s32 result&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| 0x000B0000&lt;br /&gt;
| &lt;br /&gt;
| GetTagInRangeEvent(?)&lt;br /&gt;
| void&lt;br /&gt;
| s32 result, u32 copy handle descriptor, Handle event&lt;br /&gt;
| amiibo applet ignores value &#039;descriptor&#039;. It doesn&#039;t even read it from the command buffer.&lt;br /&gt;
|-&lt;br /&gt;
| 0x000C0000&lt;br /&gt;
| &lt;br /&gt;
| GetTagOutOfRangeEvent(?)&lt;br /&gt;
| void&lt;br /&gt;
| s32 result, u32 copy handle descriptor, Handle event&lt;br /&gt;
| amiibo applet also ignores value &#039;descriptor&#039; for this command.&lt;br /&gt;
|-&lt;br /&gt;
| 0x000D0000&lt;br /&gt;
| &lt;br /&gt;
| [[NFC:GetTagState|GetTagState]]&lt;br /&gt;
| void&lt;br /&gt;
| s32 result, u8 outval&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| 0x000F0000&lt;br /&gt;
| &lt;br /&gt;
| [[NFC:CommunicationGetStatus|CommunicationGetStatus]]&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| 0x00100000&lt;br /&gt;
| &lt;br /&gt;
| [[NFC:GetTagInfo2|GetTagInfo2]]&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| 0x00110000&lt;br /&gt;
| &lt;br /&gt;
| [[NFC:GetTagInfo|GetTagInfo]]&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| 0x00120000&lt;br /&gt;
| &lt;br /&gt;
| [[NFC:CommunicationGetResult|CommunicationGetResult]]&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| 0x00130040&lt;br /&gt;
| &lt;br /&gt;
| [[NFC:OpenAppData|OpenAppData]]&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| 0x00140384&lt;br /&gt;
| &lt;br /&gt;
| [[NFC:InitializeWriteAppData|InitializeWriteAppData]]&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| 0x00150040&lt;br /&gt;
| &lt;br /&gt;
| [[NFC:ReadAppData|ReadAppData]]&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| 0x00160242&lt;br /&gt;
| &lt;br /&gt;
| [[NFC:WriteAppData|WriteAppData]]&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| 0x00170000&lt;br /&gt;
| &lt;br /&gt;
| [[NFC:GetAmiiboSettings|GetAmiiboSettings]]&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| 0x00180000&lt;br /&gt;
| &lt;br /&gt;
| [[NFC:GetAmiiboConfig|GetAmiiboConfig]]&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| 0x00190000&lt;br /&gt;
| &lt;br /&gt;
| [[NFC:GetAppDataInitStruct|GetAppDataInitStruct]]&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| 0x001A0000&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| None&lt;br /&gt;
| No additional output.&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| 0x001B0000&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| None&lt;br /&gt;
| 0x36-byte output structure starting at cmdreply[2].&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| 0x001C0040&lt;br /&gt;
| [[9.6.0-24|9.6.0-X]]&lt;br /&gt;
| &lt;br /&gt;
| u8 inputval&lt;br /&gt;
| No additional output.&lt;br /&gt;
| ?&lt;br /&gt;
|-&lt;br /&gt;
| 0x001D0040&lt;br /&gt;
| [[9.6.0-24|9.6.0-X]]&lt;br /&gt;
| &lt;br /&gt;
| u32 inputval&lt;br /&gt;
| No additional output.&lt;br /&gt;
| ?&lt;br /&gt;
|-&lt;br /&gt;
| 0x001E0040&lt;br /&gt;
| [[9.6.0-24|9.6.0-X]]&lt;br /&gt;
| &lt;br /&gt;
| u8 inputval&lt;br /&gt;
| u8 outval at cmdreply[2].&lt;br /&gt;
| ?&lt;br /&gt;
|-&lt;br /&gt;
| 0x001F0080&lt;br /&gt;
| [[10.0.0-27|10.0.0-X]]&lt;br /&gt;
| [[NFC:StartOtherTagScanning|StartOtherTagScanning]]&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| Used by JPN eShop app &amp;quot;Megami Meguri&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
| 0x00200102&lt;br /&gt;
| [[10.0.0-27|10.0.0-X]]&lt;br /&gt;
| [[NFC:SendTagCommand|SendTagCommand]]&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| 0x00210000&lt;br /&gt;
| [[10.0.0-27|10.0.0-X]]&lt;br /&gt;
| ?&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| Used by JPN eShop app &amp;quot;Megami Meguri&amp;quot;. This can only be used when [[NFC:Initialize|initialized]] with type3, and when the [[NFC:GetTagState|TagState]] is 3.&lt;br /&gt;
|-&lt;br /&gt;
| 0x00220000&lt;br /&gt;
| [[10.0.0-27|10.0.0-X]]&lt;br /&gt;
| ?&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| This can only be used when [[NFC:Initialize|initialized]] with type3, and when the [[NFC:GetTagState|TagState]] is 3.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Pre-9.3.0-X==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Pre-9.3.0-X command header&lt;br /&gt;
!  Command header starting with 9.3.0-X&lt;br /&gt;
!  Available since system-version&lt;br /&gt;
!  Description&lt;br /&gt;
|-&lt;br /&gt;
| 0x00010000&lt;br /&gt;
| ?&lt;br /&gt;
| [[8.1.0-0_New3DS]]&lt;br /&gt;
| Initialize&lt;br /&gt;
|-&lt;br /&gt;
| 0x00020000&lt;br /&gt;
| ?&lt;br /&gt;
| [[8.1.0-0_New3DS]]&lt;br /&gt;
| Shutdown&lt;br /&gt;
|-&lt;br /&gt;
| 0x00030000&lt;br /&gt;
| ?&lt;br /&gt;
| [[8.1.0-0_New3DS]]&lt;br /&gt;
| GetNFCState. This writes an output u8 to cmdreply[2]: 0 = not initialized, 1 = just initialized, 5 = data transfer ready, ...&lt;br /&gt;
|-&lt;br /&gt;
| 0x00040000&lt;br /&gt;
| 0x000B0000&lt;br /&gt;
| [[8.1.0-0_New3DS]]&lt;br /&gt;
| This writes an output handle to cmdreply[3].&lt;br /&gt;
|-&lt;br /&gt;
| 0x00050000&lt;br /&gt;
| 0x000C0000&lt;br /&gt;
| [[8.1.0-0_New3DS]]&lt;br /&gt;
| This writes an output handle to cmdreply[3].&lt;br /&gt;
|-&lt;br /&gt;
| 0x00060040&lt;br /&gt;
| ?&lt;br /&gt;
| [[8.1.0-0_New3DS]]&lt;br /&gt;
| (u8 input)&lt;br /&gt;
|-&lt;br /&gt;
| 0x00070000&lt;br /&gt;
| ?&lt;br /&gt;
| [[8.1.0-0_New3DS]]&lt;br /&gt;
| The user process must setup the output-buffer hdr+ptr data @ TLS+0x180 when using this. cmdreply[2] = actual output data size?&lt;br /&gt;
|-&lt;br /&gt;
| 0x00080100&lt;br /&gt;
| ?&lt;br /&gt;
| [[8.1.0-0_New3DS]]&lt;br /&gt;
| (&amp;lt;0x10-bytes starting at cmdreq[1]&amp;gt;)&lt;br /&gt;
|-&lt;br /&gt;
| 0x00090000&lt;br /&gt;
| ?&lt;br /&gt;
| [[8.1.0-0_New3DS]]&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| 0x000A0000&lt;br /&gt;
| ?&lt;br /&gt;
| [[8.1.0-0_New3DS]]&lt;br /&gt;
| The user process must setup the output-buffer hdr+ptr data @ TLS+0x180 when using this.&lt;br /&gt;
|-&lt;br /&gt;
| 0x000B0042&lt;br /&gt;
| ?&lt;br /&gt;
| [[8.1.0-0_New3DS]]&lt;br /&gt;
| (u32 size, ((Size&amp;lt;&amp;lt;14) &amp;lt;nowiki&amp;gt;|&amp;lt;/nowiki&amp;gt; 2), inbufptr)&lt;br /&gt;
|-&lt;br /&gt;
| 0x000C0044&lt;br /&gt;
| ?&lt;br /&gt;
| [[8.1.0-0_New3DS]]&lt;br /&gt;
| (u32 size, 0x20, &amp;lt;procid set by kernel&amp;gt;, ((Size&amp;lt;&amp;lt;14) &amp;lt;nowiki&amp;gt;|&amp;lt;/nowiki&amp;gt; 0x402), inbufptr)&lt;br /&gt;
|-&lt;br /&gt;
| 0x000D0040&lt;br /&gt;
| ?&lt;br /&gt;
| [[8.1.0-0_New3DS]]&lt;br /&gt;
| (u16 in)&lt;br /&gt;
|-&lt;br /&gt;
| 0x000E0000&lt;br /&gt;
| ?&lt;br /&gt;
| [[8.1.0-0_New3DS]]&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| 0x000F00C2&lt;br /&gt;
| ?&lt;br /&gt;
| [[8.1.0-0_New3DS]]&lt;br /&gt;
| (u32 unk0, u32 unk1, u32 unk2, ((Size&amp;lt;&amp;lt;14) &amp;lt;nowiki&amp;gt;|&amp;lt;/nowiki&amp;gt; 0x802), inbufptr)&lt;br /&gt;
|-&lt;br /&gt;
| 0x00100040&lt;br /&gt;
| ?&lt;br /&gt;
| [[8.1.0-0_New3DS]]&lt;br /&gt;
| (u32 in)&lt;br /&gt;
|-&lt;br /&gt;
| 0x00110040&lt;br /&gt;
| ?&lt;br /&gt;
| [[8.1.0-0_New3DS]]&lt;br /&gt;
| (u32 in)&lt;br /&gt;
|-&lt;br /&gt;
| 0x00120040&lt;br /&gt;
| ?&lt;br /&gt;
| [[8.1.0-0_New3DS]]&lt;br /&gt;
| (u32 in)&lt;br /&gt;
|-&lt;br /&gt;
| 0x00130000&lt;br /&gt;
| ?&lt;br /&gt;
| [[8.1.0-0_New3DS]]&lt;br /&gt;
| Writes an output u32 to cmdreply[2].&lt;br /&gt;
|-&lt;br /&gt;
| 0x00140000&lt;br /&gt;
| ?&lt;br /&gt;
| [[8.1.0-0_New3DS]]&lt;br /&gt;
| This writes an output 0x30-byte struct starting at cmdreply[2].&lt;br /&gt;
|-&lt;br /&gt;
| 0x00150000&lt;br /&gt;
| 0x00110000&lt;br /&gt;
| [[8.1.0-0_New3DS]]&lt;br /&gt;
| This writes an output 0x2C-byte struct starting at cmdreply[2].&lt;br /&gt;
|-&lt;br /&gt;
| 0x00160000&lt;br /&gt;
| ?&lt;br /&gt;
| [[8.1.0-0_New3DS]]&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| 0x00170000&lt;br /&gt;
| ?&lt;br /&gt;
| [[8.1.0-0_New3DS]]&lt;br /&gt;
| &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=NFC services error codes=&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Error-code&lt;br /&gt;
!  Description&lt;br /&gt;
|-&lt;br /&gt;
| 0xc8a17600&lt;br /&gt;
| The current NFC tag [[NFC:GetTagState|state]], or other NFC state, is invalid with the NFC command which was used.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=NFC module savedata=&lt;br /&gt;
* &amp;quot;/nfp_backup.dat&amp;quot; This contains raw data from the [[Amiibo]] NFC data pages. The filesize is 0x001fbd20-bytes. Certain service cmds will trigger writing to this savedata. This entire file is read during [[amiibo Settings]] startup, it&#039;s unknown what command(s) actually triggers that. It seems the Amiibo data here is updated each time the Amiibo NFC data is updated, and read each time the Amiibo NFC data is read. Data is written into this savedata when the Amiibo was never scanned on this system before. The data here is probably also updated when the scanned Amiibo NFC data doesn&#039;t match the data stored here.&lt;br /&gt;
&lt;br /&gt;
During NFC writing, the NFC data being written can become corrupted if the Amiibo figure is moved outside of range during writing. When this happens, this nfp_backup data can be used to restore a previous version of that data prior to the last failed write.&lt;br /&gt;
&lt;br /&gt;
==nfp_backup.dat structure==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Offset&lt;br /&gt;
!  Size&lt;br /&gt;
!  Description&lt;br /&gt;
|-&lt;br /&gt;
| 0x0&lt;br /&gt;
| 0x20&lt;br /&gt;
| Header&lt;br /&gt;
|-&lt;br /&gt;
| 0x20&lt;br /&gt;
| 0x800&lt;br /&gt;
| Amiibo data table header&lt;br /&gt;
|-&lt;br /&gt;
| 0x7D20&lt;br /&gt;
| 0x21C&lt;br /&gt;
| The NFC data for the first stored Amiibo is located here. This is the entire raw data from all 0x87 NFC data pages.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Header structure===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Offset&lt;br /&gt;
!  Size&lt;br /&gt;
!  Description&lt;br /&gt;
|-&lt;br /&gt;
| 0x0&lt;br /&gt;
| 0x8&lt;br /&gt;
| Unknown, normally the following data? &amp;quot;00 00 02 00 02 00 00 00&amp;quot; (as little-endian u32s: 0x20000, 0x2)&lt;br /&gt;
|-&lt;br /&gt;
| 0x8&lt;br /&gt;
| 0x14&lt;br /&gt;
| Unknown, normally all-zero?&lt;br /&gt;
|-&lt;br /&gt;
| 0x1C&lt;br /&gt;
| 0x4&lt;br /&gt;
| Unknown. CRC32 / checksum maybe?&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Amiibo data table header===&lt;br /&gt;
This is an array with 0x40(?) entries, where the size of each entry is 0x20-bytes. Entry structure:&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Offset&lt;br /&gt;
!  Size&lt;br /&gt;
!  Description&lt;br /&gt;
|-&lt;br /&gt;
| 0x0&lt;br /&gt;
| 0x8&lt;br /&gt;
| First 8-bytes from [[Amiibo]] NFC serial-number.&lt;br /&gt;
|-&lt;br /&gt;
| 0x8&lt;br /&gt;
| 0x3&lt;br /&gt;
| Unknown, normally zero?&lt;br /&gt;
|-&lt;br /&gt;
| 0xB&lt;br /&gt;
| 0x2&lt;br /&gt;
| u16 little-endian date value for when this Amiibo was initially written into this savedata, with the same format from [[Amiibo|here]].&lt;br /&gt;
|-&lt;br /&gt;
| 0xD&lt;br /&gt;
| 0xF&lt;br /&gt;
| Unknown, normally zero?&lt;br /&gt;
|-&lt;br /&gt;
| 0x1C&lt;br /&gt;
| 0x4&lt;br /&gt;
| Unknown. CRC32 / checksum maybe?&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=NFC module versions=&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  System version&lt;br /&gt;
!  New3DS title-version&lt;br /&gt;
!  Old3DS title-version&lt;br /&gt;
!  Changes&lt;br /&gt;
|-&lt;br /&gt;
| [[9.6.0-24|9.6.0-X]]&lt;br /&gt;
| v4102&lt;br /&gt;
| v4106&lt;br /&gt;
| New3DS and Old3DS: the only changes regarding new commands is that new commands were added for the nfcu/nfcm command-set and new commands for an unknown cmd-handler were added. It&#039;s unknown if there&#039;s other changes.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=Errors=&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Error code&lt;br /&gt;
!  Description&lt;br /&gt;
|-&lt;br /&gt;
| 0xC8A17600&lt;br /&gt;
| This is returned when the current state is invalid for this command.&lt;br /&gt;
|-&lt;br /&gt;
| 0xC8A17620&lt;br /&gt;
| This is returned by [[NFC:OpenAppData]] when the appdata is uninitialized since [[NFC:InitializeWriteAppData]] wasn&#039;t used previously.&lt;br /&gt;
|-&lt;br /&gt;
| 0xC8A17628&lt;br /&gt;
| This is returned by [[NFC:GetAmiiboSettings]] when the amiibo wasn&#039;t setup by the amiibo Settings applet.&lt;br /&gt;
|-&lt;br /&gt;
| 0xC8A17638&lt;br /&gt;
| This is returned by [[NFC:OpenAppData]] when the input AppID doesn&#039;t match the actual Amiibo AppID.&lt;br /&gt;
|-&lt;br /&gt;
| 0xC8C1760C&lt;br /&gt;
| Returned for HMAC-hash mismatch(data corruption), with HMAC-calculation input_buffer_size=0x34.&lt;br /&gt;
|-&lt;br /&gt;
| 0xC8A17618&lt;br /&gt;
| HMAC-hash mismatch with input_buffer_size=0x1DF(see [[Amiibo|here]]).&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Yellows8</name></author>
	</entry>
	<entry>
		<id>https://www.3dbrew.org/w/index.php?title=NFC_Services&amp;diff=19664</id>
		<title>NFC Services</title>
		<link rel="alternate" type="text/html" href="https://www.3dbrew.org/w/index.php?title=NFC_Services&amp;diff=19664"/>
		<updated>2017-02-17T17:56:26Z</updated>

		<summary type="html">&lt;p&gt;Yellows8: /* NFC service &amp;quot;nfc:p&amp;quot; */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The New3DS NFC module was added with [[8.1.0-0_New3DS]]. The Old3DS NFC module was added with [[9.3.0-21|9.3.0-X]].&lt;br /&gt;
&lt;br /&gt;
On New3DS NFC module uses the [[I2C_Registers|NFC]] hardware via the [[I2C_Services|i2c::NFC]] and [[GPIO_Services|gpio:NFC]] services. On Old3DS NFC module communicates with a NFC peripheral via IR with the IRUSER service.&lt;br /&gt;
&lt;br /&gt;
Only 1 session can be open for all of these services combined. Commands for each service are handled by the main-thread.&lt;br /&gt;
&lt;br /&gt;
=NFC services=&lt;br /&gt;
==NFC user service &amp;quot;nfc:u&amp;quot;==&lt;br /&gt;
This is the NFC service used by regular applications, for the NFP API.&lt;br /&gt;
&lt;br /&gt;
This was first seen in the Super Smash Bros eShop demo (only in the exheader, the demo doesn&#039;t actually use it), but at that time no system-module was available for NFC on CDN. The first regular application to use this service was Super Smash Bros, with the v1.0.5 game-update, which used the new 9.3.0-X command set.&lt;br /&gt;
&lt;br /&gt;
==NFC management service &amp;quot;nfc:m&amp;quot;==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Command Header&lt;br /&gt;
!  Available since system-version&lt;br /&gt;
!  Name&lt;br /&gt;
!  Input&lt;br /&gt;
!  Output&lt;br /&gt;
!  Notes&lt;br /&gt;
|-&lt;br /&gt;
| 0x040100C2&lt;br /&gt;
| Unknown, &amp;lt;[[9.3.0-21|9.3.0-X]]&lt;br /&gt;
| ???&lt;br /&gt;
| u32 unknownA, u32 unknownB, u32 unknownC, u32 (sizeof(*buffer) &amp;lt;&amp;lt; 14 &amp;lt;nowiki&amp;gt;|&amp;lt;/nowiki&amp;gt; 0x402), void * buffer&lt;br /&gt;
| s32 result&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| 0x04020000&lt;br /&gt;
| [[9.3.0-21|9.3.0-X]]&lt;br /&gt;
| ???&lt;br /&gt;
| void&lt;br /&gt;
| s32 result, u32 unknownA[16]&lt;br /&gt;
| Output seems to be a struct&lt;br /&gt;
|-&lt;br /&gt;
| 0x04030000&lt;br /&gt;
| [[9.3.0-21|9.3.0-X]]&lt;br /&gt;
| ???&lt;br /&gt;
| void&lt;br /&gt;
| s32 result, u32 unknownA[41]&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| 0x04040A40&lt;br /&gt;
| [[9.3.0-21|9.3.0-X]]&lt;br /&gt;
| [[NFCM:SetAmiiboSettings|SetAmiiboSettings]]&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| 0x04060000&lt;br /&gt;
| [[9.3.0-21|9.3.0-X]]&lt;br /&gt;
| ???&lt;br /&gt;
| void&lt;br /&gt;
| s32 result&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| 0x04070000&lt;br /&gt;
| [[9.3.0-21|9.3.0-X]]&lt;br /&gt;
| ???&lt;br /&gt;
| void&lt;br /&gt;
| s32 result, u32 unknownA&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| 0x04080000&lt;br /&gt;
| [[9.3.0-21|9.3.0-X]]&lt;br /&gt;
| ???&lt;br /&gt;
| void&lt;br /&gt;
| s32 result, u32 unknownA&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| 0x040C0000&lt;br /&gt;
| [[9.3.0-21|9.3.0-X]]&lt;br /&gt;
| ?&lt;br /&gt;
| None&lt;br /&gt;
| s32 result&lt;br /&gt;
| Among other things, this will eventually call the savedata writing code referenced in the below savedata section.&lt;br /&gt;
|-&lt;br /&gt;
| 0x040D0000&lt;br /&gt;
| [[9.3.0-21|9.3.0-X]]&lt;br /&gt;
| ???&lt;br /&gt;
| void&lt;br /&gt;
| s32 result&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| 0x040E0000&lt;br /&gt;
| [[9.3.0-21|9.3.0-X]]&lt;br /&gt;
| ???&lt;br /&gt;
| void&lt;br /&gt;
| s32 result, u32 unknownA, u32 unknownB&lt;br /&gt;
| Again, amiibo applet ignores value unknownA.&lt;br /&gt;
|-&lt;br /&gt;
| 0x040F0000&lt;br /&gt;
| [[9.3.0-21|9.3.0-X]]&lt;br /&gt;
| ???&lt;br /&gt;
| void&lt;br /&gt;
| s32 result, u32 unknownA, u32 unknownB&lt;br /&gt;
|&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
This is used by the [[amiibo Settings]] applet. This service has the above commands, in addition to the command-set listed below.&lt;br /&gt;
&lt;br /&gt;
==NFC development service &amp;quot;nfc:dev&amp;quot;==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Command header&lt;br /&gt;
!  Available since system-version&lt;br /&gt;
!  Description&lt;br /&gt;
|-&lt;br /&gt;
| 0x00110100&lt;br /&gt;
| &lt;br /&gt;
| [[NFCDEV:ReadRawPages|ReadRawPages]]&lt;br /&gt;
|-&lt;br /&gt;
| 0x001200C0&lt;br /&gt;
| &lt;br /&gt;
| [[NFCDEV:WriteRawPage|WriteRawPage]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Some of these commands seems to be intended for use only on dev-units.&lt;br /&gt;
&lt;br /&gt;
Unlike the New3DS NFC-module, at least some of these commands are stubbed in the Old3DS NFC-module(only returns an error).&lt;br /&gt;
&lt;br /&gt;
==NFC service &amp;quot;nfc:p&amp;quot;==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Command header&lt;br /&gt;
!  Available since system-version&lt;br /&gt;
!  Description&lt;br /&gt;
|-&lt;br /&gt;
| 0x00010000&lt;br /&gt;
| &lt;br /&gt;
| Initialize&lt;br /&gt;
|-&lt;br /&gt;
| 0x00020000&lt;br /&gt;
| &lt;br /&gt;
| Shutdown&lt;br /&gt;
|-&lt;br /&gt;
| 0x00030080&lt;br /&gt;
| &lt;br /&gt;
| (unk0, unk1) ?&lt;br /&gt;
|-&lt;br /&gt;
| 0x00040000&lt;br /&gt;
| &lt;br /&gt;
| ?&lt;br /&gt;
|-&lt;br /&gt;
| 0x000500C2&lt;br /&gt;
| &lt;br /&gt;
| [[NFCP:SendTagCommand|SendTagCommand]]&lt;br /&gt;
|-&lt;br /&gt;
| 0x00060000&lt;br /&gt;
| &lt;br /&gt;
| GetTagInfo&lt;br /&gt;
|-&lt;br /&gt;
| 0x00070000&lt;br /&gt;
| &lt;br /&gt;
| GetTagState maybe? Writes an output value to cmdreply[2].&lt;br /&gt;
|-&lt;br /&gt;
| 0x00080000&lt;br /&gt;
| &lt;br /&gt;
| Writes a handle to cmdreply[3].&lt;br /&gt;
|-&lt;br /&gt;
| 0x00090000&lt;br /&gt;
| &lt;br /&gt;
| Writes a handle to cmdreply[3].&lt;br /&gt;
|-&lt;br /&gt;
| 0x000A0000&lt;br /&gt;
| &lt;br /&gt;
| Unknown. Writes an output value to cmdreply[2].&lt;br /&gt;
|-&lt;br /&gt;
| 0x000B0000&lt;br /&gt;
| &lt;br /&gt;
| Unknown. Writes 0x60-bytes of output starting at cmdreply[2]. u16 +0 is the size of the data at +4, +2 is not initialized, u8 +3 is loaded from state, u32 +0x2C is loaded from state, and the data at +4 with the previously mentioned size is copied from state.&lt;br /&gt;
|-&lt;br /&gt;
| 0x000C0040&lt;br /&gt;
| &lt;br /&gt;
| (u32 outputsize) Writes output to static_buf_id=0, outputsize 1 is used when it&#039;s &amp;gt;=1.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
This service is used by the mint library-applet, starting with [[9.3.0-21]]. This service was added to the mint service-access-control list with [[9.0.0-20]].&lt;br /&gt;
The mint process is the only known eShop-related process using this service([[eShop]]-application and NIM-module don&#039;t use it). Used for NFC card payments in JPN [[eShop]](the v16384 mint title is &#039;&#039;identical&#039;&#039; for USA/JPN besides programIDs in the NCCH header/exheader).&lt;br /&gt;
&lt;br /&gt;
JPN eShop game &amp;quot;Megami Meguri&amp;quot; uses these same JPN NFC cards. The only accessible NFC service is nfcu.&lt;br /&gt;
&lt;br /&gt;
==NFC service &amp;quot;nfc:r&amp;quot;==&lt;br /&gt;
This service has no known use.&lt;br /&gt;
&lt;br /&gt;
==NFC service &amp;quot;nfc:s&amp;quot;==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Command header&lt;br /&gt;
!  Available since system-version&lt;br /&gt;
!  Description&lt;br /&gt;
|-&lt;br /&gt;
| 0x00130102&lt;br /&gt;
| &lt;br /&gt;
| [[NFCS:SendTagCommand|SendTagCommand]]&lt;br /&gt;
|-&lt;br /&gt;
| 0x00230000&lt;br /&gt;
| &lt;br /&gt;
| This writes the following command request data to [[I2C_Registers|I2C]], without reading any response: 10 20 00 01 01.&lt;br /&gt;
|-&lt;br /&gt;
| 0x00240000&lt;br /&gt;
| &lt;br /&gt;
| This writes the following command request data to [[I2C_Registers|I2C]], without reading any response: 10 40 00 03 00 0F 01.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
This service has no known use.&lt;br /&gt;
&lt;br /&gt;
Unlike the New3DS NFC-module, at least some of these commands are stubbed in the Old3DS NFC-module(only returns an error).&lt;br /&gt;
&lt;br /&gt;
=&amp;quot;nfc:u&amp;quot; and &amp;quot;nfc:m&amp;quot; command set=&lt;br /&gt;
There are at least two different revisions of the NFC module. First version was introduced on New3DS only with firmware [[8.1.0-0_New3DS]]. Second version made its appearance with [[9.3.0-21|9.3.0-X]], on both Old3DS and New3DS.&lt;br /&gt;
&lt;br /&gt;
These two versions are not interchangeable and not compatible, since the newer version uses a different command set and has no implemented commands from the older version. This does not introduce compatibility problems since no retail software used the NFC module, before the system titles added with [[9.3.0-21]] which use NFC.&lt;br /&gt;
&lt;br /&gt;
==9.3.0-X==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Command Header&lt;br /&gt;
!  Available since system-version&lt;br /&gt;
!  Name&lt;br /&gt;
!  Input&lt;br /&gt;
!  Output&lt;br /&gt;
!  Notes&lt;br /&gt;
|-&lt;br /&gt;
| 0x00010040&lt;br /&gt;
| &lt;br /&gt;
| [[NFC:Initialize|Initialize]]&lt;br /&gt;
| u8 inputval&lt;br /&gt;
| s32 result&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| 0x00020040&lt;br /&gt;
| &lt;br /&gt;
| [[NFC:Shutdown|Shutdown]]&lt;br /&gt;
| u8 inputval&lt;br /&gt;
| s32 result&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| 0x00030000&lt;br /&gt;
| &lt;br /&gt;
| [[NFC:StartCommunication|StartCommunication]]&lt;br /&gt;
| void&lt;br /&gt;
| s32 result&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| 0x00040000&lt;br /&gt;
| &lt;br /&gt;
| [[NFC:StopCommunication|StopCommunication]]&lt;br /&gt;
| void&lt;br /&gt;
| s32 result&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| 0x00050040&lt;br /&gt;
| &lt;br /&gt;
| [[NFC:StartTagScanning|StartTagScanning]]&lt;br /&gt;
| u16 inval&lt;br /&gt;
| s32 result&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| 0x00060000&lt;br /&gt;
| &lt;br /&gt;
| [[NFC:StopTagScanning|StopTagScanning]]&lt;br /&gt;
| void&lt;br /&gt;
| s32 result&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| 0x00070000&lt;br /&gt;
| &lt;br /&gt;
| [[NFC:LoadAmiiboData|LoadAmiiboData]]&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| 0x00080000&lt;br /&gt;
| &lt;br /&gt;
| [[NFC:ResetTagScanState|ResetTagScanState]]&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| 0x00090002&lt;br /&gt;
| &lt;br /&gt;
| [[NFC:UpdateStoredAmiiboData|UpdateStoredAmiiboData]]&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| 0x000A0000&lt;br /&gt;
| &lt;br /&gt;
| ???&lt;br /&gt;
| void&lt;br /&gt;
| s32 result&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| 0x000B0000&lt;br /&gt;
| &lt;br /&gt;
| GetTagInRangeEvent(?)&lt;br /&gt;
| void&lt;br /&gt;
| s32 result, u32 copy handle descriptor, Handle event&lt;br /&gt;
| amiibo applet ignores value &#039;descriptor&#039;. It doesn&#039;t even read it from the command buffer.&lt;br /&gt;
|-&lt;br /&gt;
| 0x000C0000&lt;br /&gt;
| &lt;br /&gt;
| GetTagOutOfRangeEvent(?)&lt;br /&gt;
| void&lt;br /&gt;
| s32 result, u32 copy handle descriptor, Handle event&lt;br /&gt;
| amiibo applet also ignores value &#039;descriptor&#039; for this command.&lt;br /&gt;
|-&lt;br /&gt;
| 0x000D0000&lt;br /&gt;
| &lt;br /&gt;
| [[NFC:GetTagState|GetTagState]]&lt;br /&gt;
| void&lt;br /&gt;
| s32 result, u8 outval&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| 0x000F0000&lt;br /&gt;
| &lt;br /&gt;
| [[NFC:CommunicationGetStatus|CommunicationGetStatus]]&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| 0x00100000&lt;br /&gt;
| &lt;br /&gt;
| [[NFC:GetTagInfo2|GetTagInfo2]]&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| 0x00110000&lt;br /&gt;
| &lt;br /&gt;
| [[NFC:GetTagInfo|GetTagInfo]]&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| 0x00120000&lt;br /&gt;
| &lt;br /&gt;
| [[NFC:CommunicationGetResult|CommunicationGetResult]]&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| 0x00130040&lt;br /&gt;
| &lt;br /&gt;
| [[NFC:OpenAppData|OpenAppData]]&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| 0x00140384&lt;br /&gt;
| &lt;br /&gt;
| [[NFC:InitializeWriteAppData|InitializeWriteAppData]]&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| 0x00150040&lt;br /&gt;
| &lt;br /&gt;
| [[NFC:ReadAppData|ReadAppData]]&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| 0x00160242&lt;br /&gt;
| &lt;br /&gt;
| [[NFC:WriteAppData|WriteAppData]]&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| 0x00170000&lt;br /&gt;
| &lt;br /&gt;
| [[NFC:GetAmiiboSettings|GetAmiiboSettings]]&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| 0x00180000&lt;br /&gt;
| &lt;br /&gt;
| [[NFC:GetAmiiboConfig|GetAmiiboConfig]]&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| 0x00190000&lt;br /&gt;
| &lt;br /&gt;
| [[NFC:GetAppDataInitStruct|GetAppDataInitStruct]]&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| 0x001A0000&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| None&lt;br /&gt;
| No additional output.&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| 0x001B0000&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| None&lt;br /&gt;
| 0x36-byte output structure starting at cmdreply[2].&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| 0x001C0040&lt;br /&gt;
| [[9.6.0-24|9.6.0-X]]&lt;br /&gt;
| &lt;br /&gt;
| u8 inputval&lt;br /&gt;
| No additional output.&lt;br /&gt;
| ?&lt;br /&gt;
|-&lt;br /&gt;
| 0x001D0040&lt;br /&gt;
| [[9.6.0-24|9.6.0-X]]&lt;br /&gt;
| &lt;br /&gt;
| u32 inputval&lt;br /&gt;
| No additional output.&lt;br /&gt;
| ?&lt;br /&gt;
|-&lt;br /&gt;
| 0x001E0040&lt;br /&gt;
| [[9.6.0-24|9.6.0-X]]&lt;br /&gt;
| &lt;br /&gt;
| u8 inputval&lt;br /&gt;
| u8 outval at cmdreply[2].&lt;br /&gt;
| ?&lt;br /&gt;
|-&lt;br /&gt;
| 0x001F0080&lt;br /&gt;
| [[10.0.0-27|10.0.0-X]]&lt;br /&gt;
| [[NFC:StartOtherTagScanning|StartOtherTagScanning]]&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| Used by JPN eShop app &amp;quot;Megami Meguri&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
| 0x00200102&lt;br /&gt;
| [[10.0.0-27|10.0.0-X]]&lt;br /&gt;
| [[NFC:SendTagCommand|SendTagCommand]]&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| 0x00210000&lt;br /&gt;
| [[10.0.0-27|10.0.0-X]]&lt;br /&gt;
| ?&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| Used by JPN eShop app &amp;quot;Megami Meguri&amp;quot;. This can only be used when [[NFC:Initialize|initialized]] with type3, and when the [[NFC:GetTagState|TagState]] is 3.&lt;br /&gt;
|-&lt;br /&gt;
| 0x00220000&lt;br /&gt;
| [[10.0.0-27|10.0.0-X]]&lt;br /&gt;
| ?&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| This can only be used when [[NFC:Initialize|initialized]] with type3, and when the [[NFC:GetTagState|TagState]] is 3.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Pre-9.3.0-X==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Pre-9.3.0-X command header&lt;br /&gt;
!  Command header starting with 9.3.0-X&lt;br /&gt;
!  Available since system-version&lt;br /&gt;
!  Description&lt;br /&gt;
|-&lt;br /&gt;
| 0x00010000&lt;br /&gt;
| ?&lt;br /&gt;
| [[8.1.0-0_New3DS]]&lt;br /&gt;
| Initialize&lt;br /&gt;
|-&lt;br /&gt;
| 0x00020000&lt;br /&gt;
| ?&lt;br /&gt;
| [[8.1.0-0_New3DS]]&lt;br /&gt;
| Shutdown&lt;br /&gt;
|-&lt;br /&gt;
| 0x00030000&lt;br /&gt;
| ?&lt;br /&gt;
| [[8.1.0-0_New3DS]]&lt;br /&gt;
| GetNFCState. This writes an output u8 to cmdreply[2]: 0 = not initialized, 1 = just initialized, 5 = data transfer ready, ...&lt;br /&gt;
|-&lt;br /&gt;
| 0x00040000&lt;br /&gt;
| 0x000B0000&lt;br /&gt;
| [[8.1.0-0_New3DS]]&lt;br /&gt;
| This writes an output handle to cmdreply[3].&lt;br /&gt;
|-&lt;br /&gt;
| 0x00050000&lt;br /&gt;
| 0x000C0000&lt;br /&gt;
| [[8.1.0-0_New3DS]]&lt;br /&gt;
| This writes an output handle to cmdreply[3].&lt;br /&gt;
|-&lt;br /&gt;
| 0x00060040&lt;br /&gt;
| ?&lt;br /&gt;
| [[8.1.0-0_New3DS]]&lt;br /&gt;
| (u8 input)&lt;br /&gt;
|-&lt;br /&gt;
| 0x00070000&lt;br /&gt;
| ?&lt;br /&gt;
| [[8.1.0-0_New3DS]]&lt;br /&gt;
| The user process must setup the output-buffer hdr+ptr data @ TLS+0x180 when using this. cmdreply[2] = actual output data size?&lt;br /&gt;
|-&lt;br /&gt;
| 0x00080100&lt;br /&gt;
| ?&lt;br /&gt;
| [[8.1.0-0_New3DS]]&lt;br /&gt;
| (&amp;lt;0x10-bytes starting at cmdreq[1]&amp;gt;)&lt;br /&gt;
|-&lt;br /&gt;
| 0x00090000&lt;br /&gt;
| ?&lt;br /&gt;
| [[8.1.0-0_New3DS]]&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| 0x000A0000&lt;br /&gt;
| ?&lt;br /&gt;
| [[8.1.0-0_New3DS]]&lt;br /&gt;
| The user process must setup the output-buffer hdr+ptr data @ TLS+0x180 when using this.&lt;br /&gt;
|-&lt;br /&gt;
| 0x000B0042&lt;br /&gt;
| ?&lt;br /&gt;
| [[8.1.0-0_New3DS]]&lt;br /&gt;
| (u32 size, ((Size&amp;lt;&amp;lt;14) &amp;lt;nowiki&amp;gt;|&amp;lt;/nowiki&amp;gt; 2), inbufptr)&lt;br /&gt;
|-&lt;br /&gt;
| 0x000C0044&lt;br /&gt;
| ?&lt;br /&gt;
| [[8.1.0-0_New3DS]]&lt;br /&gt;
| (u32 size, 0x20, &amp;lt;procid set by kernel&amp;gt;, ((Size&amp;lt;&amp;lt;14) &amp;lt;nowiki&amp;gt;|&amp;lt;/nowiki&amp;gt; 0x402), inbufptr)&lt;br /&gt;
|-&lt;br /&gt;
| 0x000D0040&lt;br /&gt;
| ?&lt;br /&gt;
| [[8.1.0-0_New3DS]]&lt;br /&gt;
| (u16 in)&lt;br /&gt;
|-&lt;br /&gt;
| 0x000E0000&lt;br /&gt;
| ?&lt;br /&gt;
| [[8.1.0-0_New3DS]]&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| 0x000F00C2&lt;br /&gt;
| ?&lt;br /&gt;
| [[8.1.0-0_New3DS]]&lt;br /&gt;
| (u32 unk0, u32 unk1, u32 unk2, ((Size&amp;lt;&amp;lt;14) &amp;lt;nowiki&amp;gt;|&amp;lt;/nowiki&amp;gt; 0x802), inbufptr)&lt;br /&gt;
|-&lt;br /&gt;
| 0x00100040&lt;br /&gt;
| ?&lt;br /&gt;
| [[8.1.0-0_New3DS]]&lt;br /&gt;
| (u32 in)&lt;br /&gt;
|-&lt;br /&gt;
| 0x00110040&lt;br /&gt;
| ?&lt;br /&gt;
| [[8.1.0-0_New3DS]]&lt;br /&gt;
| (u32 in)&lt;br /&gt;
|-&lt;br /&gt;
| 0x00120040&lt;br /&gt;
| ?&lt;br /&gt;
| [[8.1.0-0_New3DS]]&lt;br /&gt;
| (u32 in)&lt;br /&gt;
|-&lt;br /&gt;
| 0x00130000&lt;br /&gt;
| ?&lt;br /&gt;
| [[8.1.0-0_New3DS]]&lt;br /&gt;
| Writes an output u32 to cmdreply[2].&lt;br /&gt;
|-&lt;br /&gt;
| 0x00140000&lt;br /&gt;
| ?&lt;br /&gt;
| [[8.1.0-0_New3DS]]&lt;br /&gt;
| This writes an output 0x30-byte struct starting at cmdreply[2].&lt;br /&gt;
|-&lt;br /&gt;
| 0x00150000&lt;br /&gt;
| 0x00110000&lt;br /&gt;
| [[8.1.0-0_New3DS]]&lt;br /&gt;
| This writes an output 0x2C-byte struct starting at cmdreply[2].&lt;br /&gt;
|-&lt;br /&gt;
| 0x00160000&lt;br /&gt;
| ?&lt;br /&gt;
| [[8.1.0-0_New3DS]]&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| 0x00170000&lt;br /&gt;
| ?&lt;br /&gt;
| [[8.1.0-0_New3DS]]&lt;br /&gt;
| &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=NFC services error codes=&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Error-code&lt;br /&gt;
!  Description&lt;br /&gt;
|-&lt;br /&gt;
| 0xc8a17600&lt;br /&gt;
| The current NFC tag [[NFC:GetTagState|state]], or other NFC state, is invalid with the NFC command which was used.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=NFC module savedata=&lt;br /&gt;
* &amp;quot;/nfp_backup.dat&amp;quot; This contains raw data from the [[Amiibo]] NFC data pages. The filesize is 0x001fbd20-bytes. Certain service cmds will trigger writing to this savedata. This entire file is read during [[amiibo Settings]] startup, it&#039;s unknown what command(s) actually triggers that. It seems the Amiibo data here is updated each time the Amiibo NFC data is updated, and read each time the Amiibo NFC data is read. Data is written into this savedata when the Amiibo was never scanned on this system before. The data here is probably also updated when the scanned Amiibo NFC data doesn&#039;t match the data stored here.&lt;br /&gt;
&lt;br /&gt;
During NFC writing, the NFC data being written can become corrupted if the Amiibo figure is moved outside of range during writing. When this happens, this nfp_backup data can be used to restore a previous version of that data prior to the last failed write.&lt;br /&gt;
&lt;br /&gt;
==nfp_backup.dat structure==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Offset&lt;br /&gt;
!  Size&lt;br /&gt;
!  Description&lt;br /&gt;
|-&lt;br /&gt;
| 0x0&lt;br /&gt;
| 0x20&lt;br /&gt;
| Header&lt;br /&gt;
|-&lt;br /&gt;
| 0x20&lt;br /&gt;
| 0x800&lt;br /&gt;
| Amiibo data table header&lt;br /&gt;
|-&lt;br /&gt;
| 0x7D20&lt;br /&gt;
| 0x21C&lt;br /&gt;
| The NFC data for the first stored Amiibo is located here. This is the entire raw data from all 0x87 NFC data pages.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Header structure===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Offset&lt;br /&gt;
!  Size&lt;br /&gt;
!  Description&lt;br /&gt;
|-&lt;br /&gt;
| 0x0&lt;br /&gt;
| 0x8&lt;br /&gt;
| Unknown, normally the following data? &amp;quot;00 00 02 00 02 00 00 00&amp;quot; (as little-endian u32s: 0x20000, 0x2)&lt;br /&gt;
|-&lt;br /&gt;
| 0x8&lt;br /&gt;
| 0x14&lt;br /&gt;
| Unknown, normally all-zero?&lt;br /&gt;
|-&lt;br /&gt;
| 0x1C&lt;br /&gt;
| 0x4&lt;br /&gt;
| Unknown. CRC32 / checksum maybe?&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Amiibo data table header===&lt;br /&gt;
This is an array with 0x40(?) entries, where the size of each entry is 0x20-bytes. Entry structure:&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Offset&lt;br /&gt;
!  Size&lt;br /&gt;
!  Description&lt;br /&gt;
|-&lt;br /&gt;
| 0x0&lt;br /&gt;
| 0x8&lt;br /&gt;
| First 8-bytes from [[Amiibo]] NFC serial-number.&lt;br /&gt;
|-&lt;br /&gt;
| 0x8&lt;br /&gt;
| 0x3&lt;br /&gt;
| Unknown, normally zero?&lt;br /&gt;
|-&lt;br /&gt;
| 0xB&lt;br /&gt;
| 0x2&lt;br /&gt;
| u16 little-endian date value for when this Amiibo was initially written into this savedata, with the same format from [[Amiibo|here]].&lt;br /&gt;
|-&lt;br /&gt;
| 0xD&lt;br /&gt;
| 0xF&lt;br /&gt;
| Unknown, normally zero?&lt;br /&gt;
|-&lt;br /&gt;
| 0x1C&lt;br /&gt;
| 0x4&lt;br /&gt;
| Unknown. CRC32 / checksum maybe?&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=NFC module versions=&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  System version&lt;br /&gt;
!  New3DS title-version&lt;br /&gt;
!  Old3DS title-version&lt;br /&gt;
!  Changes&lt;br /&gt;
|-&lt;br /&gt;
| [[9.6.0-24|9.6.0-X]]&lt;br /&gt;
| v4102&lt;br /&gt;
| v4106&lt;br /&gt;
| New3DS and Old3DS: the only changes regarding new commands is that new commands were added for the nfcu/nfcm command-set and new commands for an unknown cmd-handler were added. It&#039;s unknown if there&#039;s other changes.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=Errors=&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Error code&lt;br /&gt;
!  Description&lt;br /&gt;
|-&lt;br /&gt;
| 0xC8A17600&lt;br /&gt;
| This is returned when the current state is invalid for this command.&lt;br /&gt;
|-&lt;br /&gt;
| 0xC8A17620&lt;br /&gt;
| This is returned by [[NFC:OpenAppData]] when the appdata is uninitialized since [[NFC:InitializeWriteAppData]] wasn&#039;t used previously.&lt;br /&gt;
|-&lt;br /&gt;
| 0xC8A17628&lt;br /&gt;
| This is returned by [[NFC:GetAmiiboSettings]] when the amiibo wasn&#039;t setup by the amiibo Settings applet.&lt;br /&gt;
|-&lt;br /&gt;
| 0xC8A17638&lt;br /&gt;
| This is returned by [[NFC:OpenAppData]] when the input AppID doesn&#039;t match the actual Amiibo AppID.&lt;br /&gt;
|-&lt;br /&gt;
| 0xC8C1760C&lt;br /&gt;
| Returned for HMAC-hash mismatch(data corruption), with HMAC-calculation input_buffer_size=0x34.&lt;br /&gt;
|-&lt;br /&gt;
| 0xC8A17618&lt;br /&gt;
| HMAC-hash mismatch with input_buffer_size=0x1DF(see [[Amiibo|here]]).&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Yellows8</name></author>
	</entry>
	<entry>
		<id>https://www.3dbrew.org/w/index.php?title=NFC_Services&amp;diff=19663</id>
		<title>NFC Services</title>
		<link rel="alternate" type="text/html" href="https://www.3dbrew.org/w/index.php?title=NFC_Services&amp;diff=19663"/>
		<updated>2017-02-17T17:49:00Z</updated>

		<summary type="html">&lt;p&gt;Yellows8: /* NFC service &amp;quot;nfc:p&amp;quot; */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The New3DS NFC module was added with [[8.1.0-0_New3DS]]. The Old3DS NFC module was added with [[9.3.0-21|9.3.0-X]].&lt;br /&gt;
&lt;br /&gt;
On New3DS NFC module uses the [[I2C_Registers|NFC]] hardware via the [[I2C_Services|i2c::NFC]] and [[GPIO_Services|gpio:NFC]] services. On Old3DS NFC module communicates with a NFC peripheral via IR with the IRUSER service.&lt;br /&gt;
&lt;br /&gt;
Only 1 session can be open for all of these services combined. Commands for each service are handled by the main-thread.&lt;br /&gt;
&lt;br /&gt;
=NFC services=&lt;br /&gt;
==NFC user service &amp;quot;nfc:u&amp;quot;==&lt;br /&gt;
This is the NFC service used by regular applications, for the NFP API.&lt;br /&gt;
&lt;br /&gt;
This was first seen in the Super Smash Bros eShop demo (only in the exheader, the demo doesn&#039;t actually use it), but at that time no system-module was available for NFC on CDN. The first regular application to use this service was Super Smash Bros, with the v1.0.5 game-update, which used the new 9.3.0-X command set.&lt;br /&gt;
&lt;br /&gt;
==NFC management service &amp;quot;nfc:m&amp;quot;==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Command Header&lt;br /&gt;
!  Available since system-version&lt;br /&gt;
!  Name&lt;br /&gt;
!  Input&lt;br /&gt;
!  Output&lt;br /&gt;
!  Notes&lt;br /&gt;
|-&lt;br /&gt;
| 0x040100C2&lt;br /&gt;
| Unknown, &amp;lt;[[9.3.0-21|9.3.0-X]]&lt;br /&gt;
| ???&lt;br /&gt;
| u32 unknownA, u32 unknownB, u32 unknownC, u32 (sizeof(*buffer) &amp;lt;&amp;lt; 14 &amp;lt;nowiki&amp;gt;|&amp;lt;/nowiki&amp;gt; 0x402), void * buffer&lt;br /&gt;
| s32 result&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| 0x04020000&lt;br /&gt;
| [[9.3.0-21|9.3.0-X]]&lt;br /&gt;
| ???&lt;br /&gt;
| void&lt;br /&gt;
| s32 result, u32 unknownA[16]&lt;br /&gt;
| Output seems to be a struct&lt;br /&gt;
|-&lt;br /&gt;
| 0x04030000&lt;br /&gt;
| [[9.3.0-21|9.3.0-X]]&lt;br /&gt;
| ???&lt;br /&gt;
| void&lt;br /&gt;
| s32 result, u32 unknownA[41]&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| 0x04040A40&lt;br /&gt;
| [[9.3.0-21|9.3.0-X]]&lt;br /&gt;
| [[NFCM:SetAmiiboSettings|SetAmiiboSettings]]&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| 0x04060000&lt;br /&gt;
| [[9.3.0-21|9.3.0-X]]&lt;br /&gt;
| ???&lt;br /&gt;
| void&lt;br /&gt;
| s32 result&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| 0x04070000&lt;br /&gt;
| [[9.3.0-21|9.3.0-X]]&lt;br /&gt;
| ???&lt;br /&gt;
| void&lt;br /&gt;
| s32 result, u32 unknownA&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| 0x04080000&lt;br /&gt;
| [[9.3.0-21|9.3.0-X]]&lt;br /&gt;
| ???&lt;br /&gt;
| void&lt;br /&gt;
| s32 result, u32 unknownA&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| 0x040C0000&lt;br /&gt;
| [[9.3.0-21|9.3.0-X]]&lt;br /&gt;
| ?&lt;br /&gt;
| None&lt;br /&gt;
| s32 result&lt;br /&gt;
| Among other things, this will eventually call the savedata writing code referenced in the below savedata section.&lt;br /&gt;
|-&lt;br /&gt;
| 0x040D0000&lt;br /&gt;
| [[9.3.0-21|9.3.0-X]]&lt;br /&gt;
| ???&lt;br /&gt;
| void&lt;br /&gt;
| s32 result&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| 0x040E0000&lt;br /&gt;
| [[9.3.0-21|9.3.0-X]]&lt;br /&gt;
| ???&lt;br /&gt;
| void&lt;br /&gt;
| s32 result, u32 unknownA, u32 unknownB&lt;br /&gt;
| Again, amiibo applet ignores value unknownA.&lt;br /&gt;
|-&lt;br /&gt;
| 0x040F0000&lt;br /&gt;
| [[9.3.0-21|9.3.0-X]]&lt;br /&gt;
| ???&lt;br /&gt;
| void&lt;br /&gt;
| s32 result, u32 unknownA, u32 unknownB&lt;br /&gt;
|&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
This is used by the [[amiibo Settings]] applet. This service has the above commands, in addition to the command-set listed below.&lt;br /&gt;
&lt;br /&gt;
==NFC development service &amp;quot;nfc:dev&amp;quot;==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Command header&lt;br /&gt;
!  Available since system-version&lt;br /&gt;
!  Description&lt;br /&gt;
|-&lt;br /&gt;
| 0x00110100&lt;br /&gt;
| &lt;br /&gt;
| [[NFCDEV:ReadRawPages|ReadRawPages]]&lt;br /&gt;
|-&lt;br /&gt;
| 0x001200C0&lt;br /&gt;
| &lt;br /&gt;
| [[NFCDEV:WriteRawPage|WriteRawPage]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Some of these commands seems to be intended for use only on dev-units.&lt;br /&gt;
&lt;br /&gt;
Unlike the New3DS NFC-module, at least some of these commands are stubbed in the Old3DS NFC-module(only returns an error).&lt;br /&gt;
&lt;br /&gt;
==NFC service &amp;quot;nfc:p&amp;quot;==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Command header&lt;br /&gt;
!  Available since system-version&lt;br /&gt;
!  Description&lt;br /&gt;
|-&lt;br /&gt;
| 0x00010000&lt;br /&gt;
| &lt;br /&gt;
| Initialize&lt;br /&gt;
|-&lt;br /&gt;
| 0x00020000&lt;br /&gt;
| &lt;br /&gt;
| Shutdown&lt;br /&gt;
|-&lt;br /&gt;
| 0x00030080&lt;br /&gt;
| &lt;br /&gt;
| (unk0, unk1) ?&lt;br /&gt;
|-&lt;br /&gt;
| 0x00040000&lt;br /&gt;
| &lt;br /&gt;
| ?&lt;br /&gt;
|-&lt;br /&gt;
| 0x000500C2&lt;br /&gt;
| &lt;br /&gt;
| [[NFCP:SendTagCommand|SendTagCommand]]&lt;br /&gt;
|-&lt;br /&gt;
| 0x00060000&lt;br /&gt;
| &lt;br /&gt;
| GetTagInfo&lt;br /&gt;
|-&lt;br /&gt;
| 0x00070000&lt;br /&gt;
| &lt;br /&gt;
| GetTagState maybe? Writes an output value to cmdreply[2].&lt;br /&gt;
|-&lt;br /&gt;
| 0x00080000&lt;br /&gt;
| &lt;br /&gt;
| Writes a handle to cmdreply[3].&lt;br /&gt;
|-&lt;br /&gt;
| 0x00090000&lt;br /&gt;
| &lt;br /&gt;
| Writes a handle to cmdreply[3].&lt;br /&gt;
|-&lt;br /&gt;
| 0x000A0000&lt;br /&gt;
| &lt;br /&gt;
| Unknown. Writes an output value to cmdreply[2].&lt;br /&gt;
|-&lt;br /&gt;
| 0x000B0000&lt;br /&gt;
| &lt;br /&gt;
| Unknown. Writes 0x60-bytes of output starting at cmdreply[2]. u16 +0 is the size of the data at +4, +2 is not initialized, u8 +3 is loaded from state, u32 +0x2C is loaded from state, and the data at +4 with the previously mentioned size is copied from state.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
This service is used by the mint library-applet, starting with [[9.3.0-21]]. This service was added to the mint service-access-control list with [[9.0.0-20]].&lt;br /&gt;
The mint process is the only known eShop-related process using this service([[eShop]]-application and NIM-module don&#039;t use it). Used for NFC card payments in JPN [[eShop]](the v16384 mint title is &#039;&#039;identical&#039;&#039; for USA/JPN besides programIDs in the NCCH header/exheader).&lt;br /&gt;
&lt;br /&gt;
JPN eShop game &amp;quot;Megami Meguri&amp;quot; uses these same JPN NFC cards. The only accessible NFC service is nfcu.&lt;br /&gt;
&lt;br /&gt;
==NFC service &amp;quot;nfc:r&amp;quot;==&lt;br /&gt;
This service has no known use.&lt;br /&gt;
&lt;br /&gt;
==NFC service &amp;quot;nfc:s&amp;quot;==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Command header&lt;br /&gt;
!  Available since system-version&lt;br /&gt;
!  Description&lt;br /&gt;
|-&lt;br /&gt;
| 0x00130102&lt;br /&gt;
| &lt;br /&gt;
| [[NFCS:SendTagCommand|SendTagCommand]]&lt;br /&gt;
|-&lt;br /&gt;
| 0x00230000&lt;br /&gt;
| &lt;br /&gt;
| This writes the following command request data to [[I2C_Registers|I2C]], without reading any response: 10 20 00 01 01.&lt;br /&gt;
|-&lt;br /&gt;
| 0x00240000&lt;br /&gt;
| &lt;br /&gt;
| This writes the following command request data to [[I2C_Registers|I2C]], without reading any response: 10 40 00 03 00 0F 01.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
This service has no known use.&lt;br /&gt;
&lt;br /&gt;
Unlike the New3DS NFC-module, at least some of these commands are stubbed in the Old3DS NFC-module(only returns an error).&lt;br /&gt;
&lt;br /&gt;
=&amp;quot;nfc:u&amp;quot; and &amp;quot;nfc:m&amp;quot; command set=&lt;br /&gt;
There are at least two different revisions of the NFC module. First version was introduced on New3DS only with firmware [[8.1.0-0_New3DS]]. Second version made its appearance with [[9.3.0-21|9.3.0-X]], on both Old3DS and New3DS.&lt;br /&gt;
&lt;br /&gt;
These two versions are not interchangeable and not compatible, since the newer version uses a different command set and has no implemented commands from the older version. This does not introduce compatibility problems since no retail software used the NFC module, before the system titles added with [[9.3.0-21]] which use NFC.&lt;br /&gt;
&lt;br /&gt;
==9.3.0-X==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Command Header&lt;br /&gt;
!  Available since system-version&lt;br /&gt;
!  Name&lt;br /&gt;
!  Input&lt;br /&gt;
!  Output&lt;br /&gt;
!  Notes&lt;br /&gt;
|-&lt;br /&gt;
| 0x00010040&lt;br /&gt;
| &lt;br /&gt;
| [[NFC:Initialize|Initialize]]&lt;br /&gt;
| u8 inputval&lt;br /&gt;
| s32 result&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| 0x00020040&lt;br /&gt;
| &lt;br /&gt;
| [[NFC:Shutdown|Shutdown]]&lt;br /&gt;
| u8 inputval&lt;br /&gt;
| s32 result&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| 0x00030000&lt;br /&gt;
| &lt;br /&gt;
| [[NFC:StartCommunication|StartCommunication]]&lt;br /&gt;
| void&lt;br /&gt;
| s32 result&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| 0x00040000&lt;br /&gt;
| &lt;br /&gt;
| [[NFC:StopCommunication|StopCommunication]]&lt;br /&gt;
| void&lt;br /&gt;
| s32 result&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| 0x00050040&lt;br /&gt;
| &lt;br /&gt;
| [[NFC:StartTagScanning|StartTagScanning]]&lt;br /&gt;
| u16 inval&lt;br /&gt;
| s32 result&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| 0x00060000&lt;br /&gt;
| &lt;br /&gt;
| [[NFC:StopTagScanning|StopTagScanning]]&lt;br /&gt;
| void&lt;br /&gt;
| s32 result&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| 0x00070000&lt;br /&gt;
| &lt;br /&gt;
| [[NFC:LoadAmiiboData|LoadAmiiboData]]&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| 0x00080000&lt;br /&gt;
| &lt;br /&gt;
| [[NFC:ResetTagScanState|ResetTagScanState]]&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| 0x00090002&lt;br /&gt;
| &lt;br /&gt;
| [[NFC:UpdateStoredAmiiboData|UpdateStoredAmiiboData]]&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| 0x000A0000&lt;br /&gt;
| &lt;br /&gt;
| ???&lt;br /&gt;
| void&lt;br /&gt;
| s32 result&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| 0x000B0000&lt;br /&gt;
| &lt;br /&gt;
| GetTagInRangeEvent(?)&lt;br /&gt;
| void&lt;br /&gt;
| s32 result, u32 copy handle descriptor, Handle event&lt;br /&gt;
| amiibo applet ignores value &#039;descriptor&#039;. It doesn&#039;t even read it from the command buffer.&lt;br /&gt;
|-&lt;br /&gt;
| 0x000C0000&lt;br /&gt;
| &lt;br /&gt;
| GetTagOutOfRangeEvent(?)&lt;br /&gt;
| void&lt;br /&gt;
| s32 result, u32 copy handle descriptor, Handle event&lt;br /&gt;
| amiibo applet also ignores value &#039;descriptor&#039; for this command.&lt;br /&gt;
|-&lt;br /&gt;
| 0x000D0000&lt;br /&gt;
| &lt;br /&gt;
| [[NFC:GetTagState|GetTagState]]&lt;br /&gt;
| void&lt;br /&gt;
| s32 result, u8 outval&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| 0x000F0000&lt;br /&gt;
| &lt;br /&gt;
| [[NFC:CommunicationGetStatus|CommunicationGetStatus]]&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| 0x00100000&lt;br /&gt;
| &lt;br /&gt;
| [[NFC:GetTagInfo2|GetTagInfo2]]&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| 0x00110000&lt;br /&gt;
| &lt;br /&gt;
| [[NFC:GetTagInfo|GetTagInfo]]&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| 0x00120000&lt;br /&gt;
| &lt;br /&gt;
| [[NFC:CommunicationGetResult|CommunicationGetResult]]&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| 0x00130040&lt;br /&gt;
| &lt;br /&gt;
| [[NFC:OpenAppData|OpenAppData]]&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| 0x00140384&lt;br /&gt;
| &lt;br /&gt;
| [[NFC:InitializeWriteAppData|InitializeWriteAppData]]&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| 0x00150040&lt;br /&gt;
| &lt;br /&gt;
| [[NFC:ReadAppData|ReadAppData]]&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| 0x00160242&lt;br /&gt;
| &lt;br /&gt;
| [[NFC:WriteAppData|WriteAppData]]&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| 0x00170000&lt;br /&gt;
| &lt;br /&gt;
| [[NFC:GetAmiiboSettings|GetAmiiboSettings]]&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| 0x00180000&lt;br /&gt;
| &lt;br /&gt;
| [[NFC:GetAmiiboConfig|GetAmiiboConfig]]&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| 0x00190000&lt;br /&gt;
| &lt;br /&gt;
| [[NFC:GetAppDataInitStruct|GetAppDataInitStruct]]&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| 0x001A0000&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| None&lt;br /&gt;
| No additional output.&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| 0x001B0000&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| None&lt;br /&gt;
| 0x36-byte output structure starting at cmdreply[2].&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| 0x001C0040&lt;br /&gt;
| [[9.6.0-24|9.6.0-X]]&lt;br /&gt;
| &lt;br /&gt;
| u8 inputval&lt;br /&gt;
| No additional output.&lt;br /&gt;
| ?&lt;br /&gt;
|-&lt;br /&gt;
| 0x001D0040&lt;br /&gt;
| [[9.6.0-24|9.6.0-X]]&lt;br /&gt;
| &lt;br /&gt;
| u32 inputval&lt;br /&gt;
| No additional output.&lt;br /&gt;
| ?&lt;br /&gt;
|-&lt;br /&gt;
| 0x001E0040&lt;br /&gt;
| [[9.6.0-24|9.6.0-X]]&lt;br /&gt;
| &lt;br /&gt;
| u8 inputval&lt;br /&gt;
| u8 outval at cmdreply[2].&lt;br /&gt;
| ?&lt;br /&gt;
|-&lt;br /&gt;
| 0x001F0080&lt;br /&gt;
| [[10.0.0-27|10.0.0-X]]&lt;br /&gt;
| [[NFC:StartOtherTagScanning|StartOtherTagScanning]]&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| Used by JPN eShop app &amp;quot;Megami Meguri&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
| 0x00200102&lt;br /&gt;
| [[10.0.0-27|10.0.0-X]]&lt;br /&gt;
| [[NFC:SendTagCommand|SendTagCommand]]&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| 0x00210000&lt;br /&gt;
| [[10.0.0-27|10.0.0-X]]&lt;br /&gt;
| ?&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| Used by JPN eShop app &amp;quot;Megami Meguri&amp;quot;. This can only be used when [[NFC:Initialize|initialized]] with type3, and when the [[NFC:GetTagState|TagState]] is 3.&lt;br /&gt;
|-&lt;br /&gt;
| 0x00220000&lt;br /&gt;
| [[10.0.0-27|10.0.0-X]]&lt;br /&gt;
| ?&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| This can only be used when [[NFC:Initialize|initialized]] with type3, and when the [[NFC:GetTagState|TagState]] is 3.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Pre-9.3.0-X==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Pre-9.3.0-X command header&lt;br /&gt;
!  Command header starting with 9.3.0-X&lt;br /&gt;
!  Available since system-version&lt;br /&gt;
!  Description&lt;br /&gt;
|-&lt;br /&gt;
| 0x00010000&lt;br /&gt;
| ?&lt;br /&gt;
| [[8.1.0-0_New3DS]]&lt;br /&gt;
| Initialize&lt;br /&gt;
|-&lt;br /&gt;
| 0x00020000&lt;br /&gt;
| ?&lt;br /&gt;
| [[8.1.0-0_New3DS]]&lt;br /&gt;
| Shutdown&lt;br /&gt;
|-&lt;br /&gt;
| 0x00030000&lt;br /&gt;
| ?&lt;br /&gt;
| [[8.1.0-0_New3DS]]&lt;br /&gt;
| GetNFCState. This writes an output u8 to cmdreply[2]: 0 = not initialized, 1 = just initialized, 5 = data transfer ready, ...&lt;br /&gt;
|-&lt;br /&gt;
| 0x00040000&lt;br /&gt;
| 0x000B0000&lt;br /&gt;
| [[8.1.0-0_New3DS]]&lt;br /&gt;
| This writes an output handle to cmdreply[3].&lt;br /&gt;
|-&lt;br /&gt;
| 0x00050000&lt;br /&gt;
| 0x000C0000&lt;br /&gt;
| [[8.1.0-0_New3DS]]&lt;br /&gt;
| This writes an output handle to cmdreply[3].&lt;br /&gt;
|-&lt;br /&gt;
| 0x00060040&lt;br /&gt;
| ?&lt;br /&gt;
| [[8.1.0-0_New3DS]]&lt;br /&gt;
| (u8 input)&lt;br /&gt;
|-&lt;br /&gt;
| 0x00070000&lt;br /&gt;
| ?&lt;br /&gt;
| [[8.1.0-0_New3DS]]&lt;br /&gt;
| The user process must setup the output-buffer hdr+ptr data @ TLS+0x180 when using this. cmdreply[2] = actual output data size?&lt;br /&gt;
|-&lt;br /&gt;
| 0x00080100&lt;br /&gt;
| ?&lt;br /&gt;
| [[8.1.0-0_New3DS]]&lt;br /&gt;
| (&amp;lt;0x10-bytes starting at cmdreq[1]&amp;gt;)&lt;br /&gt;
|-&lt;br /&gt;
| 0x00090000&lt;br /&gt;
| ?&lt;br /&gt;
| [[8.1.0-0_New3DS]]&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| 0x000A0000&lt;br /&gt;
| ?&lt;br /&gt;
| [[8.1.0-0_New3DS]]&lt;br /&gt;
| The user process must setup the output-buffer hdr+ptr data @ TLS+0x180 when using this.&lt;br /&gt;
|-&lt;br /&gt;
| 0x000B0042&lt;br /&gt;
| ?&lt;br /&gt;
| [[8.1.0-0_New3DS]]&lt;br /&gt;
| (u32 size, ((Size&amp;lt;&amp;lt;14) &amp;lt;nowiki&amp;gt;|&amp;lt;/nowiki&amp;gt; 2), inbufptr)&lt;br /&gt;
|-&lt;br /&gt;
| 0x000C0044&lt;br /&gt;
| ?&lt;br /&gt;
| [[8.1.0-0_New3DS]]&lt;br /&gt;
| (u32 size, 0x20, &amp;lt;procid set by kernel&amp;gt;, ((Size&amp;lt;&amp;lt;14) &amp;lt;nowiki&amp;gt;|&amp;lt;/nowiki&amp;gt; 0x402), inbufptr)&lt;br /&gt;
|-&lt;br /&gt;
| 0x000D0040&lt;br /&gt;
| ?&lt;br /&gt;
| [[8.1.0-0_New3DS]]&lt;br /&gt;
| (u16 in)&lt;br /&gt;
|-&lt;br /&gt;
| 0x000E0000&lt;br /&gt;
| ?&lt;br /&gt;
| [[8.1.0-0_New3DS]]&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| 0x000F00C2&lt;br /&gt;
| ?&lt;br /&gt;
| [[8.1.0-0_New3DS]]&lt;br /&gt;
| (u32 unk0, u32 unk1, u32 unk2, ((Size&amp;lt;&amp;lt;14) &amp;lt;nowiki&amp;gt;|&amp;lt;/nowiki&amp;gt; 0x802), inbufptr)&lt;br /&gt;
|-&lt;br /&gt;
| 0x00100040&lt;br /&gt;
| ?&lt;br /&gt;
| [[8.1.0-0_New3DS]]&lt;br /&gt;
| (u32 in)&lt;br /&gt;
|-&lt;br /&gt;
| 0x00110040&lt;br /&gt;
| ?&lt;br /&gt;
| [[8.1.0-0_New3DS]]&lt;br /&gt;
| (u32 in)&lt;br /&gt;
|-&lt;br /&gt;
| 0x00120040&lt;br /&gt;
| ?&lt;br /&gt;
| [[8.1.0-0_New3DS]]&lt;br /&gt;
| (u32 in)&lt;br /&gt;
|-&lt;br /&gt;
| 0x00130000&lt;br /&gt;
| ?&lt;br /&gt;
| [[8.1.0-0_New3DS]]&lt;br /&gt;
| Writes an output u32 to cmdreply[2].&lt;br /&gt;
|-&lt;br /&gt;
| 0x00140000&lt;br /&gt;
| ?&lt;br /&gt;
| [[8.1.0-0_New3DS]]&lt;br /&gt;
| This writes an output 0x30-byte struct starting at cmdreply[2].&lt;br /&gt;
|-&lt;br /&gt;
| 0x00150000&lt;br /&gt;
| 0x00110000&lt;br /&gt;
| [[8.1.0-0_New3DS]]&lt;br /&gt;
| This writes an output 0x2C-byte struct starting at cmdreply[2].&lt;br /&gt;
|-&lt;br /&gt;
| 0x00160000&lt;br /&gt;
| ?&lt;br /&gt;
| [[8.1.0-0_New3DS]]&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| 0x00170000&lt;br /&gt;
| ?&lt;br /&gt;
| [[8.1.0-0_New3DS]]&lt;br /&gt;
| &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=NFC services error codes=&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Error-code&lt;br /&gt;
!  Description&lt;br /&gt;
|-&lt;br /&gt;
| 0xc8a17600&lt;br /&gt;
| The current NFC tag [[NFC:GetTagState|state]], or other NFC state, is invalid with the NFC command which was used.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=NFC module savedata=&lt;br /&gt;
* &amp;quot;/nfp_backup.dat&amp;quot; This contains raw data from the [[Amiibo]] NFC data pages. The filesize is 0x001fbd20-bytes. Certain service cmds will trigger writing to this savedata. This entire file is read during [[amiibo Settings]] startup, it&#039;s unknown what command(s) actually triggers that. It seems the Amiibo data here is updated each time the Amiibo NFC data is updated, and read each time the Amiibo NFC data is read. Data is written into this savedata when the Amiibo was never scanned on this system before. The data here is probably also updated when the scanned Amiibo NFC data doesn&#039;t match the data stored here.&lt;br /&gt;
&lt;br /&gt;
During NFC writing, the NFC data being written can become corrupted if the Amiibo figure is moved outside of range during writing. When this happens, this nfp_backup data can be used to restore a previous version of that data prior to the last failed write.&lt;br /&gt;
&lt;br /&gt;
==nfp_backup.dat structure==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Offset&lt;br /&gt;
!  Size&lt;br /&gt;
!  Description&lt;br /&gt;
|-&lt;br /&gt;
| 0x0&lt;br /&gt;
| 0x20&lt;br /&gt;
| Header&lt;br /&gt;
|-&lt;br /&gt;
| 0x20&lt;br /&gt;
| 0x800&lt;br /&gt;
| Amiibo data table header&lt;br /&gt;
|-&lt;br /&gt;
| 0x7D20&lt;br /&gt;
| 0x21C&lt;br /&gt;
| The NFC data for the first stored Amiibo is located here. This is the entire raw data from all 0x87 NFC data pages.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Header structure===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Offset&lt;br /&gt;
!  Size&lt;br /&gt;
!  Description&lt;br /&gt;
|-&lt;br /&gt;
| 0x0&lt;br /&gt;
| 0x8&lt;br /&gt;
| Unknown, normally the following data? &amp;quot;00 00 02 00 02 00 00 00&amp;quot; (as little-endian u32s: 0x20000, 0x2)&lt;br /&gt;
|-&lt;br /&gt;
| 0x8&lt;br /&gt;
| 0x14&lt;br /&gt;
| Unknown, normally all-zero?&lt;br /&gt;
|-&lt;br /&gt;
| 0x1C&lt;br /&gt;
| 0x4&lt;br /&gt;
| Unknown. CRC32 / checksum maybe?&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Amiibo data table header===&lt;br /&gt;
This is an array with 0x40(?) entries, where the size of each entry is 0x20-bytes. Entry structure:&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Offset&lt;br /&gt;
!  Size&lt;br /&gt;
!  Description&lt;br /&gt;
|-&lt;br /&gt;
| 0x0&lt;br /&gt;
| 0x8&lt;br /&gt;
| First 8-bytes from [[Amiibo]] NFC serial-number.&lt;br /&gt;
|-&lt;br /&gt;
| 0x8&lt;br /&gt;
| 0x3&lt;br /&gt;
| Unknown, normally zero?&lt;br /&gt;
|-&lt;br /&gt;
| 0xB&lt;br /&gt;
| 0x2&lt;br /&gt;
| u16 little-endian date value for when this Amiibo was initially written into this savedata, with the same format from [[Amiibo|here]].&lt;br /&gt;
|-&lt;br /&gt;
| 0xD&lt;br /&gt;
| 0xF&lt;br /&gt;
| Unknown, normally zero?&lt;br /&gt;
|-&lt;br /&gt;
| 0x1C&lt;br /&gt;
| 0x4&lt;br /&gt;
| Unknown. CRC32 / checksum maybe?&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=NFC module versions=&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  System version&lt;br /&gt;
!  New3DS title-version&lt;br /&gt;
!  Old3DS title-version&lt;br /&gt;
!  Changes&lt;br /&gt;
|-&lt;br /&gt;
| [[9.6.0-24|9.6.0-X]]&lt;br /&gt;
| v4102&lt;br /&gt;
| v4106&lt;br /&gt;
| New3DS and Old3DS: the only changes regarding new commands is that new commands were added for the nfcu/nfcm command-set and new commands for an unknown cmd-handler were added. It&#039;s unknown if there&#039;s other changes.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=Errors=&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Error code&lt;br /&gt;
!  Description&lt;br /&gt;
|-&lt;br /&gt;
| 0xC8A17600&lt;br /&gt;
| This is returned when the current state is invalid for this command.&lt;br /&gt;
|-&lt;br /&gt;
| 0xC8A17620&lt;br /&gt;
| This is returned by [[NFC:OpenAppData]] when the appdata is uninitialized since [[NFC:InitializeWriteAppData]] wasn&#039;t used previously.&lt;br /&gt;
|-&lt;br /&gt;
| 0xC8A17628&lt;br /&gt;
| This is returned by [[NFC:GetAmiiboSettings]] when the amiibo wasn&#039;t setup by the amiibo Settings applet.&lt;br /&gt;
|-&lt;br /&gt;
| 0xC8A17638&lt;br /&gt;
| This is returned by [[NFC:OpenAppData]] when the input AppID doesn&#039;t match the actual Amiibo AppID.&lt;br /&gt;
|-&lt;br /&gt;
| 0xC8C1760C&lt;br /&gt;
| Returned for HMAC-hash mismatch(data corruption), with HMAC-calculation input_buffer_size=0x34.&lt;br /&gt;
|-&lt;br /&gt;
| 0xC8A17618&lt;br /&gt;
| HMAC-hash mismatch with input_buffer_size=0x1DF(see [[Amiibo|here]]).&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Yellows8</name></author>
	</entry>
	<entry>
		<id>https://www.3dbrew.org/w/index.php?title=NFCP:SendTagCommand&amp;diff=19662</id>
		<title>NFCP:SendTagCommand</title>
		<link rel="alternate" type="text/html" href="https://www.3dbrew.org/w/index.php?title=NFCP:SendTagCommand&amp;diff=19662"/>
		<updated>2017-02-17T17:33:26Z</updated>

		<summary type="html">&lt;p&gt;Yellows8: Created page with &amp;quot;=Request= {{IPC/Request}} {{#vardefine:ipc_offset|0}} {{IPC/RequestEntry|Header code [0x000500C2]}} {{IPC/RequestEntry|u32 inputsize}} {{IPC/RequestEntry|u32 outputsize}} {{IP...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Request=&lt;br /&gt;
{{IPC/Request}}&lt;br /&gt;
{{#vardefine:ipc_offset|0}}&lt;br /&gt;
{{IPC/RequestEntry|Header code [0x000500C2]}}&lt;br /&gt;
{{IPC/RequestEntry|u32 inputsize}}&lt;br /&gt;
{{IPC/RequestEntry|u32 outputsize}}&lt;br /&gt;
{{IPC/RequestEntry|u32 timing value. This is the raw version of the [[NFC:SendTagCommand]] timing field.}}&lt;br /&gt;
{{IPC/TranslateStaticBuffer|&amp;lt;nowiki&amp;gt;Input buffer address with static_buf_id=0&amp;lt;/nowiki&amp;gt;|0}}&lt;br /&gt;
{{IPC/RequestEnd}}&lt;br /&gt;
&lt;br /&gt;
{{IPC/RequestStaticBuffers}}&lt;br /&gt;
{{#vardefine:ipc_offset|0}}&lt;br /&gt;
{{IPC/TranslateStaticBuffer|Output buffer address|0}}&lt;br /&gt;
{{IPC/RequestEnd}}&lt;br /&gt;
&lt;br /&gt;
=Response=&lt;br /&gt;
{{IPC/Request}}&lt;br /&gt;
{{#vardefine:ipc_offset|0}}&lt;br /&gt;
{{IPC/RequestEntry|Header code}}&lt;br /&gt;
{{IPC/RequestEntry|Result code}}&lt;br /&gt;
{{IPC/RequestEntry|u32 actual_output_size}}&lt;br /&gt;
{{IPC/TranslateStaticBuffer|&amp;lt;nowiki&amp;gt;Output data pointer with static_buf_id=0&amp;lt;/nowiki&amp;gt;|0}}&lt;br /&gt;
{{IPC/RequestEnd}}&lt;br /&gt;
&lt;br /&gt;
=Description=&lt;br /&gt;
This is about the same as [[NFCS:SendTagCommand]], except that this verifies that the input/output buffer ptrs are not NULL. This also clears the output buffer before calling the cmd-sending func. A state field(probably TagState?) must match 3.&lt;br /&gt;
&lt;br /&gt;
outputsize value 0x800 will be used when it&#039;s &amp;gt;=0x800.&lt;/div&gt;</summary>
		<author><name>Yellows8</name></author>
	</entry>
	<entry>
		<id>https://www.3dbrew.org/w/index.php?title=NFCS:SendTagCommand&amp;diff=19661</id>
		<title>NFCS:SendTagCommand</title>
		<link rel="alternate" type="text/html" href="https://www.3dbrew.org/w/index.php?title=NFCS:SendTagCommand&amp;diff=19661"/>
		<updated>2017-02-17T17:14:14Z</updated>

		<summary type="html">&lt;p&gt;Yellows8: Created page with &amp;quot;=Request= {{IPC/Request}} {{#vardefine:ipc_offset|0}} {{IPC/RequestEntry|Header code [0x00130102]}} {{IPC/RequestEntry|u32, Unknown. inr1 for send_nfctag_cmd().}} {{IPC/Reques...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Request=&lt;br /&gt;
{{IPC/Request}}&lt;br /&gt;
{{#vardefine:ipc_offset|0}}&lt;br /&gt;
{{IPC/RequestEntry|Header code [0x00130102]}}&lt;br /&gt;
{{IPC/RequestEntry|u32, Unknown. inr1 for send_nfctag_cmd().}}&lt;br /&gt;
{{IPC/RequestEntry|u32 inputsize}}&lt;br /&gt;
{{IPC/RequestEntry|u32 outputsize}}&lt;br /&gt;
{{IPC/RequestEntry|u8 timing value. This is the raw version of the [[NFC:SendTagCommand]] timing field.}}&lt;br /&gt;
{{IPC/TranslateStaticBuffer|&amp;lt;nowiki&amp;gt;Input buffer address with static_buf_id=1&amp;lt;/nowiki&amp;gt;|1}}&lt;br /&gt;
{{IPC/RequestEnd}}&lt;br /&gt;
&lt;br /&gt;
{{IPC/RequestStaticBuffers}}&lt;br /&gt;
{{#vardefine:ipc_offset|0}}&lt;br /&gt;
{{IPC/TranslateStaticBuffer|Output buffer address|0}}&lt;br /&gt;
{{IPC/RequestEnd}}&lt;br /&gt;
&lt;br /&gt;
=Response=&lt;br /&gt;
{{IPC/Request}}&lt;br /&gt;
{{#vardefine:ipc_offset|0}}&lt;br /&gt;
{{IPC/RequestEntry|Header code}}&lt;br /&gt;
{{IPC/RequestEntry|Result code}}&lt;br /&gt;
{{IPC/RequestEntry|u32 actual_output_size}}&lt;br /&gt;
{{IPC/TranslateStaticBuffer|&amp;lt;nowiki&amp;gt;Output data pointer with static_buf_id=0&amp;lt;/nowiki&amp;gt;|0}}&lt;br /&gt;
{{IPC/RequestEnd}}&lt;br /&gt;
&lt;br /&gt;
=Description=&lt;br /&gt;
This is similar to [[NFC:SendTagCommand]], except this just calls send_nfctag_cmd() directly without calling a bunch of other code.&lt;br /&gt;
&lt;br /&gt;
outputsize value 0x800 will be used when it&#039;s &amp;gt;=0x800.&lt;/div&gt;</summary>
		<author><name>Yellows8</name></author>
	</entry>
</feed>