Supposedly Ukraine transferred the technology to make AL-25 turbofan engine to China so they could use it in the Hongdu JL-8. Given the history of past Ukrainian tech transfers to North Korea post Soviet collapse, like we see with their ballistic missile program, it would not be surprising if North Korea also got a tech transfer for the AL-25.
Issue with assertion of tech transfer from Ukraine to North Korea is that it is not official nor with actual backing hence either espionage by stealing or bribing lower ranking government employees, engineers, officials and so forth to acquire examples along there being also a fact that Ukraine does not have ability to manufacture new RD-250 rocket engine system along older 4D10 hence regardless North Korea would have to invest into research and development of materials for use in manufacturing those thus basically reinvent it with maybe different style.
Also North Korea developed further RD-250 to have gimballed/swiveled exhaust nozzles which is feature set that for example RD-170 has.
Involving solid fuel ballistic missiles all those trace origin to reverse engineered OTR-21 Tochka hence some components were upscaled such as jet vanes for thrust vector control along grid fins for some of them, in the end DPRK is reinventing with some rather minor shortcuts with rest being own development or that jointly with Iran such as 360 degree swiveled nozzle for a solid fuel rocket motor as seen on Hwasong-18.
Neither China nor Russia would provide anything substantial as North Korea on arms market was competitor until sanctions regime which was in interest of both as it removed considerable competitor on arms market since North Korea provided equivalent at considerably lower price.
Only thing that China provided involving jet aircraft is maintenance facility and perhaps technology transfer to produce their close of RD-9 turbojet engine with that being in late 1970s or early 1980s thus any development there after since collapse of communist bloc and China converting to capitalist system economically effectively ceased any transfer of technology due to various reasons, political and economic.
Only partner that North Korea can rely on with technology transfer, both ways is with Iran as they do have joint development and research.