The effect of a weak magnetic field (B = 0.17 T) and X-irradiation (D < 520 Gy) on the rearrangement of the defective structure of near-surface p-type silicon layers was studied. It was established that the effect of these external fields increases the positive accumulated charge in the region of spatial charge (RSC) and in the SiO2 dielectric layer. This can be caused by both defects in the near-surface layer of the semiconductor and impurities contained in the dielectric layer, which can generate charge carriers. It was found that the near-surface layers of the barrier structures contain only one deep level in the silicon band gap, with an activation energy of Ev + 0.38 eV. This energy level corresponds to a complex of silicon interstitial atoms SiI+SiI. When X-irradiated with a dose of 520 Gy, a new level with the energy of Ev + 0.45 eV was observed. This level corresponds to a point boron radiation defect in the interstitial site (BI). These two types of defect are effective in obtaining charge carriers, and cause deterioration of the rectifier properties of the silicon barrier structures. It was established that the silicon surface is quite active, and adsorbs organic atoms and molecules from the atmosphere, forming bonds. It was shown that the effect of a magnetic field causes the decay of adsorbed complexes at the Si–SiO2 interface. The released hydrogen is captured by acceptor levels and, as a result, the concentration of more complex Si–H3 complexes increases that of O3–Si–H.